Closed (fixed)
Project:
Drupal core
Version:
8.8.x-dev
Component:
workspaces.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Nov 2019 at 11:49 UTC
Updated:
9 Dec 2019 at 23:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
amateescu commentedThis should do it.
Comment #3
catchIs this the current way to figure out if we're in an update or not? I can't see similar anywhere else yet.
Don't we also need to do this in the migrate UI too for similar reasons?
Comment #6
amateescu commentedThanks for the review!
That was my initial thought about handling this, but, after sleeping on it for a bit, I think a better way to do this is to ensure that no workspace negotiators run during database updates, similar to how we handle path aliases in
\Drupal\Core\Update\UpdateServiceProvider::alter().The migration part of this problem is being handled differently in #3052115: Mark an entity as 'syncing' during a migration update.
Also figured out a better way to test this, so here's a fresh set of patches.
Comment #7
catch#6 looks a lot more like I was expecting.
Comment #9
berdirPreviously, it would have made sense to make sure that we do have a value, but assertTrue/False are now type sensitive, so assertFalse(NULL) will fail, so that's good.
This looks good I think.
Comment #15
catchCommitted/pushed to 9.0.x, 8.9.x, 8.8.x, thanks!
Comment #20
jibranI'm making the following change over in #3087644: Remove Drupal 8 updates up to and including 88** and it is complaing about no update hooks whereas test module with post-update hook is present and installed. Any quick pointer here or I'd debug in more detail.