-
Notifications
You must be signed in to change notification settings - Fork 79
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
FEAT: Catalog Search plugin to support import catalog from Table/QTable object #3425
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3425 +/- ##
=======================================
Coverage 87.53% 87.53%
=======================================
Files 128 128
Lines 19957 19962 +5
=======================================
+ Hits 17469 17474 +5
Misses 2488 2488 ☔ View full report in Codecov by Sentry. |
Would it be in scope to add the API equivalent to clicking "search"? |
Well, the method is there, just not exposed... Gotta ask @kecnry or @javerbukh why not though.
|
I suspect just because catalogs was/is still a work in progress and the API methods have not yet been exposed (except for recent work for |
Perhaps exposing search should be a separate ticket and it seems pretty unrelated to loading from table object. This is because we should double check if the existing signature and return value are satisfactory. Once exposed, those are hard to change without issuing notice or deprecation. |
Gotcha, thanks |
In any case, this worked with the example I had in hand. 👍 |
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.
Test clean up looks great and the table code looks is clean, love the simplicity. Works as expected when testing, great job!
assert len(out_tbl) == n_entries | ||
assert catalogs_plugin.number_of_results == n_entries | ||
assert catalogs_plugin._obj.number_of_results == n_entries |
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.
why the ._obj added here (and below)?
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.
Because I changed catalogs_plugin = imviz_helper.plugins['Catalog Search']._obj
to catalogs_plugin = imviz_helper.plugins['Catalog Search']
(old: L223, new: L221) so I can accessed the public API publicly, which means I need to throw in a ._obj
for all others. Hope this clarifies the matter.
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.
oh i missed that, sorry! thanks for clarifying
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.
looks good, just left one comment for clarification on something
Thanks for the reviews! |
Description
This pull request is to add support for Catalog Search plugin to import table directly from existing Table/QTable object. To do this, we expose a new public API called
import_catalog
.Change log entry
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, maintainershould 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.
trivial
label.