Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
tour.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Oct 2018 at 11:25 UTC
Updated:
26 Jun 2023 at 21:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
clemens.tolboomComment #3
clemens.tolboomHope I got it right. Pointers on how to easily local test are welcome :-(
Comment #4
clemens.tolboomIt did not fail as logic was wrong.
Comment #5
clemens.tolboomComment #10
ridhimaabrol24 commentedRerolled patch for 9.1.x!
Comment #13
ridhimaabrol24 commentedFixing failed tests!
Comment #16
tanubansal commentedPatch #13, 9.1 is working fine
RTBC
Comment #20
ranjith_kumar_k_u commentedRerolled #13
Comment #21
smustgrave commentedComment #23
clemens.tolboom(Not sure how to trigger a retest)
Comment #24
smustgrave commentedPutting back to RTBC seems to be a random test failure. Reran and no issues.
@clemens.tolboom under the patch you can click Add test/ retrest
Comment #25
clemens.tolboomNot sure how you did it ... but I guess you went through the custom flow? My UX with this is bad.
But yeah ... now Tour UI can use this :)
Comment #26
quietone commentedThe issue summary should have a proposed resolution so reviewers and committers can check that the desired solution is implemented.
Some manual testing of this would be a good idea, as well.
I do not see a code review of any of the patches. I took a brief look.
Tests enabling and disabling the tour tip functionality.
Ha, the test actually tests disabled first! But if this is testing the status value then use that name, testStatus.
If it were me I would test enabled first, then disabled. That way we have some assurance that the disabling really removes the tips.
Wrap to 80 characters.
This can be more informative. We already know it is a bool from the @param above.
Message are not used in core assertions, except when needed as when in a loop.
Comment #28
pooja saraah commentedThanks for your suggestions @quietone
Addressed the comment #26 point-1,2,4,5
Attached patch against Drupal 10.1.x
Attached reroll patch
Comment #29
pooja saraah commentedComment #30
smustgrave commentedTook a shot at updating the IS
Addressed the remaining issues from #26
Tested using https://www.drupal.org/files/issues/2018-10-07/tour_ui-2073321-3.patch
Even though the issue for tour_ui still needs work enable and disable a tour through a ui.
Once disabled I confirmed the tour was no longer appearing.
Re-enabled and confirmed tour reappeared.
Comment #31
smustgrave commentedThis is bad behavior on my part. Moving to RTBC as this is blocking a feature or two for tour UI. And even though tour UI is not part of core there is talk that tour is going to be slated for removal. Would be nice to get this feature in before that freeze happens.
Comment #32
quietone commentedYes, we do not self RTBC in the Drupal core issue queue. I am setting this back to needs review per Reviewed & tested by the community ["RTBC"] .
If this is block a contrib project, please add the correct tag.
For those interested, the proposal for discussing the removal of tour is at #3325445: [Policy] Remove tour module from core.
Comment #33
larowlannit: >80
we can use a named argument here
can return here and avoid the elseif
Couple of minor things
Comment #34
ameymudras commentedAttempting to fix the issues mentioned in #33
Comment #35
smustgrave commented#34 didn't address 2 or 3.
For 2 it was testing an empty but now it's passing in values.
For 3 Adding a return that way doesn't do anything as it's the end of the if statement.
Think (could be wrong) this was more what @larowlan was saying.
Comment #37
larowlanshould this be 'is not found'?
this can stay as an else, as an if, we returned in the above if path
Looks like #35.2 isn't handled yet, see https://php.watch/versions/8.0/named-parameters#named-param-optional-params for an example, I don't think we need to pass the empty array for the first argument as that's the default
Comment #38
smustgrave commentedAddressed points #37 and #35.2
Comment #39
larowlanThis line can be removed (can be fixed on commit)
Should we be passing the $tour here - to assert the one we expect to see is present?
👌 noice
I think we want
So we cover the three cases:
* Expecting tips, but none
* Not expecting tips, but found some
* Not expecting tips, none found as expected
Comment #40
smustgrave commented#39
1. Fixed
2. We can't as the $tour isn't an array
3. Thanks!
4. Updated
Comment #41
danielgry commentedTest results: PASS
Notes:
- Tested the latest patch on Drupal 10.1.x using DrupalPod to setup up the env
- Tested with the umami_demo profile
- I had to uninstall and reinstall the Tour module for a tour itself to be disabled
Outcome:
1. Spun up the test environment with DrupalPod and logged in as admin
2. Verified that the Tour module was enabled in the testing site
3. Visually confirmed that tours were enabled and working by going to Languages in configuration (see Screenshot 1)
4. Changed status of tour to "false" in a yml file under language module and cleared cache
5. Checked the language tour in testing site but the tour was still visible
6. Uninstalled and then reinstalled the Tour module in the DrupalPod cli
7. Confirmed that only the language tour was disabled in the testing site (see Screenshot 2)
8. Re-enabled the language tour by setting status to “true” but it was only visible again in the testing site after I reinstalled the tour module
Comment #42
smustgrave commentedIf you've tested and reviewed the ticket and think it's good to go feel free to change status to RTBC.
Comment #43
smustgrave commentedTaking #41 as a review.
This has been a block for tour_ui ability to setup tour statuses for a long time.
Comment #46
larowlanCommitted and pushed to 10.1.x
I think this is borderline feature, so splitting the difference and marking as a task.
Didn't backport because we're in RC phase and I don't think this meets the requirements for commit during RC