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

Registry search with Author fails #514

Closed
zoghbi-a opened this issue Jan 22, 2024 · 5 comments · Fixed by #515
Closed

Registry search with Author fails #514

zoghbi-a opened this issue Jan 22, 2024 · 5 comments · Fixed by #515

Comments

@zoghbi-a
Copy link
Contributor

An author-based query for the registry like this:

from pyvo import registry as reg
reg.search(author='%HEASARC%') # or other names
# or
reg.search(reg.Author('%HEASARC%'))

gives:

Field query: No such field known: column 'role_name' could not be located in table metadata

isn't his how the author search meant to work?

@bsipocz
Copy link
Member

bsipocz commented Jan 22, 2024

I don't see this being covered in the tests either, so in addition to fixing the bug we'll need to make sure that the search constraint are better tested

@ManonMarchand
Copy link
Member

ManonMarchand commented Jan 23, 2024

Looks like a missing self._extra_tables = ["rr.res_role"] in the init of the Author constraint (I did not run it though)
Do you think these should be remote tests?

@msdemlei
Copy link
Contributor

msdemlei commented Jan 23, 2024 via email

@ManonMarchand
Copy link
Member

Hi Markus,
I can open the PR for the fix and add a single remote test with every constraints, sure.

@ManonMarchand
Copy link
Member

Should be ok with the PR? Thanks for reporting this issue @zoghbi-a ! 🙂

@bsipocz bsipocz linked a pull request Jan 23, 2024 that will close this issue
@bsipocz bsipocz closed this as completed Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants