Skip to content
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

Invert "--no-regen-url-key" to "--regen-url-key" #151

Open
Serializator opened this issue Jul 21, 2021 · 1 comment
Open

Invert "--no-regen-url-key" to "--regen-url-key" #151

Serializator opened this issue Jul 21, 2021 · 1 comment

Comments

@Serializator
Copy link

Summary

Today I've been working on an production issue for a customer of ours involving URL rewrites. I needed to regenerate URL rewrites because something messed up and I decided to use this module to accomplish this task.

When reading the description the module seems to specifically focus on URL rewrites and thus I assumed that it would only act upon URL rewrites and nothing else, unless it was specifically instructed to.

"Magento 2 "Regenerate Url rewrites" extension add a CLI feature which allow to regenerate a Url rewrites of products/categories in all stores or specific store"

It turns out that by default the module regenerates URL keys as well, unless told otherwise. I think that right now this behaviour is intended but in practice might be more problematic than anything else. Causing damage / corrupting data such as URL keys which would then have to be reverted from a backup.

I know that there have been issues about this in the past but I believe this to be an important topic of discussion and I hope rather than saying "it's been like this forever, so lets keep it this way" that there should be an open discussion about it and based on that a decision can be made for the future.

Basic example

I would suggest changing --no-regen-url-key into --regen-url-key to make this side effect more explicit.

@Detzler
Copy link

Detzler commented Oct 26, 2023

Hi @olegkoval, I've just fkd up all my product url_keys assuming that the extension would only make changes to the url rewrite table. The description of the extension is indeed misleading. Either the descripion should be more obvious or, as @Serializator suggested, the inversion should be made.

I also suggest to go for the inversion.

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

No branches or pull requests

2 participants