Closed (fixed)
Project:
Drupal core
Version:
8.5.x-dev
Component:
workflows.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Jul 2017 at 07:25 UTC
Updated:
1 Dec 2017 at 20:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tacituseu commentedComment #3
larowlanComment #5
sam152 commentedNoticed a stray quote in some related exceptions.
Comment #6
borisson_The patch does exactly what's being asked for in the IS. Looks good to me.
Comment #8
xjmIs there any particular reason we're using different messages for the state weight vs. transition weight?
Comment #9
xjmFWIW I think both could be:
Comment #10
xjmActually, ideally, the exception would also tell you which state or transition has a non-numeric weight, for better debugging.
So something like:
Setting NW for that. Thanks!
Comment #11
dinesh18 commentedHere is an updated patch and interdiff implemented as per #10 comment.
Comment #12
sam152 commentedHi @Dinesh18, looks good, but I think we'll have to update the tests to assert the updated exceptions.
Comment #13
sam152 commentedComment #14
MaskOta commentedMy first test fixes. Please be gentle test bot.
Comment #15
sam152 commentedHi @MaskOta, thanks for the contribution! Sometimes it's helpful to provide an interdiff, which are the changes you've introduced since the last patch. I've included one for this issue for between #11 and #14. You can generate these with git while you're working.
Both these calls to
getStateandgetTransitionare guarded by ahasState/hasTransitioncheck, so totally safe to use them for the purposes of getting the label. +1One last thing here, we're talking about transitions in this method and the exception references 'state'.
Comment #16
MaskOta commentedThanks for reviewing. I fixed up the labels for the transition so they make more sense.
Comment #17
sam152 commentedPerfect, thanks!
Comment #18
larowlanCommitted as 7dbf76d and pushed to 8.5.x