-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Add drag and drop for selected reports #23913
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
Conversation
… testing the order persistence of selected reports
…cheduled reports as well as updated reports. Old reports should retain the old order
…stence of selected reports, we are also testing creating and updating a scheduled report
… adding enforceOrder parameter to Integration tests
…fault or if it is not passed as part of the parameter when adding or updating the scheduled report.
…ame function as the rest of the report parameters
bd05c89 to
51bc2ee
Compare
…gory if 'enforceOrder' parameter is false
nathangavin
left a comment
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.
Looks good to me, only minor issue is perhaps some leftover code? see comment.
| const $list = jq('.selectedReportsList'); | ||
| // Get sortable instance and call stop handler manually, | ||
| // so that we simulate the emitted reorder event | ||
| const stopHandler = $list.sortable('option', 'stop'); |
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.
We should avoid using jQuery UI where possible. The short / mid term plan is to fully remove it, not to add more usage of it. See #16033
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.
Thanks for the info on this @sgiehl.
I'll not add in new jquery code in the future
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.
Interesting info.
It's noted on my side too! 👍
Description
UX-352
We want to be able to add a new section that shows the 'selected reports' and be able to re-order them.
We would want the reports to be created/displayed in the order they where put in.
fixes #17662
Acceptance Criteria:
Checklist
Review