Closed (fixed)
Project:
Drupal core
Version:
8.5.x-dev
Component:
workflows.module
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2017 at 04:05 UTC
Updated:
26 Oct 2017 at 05:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sam152 commentedComment #3
sam152 commentedComment #4
sam152 commentedComment #6
kim.pepperI could only see one use of the string in the interfaces.
Comment #7
wim leersWe should also update
Comment #8
sam152 commentedComment #9
eric115 commentedUpdated the comment and found one more occurrence of 'from'.
I used the full namespace in the comments to try and follow some other examples in core, although one line goes goes over 80 characters.
Comment #10
eric115 commentedComment #11
sam152 commentedMaybe we could use just
TransitionInterface::DIRECTION_FROMin the@paramcomments and put the whole class in a@seeat the end of the comment.Otherwise looks good to me.
Comment #12
eric115 commentedUpdated the patch as per @Sam152's comments in #11.
Comment #13
sam152 commentedShould probably read as one sentence without the premature line breaks.
I think we can
@seethe full path\Drupal\workflows\TransitionInterface\TransitionInterface::DIRECTION_TOand add a line for each constant.Comment #14
eric115 commentedNew patch with feedback from #13.
Comment #15
eric115 commentedComment #16
sam152 commentedLooks good to me!
Since workflows will have been stable for 6 months before this is in a release, I think a change record might make sense here.
Comment #17
larowlanNow I think we just need to use the constants in these places
@Sam152 - do you agree?
Comment #18
sam152 commentedI'm not totally sure, I think it makes sense to use these constants when calling a public method from the outside, but not as much when accessing some internal configuration structure in an implementation of the plugin. You could satisfy the plugin interface while not storing configuration in those keys, so I don't know if using the constant there indicates the schema is fixed in some way.
Comment #19
larowlan@eric115 @kim.pepper @WimLeers - thoughts?
Happy to go with @Sam152 (maintainer) if others agree
Comment #20
kim.pepperI'm happy to go with @Sam152
Comment #21
larowlanCrediting Sam and Wim for their reviews.
We still need a change record as per request from Sam.
Comment #22
eric115 commentedAdded a change record https://www.drupal.org/node/2914791
Comment #23
kim.pepperThanks @eric. Slight change: I think you meant to use TO instead of duplicating FROM:
Comment #24
eric115 commentedOops, missed that one!
All fixed :)
Comment #25
kim.pepperBack to RTBC
Comment #27
larowlanCommitted as 4a80851 and pushed to 8.5.x.
Comment #28
larowlanpublished change record