-
Notifications
You must be signed in to change notification settings - Fork 13
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
Pjdotson/sy 775 ontology ungrouping several folders at the same time causes #652
Pjdotson/sy 775 ontology ungrouping several folders at the same time causes #652
Conversation
Synnax 23.0 RC
…-opc-ua-documentation-improvements [docs] OPC UA documentation Improvements
…y-ungrouping-several-folders-at-the-same-time-causes
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## rc #652 +/- ##
==========================================
+ Coverage 51.67% 51.83% +0.15%
==========================================
Files 1040 1040
Lines 78615 78658 +43
Branches 3249 3249
==========================================
+ Hits 40628 40773 +145
+ Misses 37001 36899 -102
Partials 986 986
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -81,6 +81,11 @@ const ungroupSelection = async ({ | |||
state, | |||
}: Ontology.TreeContextMenuProps): Promise<void> => { | |||
if (selection.parent == null) return; | |||
selection.resources.sort((a, b) => { |
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.
@pjdotson Can you explain how this fixes the problem?
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.
The only issue I could find was nested groups disappearing when ungrouping so if Group B is in Group A, ungrouping Group A first would not remove items originally in Group B from the tree. Ungrouping deeper groups first fixed that problem.
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.
Great. Thanks. Approved
Fix Pull Request Template
Key Information
Description
Prevented an issue where some items are removed from the subgroup when ungrouping by always ungrouping the most deeply nested group first.
Basic Readiness Checklist
Manual QA Additions
with necessary manual QA steps to test my change.