Closed (fixed)
Project:
Drupal core
Version:
8.4.x-dev
Component:
workflows.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
25 Jul 2017 at 07:24 UTC
Updated:
8 Sep 2017 at 08:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
larowlanComment #3
larowlanSorry for hating on
elseif, I think this is easier to understand the flow and is more performant because it deletes and moves on earlyComment #4
sam152 commentedI wanted to make sure we had test coverage for this, so I stuck a debugger in here and it didn't hit once when running all of the unit tests. Working on a test for this.
Comment #5
sam152 commentedThe existing line that proves 'create_new_draft' was removed when the 'draft' state was removed.
The new lines that prove now that 'published' and 'draft' are gone, the 'archive' transition was deleted, because all 'from' states were removed.
The fix itself LGTM. +1 RTBC.
Comment #6
sam152 commentedComment #8
sam152 commentedI only tweaked the test, maybe I can RTBC this.
Comment #11
catchCommitted/pushed to 8.5.x and cherry-picked to 8.4.x. Thanks!