- 🇬🇧United Kingdom minirobot London
Adding an update hook to resolve the entity mismatch error on the rid field.
- Status changed to Needs review
over 1 year ago 5:13pm 17 August 2023 - last update
over 1 year ago 44 pass, 8 fail - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago 44 pass, 8 fail - last update
over 1 year ago 44 pass, 8 fail - last update
over 1 year ago 44 pass, 8 fail - 🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺
I'd like to see what tests say, marking NR.
-
+++ b/redirect.install @@ -236,3 +236,29 @@ function redirect_update_8109() { +function redirect_update_8110() { +++ b/redirect.post_update.php @@ -0,0 +1,124 @@ + * Add the redirect revision table.
Should this be moved to redirect_post_update_make_redirect_revisionable?
-
+++ b/src/Entity/Redirect.php @@ -95,26 +113,6 @@ class Redirect extends ContentEntityBase { - public function setLanguage($language) { ... - public function setStatusCode($status_code) {
I don't see why deleting these functions and adding the setDynamic. Aside of this breaking APIs, it just doesn't make sense to me.
-
The last submitted patch, 14: 3313540-14.patch, failed testing. View results →
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.The last submitted patch, 15: 3313540-15.patch, failed testing. View results →
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.The last submitted patch, 16: 3313540-16.patch, failed testing. View results →
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.The last submitted patch, 19: 3313540-19.patch, failed testing. View results →
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.- Status changed to Needs work
over 1 year ago 2:25pm 21 August 2023 - 🇬🇧United Kingdom minirobot London
Implemented the suggestions from #20:
- Moved the schema update into the post update hook.
- Removed setRedirectDynamic and restored the functions it replaced.
- last update
over 1 year ago 62 pass, 2 fail - last update
over 1 year ago 63 pass - last update
over 1 year ago 63 pass - last update
over 1 year ago 63 pass - Status changed to Needs review
over 1 year ago 9:24am 24 August 2023 - 🇨🇭Switzerland berdir Switzerland
I'm not convinced about this. I understand that a few people have this use case, but I maintain sites with tens and hundreds of thousands of redirects, and this update would be very expensive for them, result in extra storage and it's not useful for 99% of the sites.
This seems non-intrusive enough that it could be done in a separate project for those that require it, by replacing the entity class and hooks.
- 🇷🇴Romania amateescu
@berdir, revision (and publishing status) support is also needed by Workspaces, because at the moment we only have the "ignore" approach from 📌 Allow CRUD operations for Redirect entities in a workspace Needs review , which basically means that any redirect created in a workspace is also available in Live, and that's not really a great (nor expected) behavior :)
For your concern about extra storage, I think we shouldn't create new revisions by default like the latest patch does, but allow this behavior to be configured for people that need it.