- Issue created by @joseph.olstad
- Issue was unassigned.
- Status changed to Needs review
about 1 year ago 8:03pm 14 November 2023 - 🇨🇦Canada smulvih2 Canada 🍁
@joseph thanks for opening a new ticket for this! Will see if I can reproduce the issue to test this fix.
- Status changed to Needs work
about 1 year ago 2:52pm 15 November 2023 - 🇨🇦Canada SKAUGHT
step 2. delete the countries yml that was brought in
I'm assuming #6 also manually deletes your own config too.
// Update hook 8501 wasn't run correctly for some reason, or the yml was deleted.
in your patch you commented.
also: you do reset 8501 with the new namespace than it was it updated. (ln 678 after patch #2). this changes the condition to see if a user actually changed any config in their site. is this confirmed?DOCUMEATION?
How did you delete the config to begin this test? It's as much a fail point should someone have the ability in an install to manually delete an active config. We are patching against a dev line if not just from the 5.0.1 release, changing hashes and dropping a config... - Status changed to Needs review
about 1 year ago 4:35pm 15 November 2023 - 🇨🇦Canada joseph.olstad
@SKAUGHT
An alternative test is this:
Remove the countries yml from your filesystem
import the configs so that it's deleted from your schema.Now run the following drush commands.
drush eval "\Drupal::service('update.update_hook_registry')->setInstalledVersion('wxt_core', 8501);"; drush updb -y;
doing this without the patch will crash your system
add the patch and the countries are brought in correctly without crashing.
- 🇨🇦Canada SKAUGHT
Your overlaying a rollback situations.. I get that..
- physically removing the config form FS, then reset instance of triggered hook.
I do see this is a complex developer sequence to cause a fail. is this real-world then from the 5.0.1 release. or any sites that upgrade from v4 itself?In the moment this seems more like {entity}->isNew() doesn't catch something as could be hoped..
- 🇨🇦Canada joseph.olstad
Hi @SKAUGHT,
I deleted my countries yml then I ran your patch, set the schema version to 8501, ran updb, the end result is that I no longer had any countries.The countries were not restored.
I prefer patch #2 because it brings back the countries.
I also re-tested patch #2 , if I have the correct countries value, there's no crashing.
- Status changed to RTBC
about 1 year ago 8:44pm 16 November 2023 - 🇨🇦Canada SKAUGHT
Okay, that sound good to me too!
let move with patch #2.
-
sylus →
committed 1ccd242a on 5.0.x authored by
joseph.olstad →
Issue #3401668 by joseph.olstad, SKAUGHT: Regression fix for Change...
-
sylus →
committed 1ccd242a on 5.0.x authored by
joseph.olstad →
- Status changed to Fixed
about 1 year ago 9:14pm 17 November 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
about 1 year ago 2:23pm 19 December 2023 - 🇨🇦Canada joseph.olstad
fixes we made to 5.0.x were not fully merged into 5.1.x
I just got tripped up on this with 5.1.0 , made a new ticket here:
#3409755: 5.1.x requires some merges from 5.0.x - countries fix is missing →