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

Fix bug with empty snackbar queue #703

Merged
merged 1 commit into from
Jun 25, 2021
Merged

Fix bug with empty snackbar queue #703

merged 1 commit into from
Jun 25, 2021

Conversation

ibusko
Copy link
Contributor

@ibusko ibusko commented Jun 25, 2021

I just found out the bug reported by @rosteen on PR #701 (IndexError: pop from an empty deque). This didn't happen to me before when testing for the PR itself, but now I saw it when reviewing PR #687.

This PR fixes the bug.

@pllim pllim added bug Something isn't working embed Regarding issues with front-end embedding Ready for final review labels Jun 25, 2021
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.

The code looks reasonable but since it was spotted in cubeviz, let's see what Ricky says.

@codecov
Copy link

codecov bot commented Jun 25, 2021

Codecov Report

Merging #703 (1a74273) into main (f25cb28) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #703   +/-   ##
=======================================
  Coverage   60.13%   60.14%           
=======================================
  Files          65       65           
  Lines        4099     4100    +1     
=======================================
+ Hits         2465     2466    +1     
  Misses       1634     1634           
Impacted Files Coverage Δ
jdaviz/utils.py 97.95% <100.00%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f25cb28...1a74273. Read the comment docs.

Copy link
Collaborator

@rosteen rosteen left a comment

Choose a reason for hiding this comment

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

Ah, I guess I just happened to not hit it again after checking the cube fitting change. Looks good to me.

@pllim pllim merged commit 27fa7f1 into spacetelescope:main Jun 25, 2021
@ibusko ibusko deleted the snackbar-fix branch August 31, 2021 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working embed Regarding issues with front-end embedding Ready for final review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants