-
Notifications
You must be signed in to change notification settings - Fork 76
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
user API for collapse plugin #1641
Conversation
Codecov ReportBase: 86.32% // Head: 86.33% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1641 +/- ##
==========================================
+ Coverage 86.32% 86.33% +0.01%
==========================================
Files 95 95
Lines 9607 9616 +9
==========================================
+ Hits 8293 8302 +9
Misses 1314 1314
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
snackbar_message = SnackbarMessage( | ||
f"Data set '{self.dataset_selected}' collapsed successfully.", | ||
color="success", | ||
sender=self) |
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.
I'm not seeing this snackbar message either when I use the API or the UI. Do you see it trigger successfully?
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.
I think success messages are filtered to the logger window by default. Is it there?
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.
Ahhh right, I forgot we had filtered the snackbar, it's there. I wonder if it would be useful to add an indicator to the logger icon if there are unviewed messages there...
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.
LGTM!
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.
Generally works well! I do feel like add_results
isn't exactly clear to me though. It took me a bit to figure out that the label and auto flag were nested under add_results
. I would imagine something like data_label
would be more clear
And then for the viewer, I honestly feel like it ought to be in a separate element entirely. It doesn't seem connected enough to the labels to warrant having them be nested. Thoughts?
@duytnguyendtn - that affects all plugins that are able to expose results back to the app. All those pieces need to interact with each other as a single component, which is why they're built that way under-the-hood. We could expose the underlying traitlets instead, but then miss out on some of the magic and checks. Or if you have another suggestion for how to either design the underlying object or expose it differently to the user, we could consider that (but should do that before this becomes public API in any plugin). |
Ahh, good context to know! In THAT case, it's probably too little of a nitpick to justify such a big part that impacts so much. Let me do my final checks and I'll approve |
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.
Tested in cubeviz and it worked well. Thanks!
91e46f5
to
35a7d10
Compare
Description
This pull request extends on #1401 and provides user-API access to the collapse plugin.
Plugin User API docs
TODO:
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.
trivial
label.CHANGES.rst
?