Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Follow up to #2899553: Architectural review of the Workflows module (documentation cleanups) where @Wim Leers suggested we should add orderby
for states and transitions in a workflow. The schema for these are handled by the implementation, in Core's case Content Moderation.
Proposed resolution
Add orderby: key
to content_moderation.schema.yml
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#4 | 2900700-4.patch | 1.88 KB | timmillwood |
#4 | interdiff-2900700-4.txt | 1.15 KB | timmillwood |
Comments
Comment #2
timmillwoodComment #4
timmillwoodNeeded to reorder workflows.workflow.editorial.yml to match the
orderby: key
definition.Comment #5
Wim LeersThat proves this works :)
DefaultConfigTest
FTW!Comment #6
Wim LeersI associated this with the existing CR: https://www.drupal.org/node/2852566.
Comment #7
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedManually tested, works as designed. +1 RTBC.
Comment #11
larowlanCommitted as f9c65b1 and pushed to 8.5.x
Cherry-picked as d9bfe43 and pushed to 8.4.x.