Skip to content

Conversation

mbabker
Copy link
Contributor

@mbabker mbabker commented May 10, 2025

Fixes #2941

Comment on lines +114 to +117
$result = call_user_func_array(
$this->sluggable->getUrlizer(),
[$result, $separator, $object]
);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calling the urlizer here is the only way I could work out fixing this test failure:

1) Gedmo\Tests\Sluggable\Handlers\BothSlugHandlerTest::testSlugUpdates
   Failed asserting that two strings are identical.
   --- Expected
   +++ Actual
   @@ @@
   -'web/developer/upd-gedi'
   +'web/developer/upd gedi'

/tests/Gedmo/Sluggable/Handlers/BothSlugHandlerTest.php:64


$russian = $repo->findOneBy(['code' => 'ru']);
static::assertSame('eto-testovyi-zagolovok-ru', $russian->getSlug());
static::assertSame('eto-testovyj-zagolovok-ru', $russian->getSlug());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just transliterated differently between packages. No idea which is more accurate, but given this is the only test case I actually did have to change, figured I'd point it out.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This transliteration complies with the ISO 9:1995 standard, so your change is spot on.

@Renrhaf
Copy link

Renrhaf commented May 22, 2025

+1 thanks for the fix !

@gabrielius914
Copy link

gabrielius914 commented Jun 2, 2025

When can we expect this to be done?

@dmitryuk
Copy link

Up, thanks

@Chris53897
Copy link
Contributor

@phansys Could you please give some feedback on this, if you have some time.

@Atantares
Copy link

Update, please

@smnandre
Copy link

Is there anything we can do to help merge this PR ?

@VincentLanglet
Copy link
Contributor

VincentLanglet commented Aug 24, 2025

@phansys seems like you made the latests release, could you take a look at this PR ? (And maybe retrigger the CI ?)

@mbabker Are you still interested by this PR ? Do you know what is missing to get a green CI ?

@mbabker
Copy link
Contributor Author

mbabker commented Aug 26, 2025

Do you know what is missing to get a green CI ?

The failing CI has nothing to do with this PR, I know I have one that fixes the main failure but at this point there's probably more stuff from newer ORM, DBAL, and MongoDB ODM releases that probably create new SA issues.

@VincentLanglet
Copy link
Contributor

Do you know what is missing to get a green CI ?

The failing CI has nothing to do with this PR, I know I have one that fixes the main failure but at this point there's probably more stuff from newer ORM, DBAL, and MongoDB ODM releases that probably create new SA issues.

If needed I will be able to help on solve the SA issues.

But first I think we need to find an active maintainer. I see you're listed in the sponsor list of this repository, do you have merge rights @mbabker ? If not do you have any contact about someone which has ? I feel like this lib is lacking maintainer/activity...

@mbabker
Copy link
Contributor Author

mbabker commented Aug 27, 2025

If needed I will be able to help on solve the SA issues.

I'm pretty sure the only current SA issues are from the releases of ORM 3.4 and MongoDB ODM 2.11 (the ODM bits are covered in #2945, the ORM stuff might be covered in #2966 otherwise that shouldn't be anything more than reversing some inline @phpstan-ignore bits). So the SA and the automated tests aren't actually in too terrible of shape, but the ODM thing is what's causing the hard test failures on current PHP versions.

But first I think we need to find an active maintainer. I see you're listed in the sponsor list of this repository, do you have merge rights @mbabker ?

If I did, there'd be a lot more recently merged PRs and releases. I'm just the lucky one who's done a lot of reviewing and updating the library over the last year or so and someone else decided to add me to the sponsor list (which I'm absolutely grateful for, but also know I didn't ask for it).

@VincentLanglet
Copy link
Contributor

If I did, there'd be a lot more recently merged PRs and releases. I'm just the lucky one who's done a lot of reviewing and updating the library over the last year or so and someone else decided to add me to the sponsor list (which I'm absolutely grateful for, but also know I didn't ask for it).

If you're ok with it, it could be interesting to contact existing maintainer to add you (?)

@phansys
Copy link
Collaborator

phansys commented Sep 13, 2025

Sorry for the delay in responding. I've been pretty busy at work these weeks.

I'll try to take a look on this.

@phansys
Copy link
Collaborator

phansys commented Sep 13, 2025

I am closing and reopening this PR in order to trigger fresh pipelines.

@VincentLanglet
Copy link
Contributor

If it helps @phansys I rebased the PR in #2985

Also, did you consider sharing some maintainer rights with mbabker since he seems active/invested in this repository (?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace usage of behat/transliterator to generate the slug

10 participants