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

remove state-sync for data menu open #2670

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

kecnry
Copy link
Member

@kecnry kecnry commented Jan 23, 2024

Description

As an alternate option to #2669, this decouples each data-menu from other instances in the same viewer (so only a single menu will be open if multiple instance of the app are being shown).

Fixes #2581

Close #2669

Change log entry

  • Is a change log needed? If yes, is it added to CHANGES.rst? If you want to avoid merge conflicts,
    list the proposed change log here for review and add to CHANGES.rst before merge. If no, maintainer
    should add a no-changelog-entry-needed label.

Checklist for package maintainer(s)

This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.

  • Are two approvals required? Branch protection rule does not check for the second approval. If a second approval is not necessary, please apply the trivial label.
  • Do the proposed changes actually accomplish desired goals? Also manually run the affected example notebooks, if necessary.
  • Do the proposed changes follow the STScI Style Guides?
  • Are tests added/updated as required? If so, do they follow the STScI Style Guides?
  • Are docs added/updated as required? If so, do they follow the STScI Style Guides?
  • Did the CI pass? If not, are the failures related?
  • Is a milestone set? Set this to bugfix milestone if this is a bug fix and needs to be released ASAP; otherwise, set this to the next major release milestone.
  • After merge, any internal documentations need updating (e.g., JIRA, Innerspace)?

@kecnry kecnry added bug Something isn't working UI/UX😍 labels Jan 23, 2024
@kecnry kecnry added this to the 3.8.2 milestone Jan 23, 2024
@kecnry kecnry force-pushed the alt_fix_data_menu_in_multi_view branch from 8ccd8fb to f276ed6 Compare January 23, 2024 16:07
@kecnry kecnry marked this pull request as ready for review January 23, 2024 16:08
Copy link

codecov bot commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (20b9de5) 91.52% compared to head (f276ed6) 91.53%.
Report is 157 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2670   +/-   ##
=======================================
  Coverage   91.52%   91.53%           
=======================================
  Files         161      161           
  Lines       20196    20196           
=======================================
+ Hits        18485    18486    +1     
+ Misses       1711     1710    -1     

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

Copy link
Contributor

@pllim pllim left a comment

Choose a reason for hiding this comment

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

Is this a possible side effect? I was switching between linked pan/zoom and linked box-zoom in the first viewer. And then all of a sudden, the order of the tools switched in the first viewer without warning or error. I was caught by surprised.

Screenshot 2024-01-23 181120

@pllim
Copy link
Contributor

pllim commented Jan 23, 2024

p.s. I rebased this PR on top of main before I tested it.

@kecnry
Copy link
Member Author

kecnry commented Jan 24, 2024

I cannot imagine how that would possibly be related to this, but if you can consistently reproduce here but not on main, I can investigate.

Copy link
Contributor

@pllim pllim left a comment

Choose a reason for hiding this comment

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

If that tool swapping thing is unrelated, then your patch also fixed the original problem.

I guess it is up to POs to see what users would prefer? Thanks!

@kecnry kecnry added Ready for final review 💤backport-v3.8.x on-merge: backport to v3.8.x labels Jan 24, 2024
@kecnry
Copy link
Member Author

kecnry commented Jan 24, 2024

I guess it is up to POs to see what users would prefer?

This was discussed today and the decision was to move forward with review on this PR, and if it doesn't show any major drawbacks, go with this approach since it's a less-significant behavior change.

@kecnry kecnry added trivial Only needs one approval instead of two and removed Ready for final review labels Jan 25, 2024
@kecnry kecnry merged commit 0075c92 into spacetelescope:main Jan 25, 2024
27 of 28 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/jdaviz that referenced this pull request Jan 25, 2024
@kecnry kecnry deleted the alt_fix_data_menu_in_multi_view branch January 25, 2024 16:39
kecnry added a commit that referenced this pull request Jan 25, 2024
gibsongreen pushed a commit to gibsongreen/jdaviz that referenced this pull request Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working trivial Only needs one approval instead of two UI/UX😍 💤backport-v3.8.x on-merge: backport to v3.8.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Data menu broken in Imviz extra viewer on Lab
2 participants