Problem/Motivation
Recipes can provide new tours. But ideally they would be able to alter existing tours.
A config action for adding a step to existing tours will be helpful.
simpleConfigUpdate might be available, but would require updating the entire list.
Proposed resolution
Create a method addStep receiving a single step in tour config entity.
Remaining tasks
MR
User interface changes
None
API changes
API addition
Data model changes
None
Issue fork tour-3478729
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
penyaskitoComment #3
penyaskitoComment #4
smustgrave commentedThis postponed on the related item?
Comment #5
thejimbirch commentedNot postponed, both are related to the Drupal CMS Dashboard track.
Comment #6
smustgrave commentedSo if the one lands what would be needed here?
Super new to the config actions
Comment #7
penyaskitoTour will need its own config actions implemented. I added that one as related because the implementation will probably be very similar.
Comment #8
thejimbirch commentedConfig Action documentation:
https://git.drupalcode.org/project/distributions_recipes/-/blob/1.0.x/do...
Comment #9
smustgrave commentedJust following up on this one, think it would be neat to add.
Comment #10
smustgrave commentedFinally going to give this a shot, fingers crossed
Comment #11
smustgrave commentedOne question though do I need a deriver or can I use entity_type: ['tour']
Comment #12
penyaskitoI don't think you need a deriver for this one.
Comment #13
smustgrave commentedSo would it be something like
Does the configuration need to be nested in anything?
Comment #15
smustgrave commentedComment #16
penyaskitoIn #3540305: The addComponentToLayout config action should support adding multiple components we added the ability to add several blocks to a layout in the same action. I think for tour tips it's even more relevant.
Comment #17
smustgrave commentedSomething like that?
Comment #18
smustgrave commentedIf no objections going to merge for a deploy today
Comment #19
thejimbirch commentedThis looks good to me. Love the example in the comments of the action. Marking RTBC.
Comment #20
smustgrave commentedThanks!