Problem/Motivation
The following scenario occurred on http://tour.drutch.nl/admin/config/user-interface/tour
There are 2 tours bound to <front>
- tour.tour.toolbar (module: toolbar)
- tour.tour.tour-integration (module: tour_builder)
The site builder must be able to disable tours.
Proposed resolution
Operations are now available but core does not react.
Remaining tasks
Review patch
Add tests to core #3004897: Respect tour status (disabled | enabled)
User interface changes
API changes
Related Issues
- Core
- #3004897: Respect tour status (disabled | enabled)
- Outdated #2074835: Tour: make operations enable | disable available for tours
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | Screenshot 2022-10-27 at 12.31.00.png | 10.93 KB | clemens.tolboom |
| #11 | 2073321-11.patch | 4.79 KB | smustgrave |
| #11 | interdiff-3-11.txt | 3.95 KB | smustgrave |
Issue fork tour_ui-2073321
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 #0.0
clemens.tolboomAdded issue summary template
Comment #0.1
clemens.tolboomtypo
Comment #1
nick_schuch commentedThe parent class provides these. I commented them out at the time as I was focusing on tip manipulation.
+1 to this
Comment #1.0
nick_schuch commentedUpdated issue summary.
Comment #2
clemens.tolboomThe operations Enable and Disable do not exists in Core Tour
Attached patch is first stab. It still needs the confirm forms.
Comment #3
clemens.tolboomI can change the status of a tour but code tour is not responding to a disabled status.
Comment #4
clemens.tolboomComment #5
clemens.tolboomIssue #2074835: Tour: make operations enable | disable available for tours is out dated as operation for config entities are now available.
Core issue #3004897: Respect tour status (disabled | enabled) fixes this.
Comment #6
clemens.tolboomComment #7
clemens.tolboomComment #8
smustgrave commentedGoing to close this since a core ticket is already open.
Comment #9
smustgrave commentedOops see this patch is needed to go with the core one.
Comment #10
smustgrave commentedSo tested patch #3 and see that the option to disable is in the dropdown but when I go into the tour I cannot disable from there.
Comment #11
smustgrave commentedThe core issue is in review.
Fixed the issue I brought up in #10
Comment #12
clemens.tolboomLGTM so we have to wait on #3004897: Respect tour status (disabled | enabled)
I tried to put enable/disable above 'delete' but failed to do. Even
did not help. Is this a core bug we should file an issue with?
As we get Edit/Delete from parent guess we do not need to redefine them? (No need to put in here. Better make a code cleanup issue?)
Comment #13
smustgrave commentedIf anyone here is free please go review the core issue so this can be unblocked.
Comment #14
smustgrave commentedComment #17
smustgrave commentedParent issue landed so going to close this old one out.
WOoo!!
Comment #18
clemens.tolboomTNX