-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Sluggable] Use TranslationWalker for Translatable objects when looking for similar slugs #2620
[Sluggable] Use TranslationWalker for Translatable objects when looking for similar slugs #2620
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2620 +/- ##
==========================================
- Coverage 78.75% 78.39% -0.36%
==========================================
Files 163 167 +4
Lines 8593 8613 +20
==========================================
- Hits 6767 6752 -15
- Misses 1826 1861 +35 ☔ View full report in Codecov by Sentry. |
Changelog and Unit test have been added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even if this may be considered as a fix, I guess the change will break the behavior for users relying on the current behavior.
Is this behavior documented? If not, I think this PR must also provide the required documentation.
How we can build a strong and indisputable argument to support this change as a fix and not as a new feature?
I'd like to hear more opinions here.
/cc
@mbabker, @franmomu.
Hello guys :) Any news about this PR ? |
I'd put it behind a config from the metadata instead of making a hard behavioral change. For the folks who want globally unique slugs, even across languages, they'd turn on this behavior with the config in the metadata. If a platform is OK with duplicated slugs across languages, then it should also have something in place to deal with that potential duplication (i.e. if your route definition is |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
How would you implement this as configurable? @mbakker |
…oking for similar slugs Force translation walker to look for slug translations to avoid duplicated slugs. --- Fixes doctrine-extensions#100, fixes doctrine-extensions#2530
…uniqueness across translated slug as well
36a408f
to
1d135a4
Compare
thanks @ambroisemaupate for keeping working on this! and @mbabker |
Force translation walker to look for slug translations to avoid duplicated slugs.
Fixes #100, fixes #2530