-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.2] [Guided Tours] Addition of 'Auto start' step in 'How to create a tour?' tour #44105
Conversation
Richard @richard67 I am not sure about the updated scripts. I cannot add a step in a tour between other steps and ensure the steps are in the right order. Also, I am not sure it's good practice to use UNION ALL in the INSERT INTO ... SELECT. |
Brian @brianteeman How is the wording for you? |
@obuisard I can’t check before weekend. |
@obuisard Does that mean the tour steps need to be saved in database in the same order as they appear in the list because they obviously don't have an |
That's why I am reaching out, Richard @richard67. I need an expert opinion. I have a step that needs to be inserted between 2 steps and the order may have been changed (for whatever reason). The order of steps is recorded in the In the event the order of the steps had not been changed since install, it would go between steps with ids 5 and 6 (which have an ordering of 5 and 6 respectively). Would give the new step an order of 5 be enough? |
@obuisard I did not see the ordering column being used in your insert statements in the update SQL scripts. That’s why I was not aware of it. when inserting something new between ordering 5 and 6, you can first update all steps with ordering >= 6 to set ordering = ordering + 1, so what had 6 before will have 7, what had 7 before will have 8 and so on, and ordering 6 would be free. Then insert the new step with ordering 6. In general, when you do an „update sometable set somevalue=somevalue+1 where somecondition“, you increment somevalue by 1 where somecondition is true. |
Thanks, Richard @richard67 |
administrator/components/com_admin/sql/updates/mysql/5.2.0-2024-09-17.sql
Outdated
Show resolved
Hide resolved
administrator/components/com_admin/sql/updates/postgresql/5.2.0-2024-09-17.sql
Outdated
Show resolved
Hide resolved
…4-09-17.sql One statement for update Co-authored-by: Richard Fath <[email protected]>
Co-authored-by: Richard Fath <[email protected]>
Thank you, Richard @richard67 for your help |
technically this update query would not be correct if the user has changed the order of the steps but as thats very unlikely I can confirm the update sql works on mysql |
No, something is not working. All newly created tours are placed in the Dashboard, although I have installed other components. |
I have installed the PR as a fresh install, and as an update, created new tours, with auto starting enabled and did not seem to encounter any of those issues. The 404 error you are getting: what is the URL in your browser for that page? Could it be that the URL parameter you have set in the tour is incorrect (basically the URL is set to start in a page that does not exist)? The tours you have created: are 123, 234, 455 the titles of the tours? If you left 'Component selector' set to 'all', the tours will show in the Dashboard section (in the list of all the tours). Although maybe, as an improvement, we should put those special cases under no section... But it is unrelated to this PR. If you create a tour for banners, you would select 'Banners' for the tour to show under the 'Banners' section. If you have 3 tours set to auto-start and set to start anywhere (= when the component selector is set to 'all'), any refresh of any console page will start a new tour after you have either completed, cancelled or skipped the previous one. |
I have tested this item ✅ successfully on 1bb95a1 Well, I tested PR with the old installation + service pack with PR and separately with the new installation. No errors were noticed, below I am posting a successful test. Thanks. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44105. |
I have tested this item ✅ successfully on 1bb95a1 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44105. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44105. |
@alikon The PR has 2 good tests so I've set it RTC, but it would be good to get an additional quick test with PostgreSQL, too, just to see if installation with and updating to the patched package of this PR works. I would be happy if you could find the time. Thanks in advance. |
update from 5.1.4 to Prebuilt package of this pr doesn't work
|
@obuisard On PostgreSQL, double quotes are for names (table names, column names) but not for strings. Strings are quoted with single quotes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this pr as "per se" works fine on postgres
Thanks Richard @richard67 , yes, I missed it. Thanks Nicola @alikon for the correction. |
Thank you for your contribution @obuisard! |
joomla/joomla-cms#44106 - (только для en-GB) joomla/joomla-cms#44075 + joomla/joomla-cms#44093 + joomla/joomla-cms#43694 + joomla/joomla-cms#44082 + joomla/joomla-cms#44110 - (только для en-GB) joomla/joomla-cms#44111 + joomla/joomla-cms#44105 + joomla/joomla-cms#44146 - (только для др. пакетов) joomla/joomla-cms#44142 + joomla/joomla-cms#44127 - (только для en-GB) joomla/joomla-cms#44132 + joomla/joomla-cms#44137 + joomla/joomla-cms#44145 +
Pull Request for Issue #44094.
Summary of Changes
The 'Auto Start' was added to the tour parameters.
The tour needs to take into account that parameter in adding a new step in the tour.
Testing Instructions
You need to test on a fresh install and on update.
Run the tour 'How to create a tour?'.
Actual result BEFORE applying this Pull Request
The tour runs and bypasses the parameter 'Auto Start'.
Expected result AFTER applying this Pull Request
The tour runs and has a step for the 'Auto Start' parameter, just before the step 'Save and close'.
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed