Skip to content
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

Conversation

pjdotson
Copy link
Contributor

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

  • I have performed a self-review of my code.
  • I have added sufficient regression tests to cover the changes.

Manual QA Additions

  • I have updated the Release Candidate template
    with necessary manual QA steps to test my change.

@pjdotson pjdotson requested a review from emilbon99 June 20, 2024 13:46
@pjdotson pjdotson self-assigned this Jun 20, 2024
Copy link

vercel bot commented Jun 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 24, 2024 2:49pm

Copy link

codecov bot commented Jun 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.83%. Comparing base (b90cfed) to head (f48871f).
Report is 59 commits behind head on rc.

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              
Flag Coverage Δ
clientpy 87.38% <ø> (ø)
freighterpy 84.98% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -81,6 +81,11 @@ const ungroupSelection = async ({
state,
}: Ontology.TreeContextMenuProps): Promise<void> => {
if (selection.parent == null) return;
selection.resources.sort((a, b) => {
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great. Thanks. Approved

@emilbon99 emilbon99 merged commit 8cd5db5 into rc Jun 24, 2024
49 checks passed
@pjdotson pjdotson deleted the pjdotson/sy-775-ontology-ungrouping-several-folders-at-the-same-time-causes branch July 1, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants