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

Notebooks no longer work with V1.0 release #6

Closed
jordanpadams opened this issue Jun 22, 2022 · 24 comments · Fixed by #15
Closed

Notebooks no longer work with V1.0 release #6

jordanpadams opened this issue Jun 22, 2022 · 24 comments · Fixed by #15
Assignees
Labels
B13.1 bug Something isn't working s.medium

Comments

@jordanpadams
Copy link
Member

🐛 Describe the bug

  • Data in the registry is incorrect
  • Queries go against pds-gamma instead of ops registry
@tloubrieu-jpl
Copy link
Member

tloubrieu-jpl commented Jun 22, 2022

@jordanpadams
Copy link
Member Author

@tloubrieu-jpl do we actually plan on fixing this during this sprint, of should we add this to the top of the release backlog?

@jordanpadams
Copy link
Member Author

@jjacob7734 see PRs for some attempts at fixing this

@jordanpadams
Copy link
Member Author

note: this should work for the latest registry / API on main (and maybe tagged for release?). not necessarily what is online (which doesn't work)

@jordanpadams
Copy link
Member Author

feel free to ping @jimmie for some help here as well since he is digging into the tagged releases vs what is online vs what is going wrong

@jjacob7734
Copy link
Contributor

I got the api_client.ipynb to work with a couple modifications (not yet checked in).

  1. Changed configuration.host from:

https://pds-gamma.jpl.nasa.gov/api/

to:

https://pds.nasa.gov/api/search-en-gamma/1.1/

Reference: Based on information from the Slack discussion between @eddiesarevalo and @jimmie here: https://jpl.slack.com/archives/GCGR1R3A4/p1673301753096449

  1. Changed:

api_response = api_instance.get_collection(...)

to the following:

from pds.api_client.api.collections_api import CollectionsApi
collections = CollectionsApi(api_client)
...
api_response = collections.get_collection(...)

Reference: API documentation at https://github.com/NASA-PDS/pds-api-client/blob/main/docs/source/quickstart/index.rst

1 similar comment
@jjacob7734
Copy link
Contributor

I got the api_client.ipynb to work with a couple modifications (not yet checked in).

  1. Changed configuration.host from:

https://pds-gamma.jpl.nasa.gov/api/

to:

https://pds.nasa.gov/api/search-en-gamma/1.1/

Reference: Based on information from the Slack discussion between @eddiesarevalo and @jimmie here: https://jpl.slack.com/archives/GCGR1R3A4/p1673301753096449

  1. Changed:

api_response = api_instance.get_collection(...)

to the following:

from pds.api_client.api.collections_api import CollectionsApi
collections = CollectionsApi(api_client)
...
api_response = collections.get_collection(...)

Reference: API documentation at https://github.com/NASA-PDS/pds-api-client/blob/main/docs/source/quickstart/index.rst

@jordanpadams
Copy link
Member Author

@jjacob7734 awesome! can you create a PR for this?

@jordanpadams
Copy link
Member Author

also @jjacob7734 even if we have PR, we may want to hold off until @jimmie deploys the latest registry to ops. the URL for the API should really be: https://pds.nasa.gov/api/search/1/

@jordanpadams
Copy link
Member Author

looking at OVIRS notebooks, which is not working right now.

1 similar comment
@jordanpadams
Copy link
Member Author

looking at OVIRS notebooks, which is not working right now.

@jimmie
Copy link

jimmie commented Jan 19, 2023

familiarizing w/ API, specifically the new python version that Thomas made available. Seeing an issue where a collection by lidvid is returning a 404 but works w/ curl and otherwise works w/out version.

@jjacob7734
Copy link
Contributor

jjacob7734 commented Jan 20, 2023

It turns out the curl command was "working" because it was malformed and the registry was silently ignoring an invalid parameter, so not filtering the results by the LIDVID match (@alexdunnjpl opened a new ticket on this: NASA-PDS/registry-api#237). The root of the problem I was having is that the LIDVID I was trying to access does not exist in the production PDS registry. It exists in a particular profile of the registry that can be deployed locally for test. The new api_client does seem to be working fine if I give it a valid LIDVID.

@tloubrieu-jpl
Copy link
Member

What to do with the notebook needs to be refined.

@tloubrieu-jpl
Copy link
Member

Some part of the notebook is blocked by api issues.

We are not sure if the same data is still available in the registry.

@jordanpadams jordanpadams removed the B13.0 label Feb 2, 2023
@tloubrieu-jpl
Copy link
Member

The short term solution is to use only the /products end-point.

@jordanpadams
Copy link
Member Author

Status: working to change to just use the product API

@tloubrieu-jpl
Copy link
Member

tloubrieu-jpl commented Feb 28, 2023

Keep the following notebooks:

  • part1/...
  • part2/ standalone

We need a clear description/organization of what they do for the users (in introduction of the notebook).

Remove part2/find_data

We move all the others in a draft. folder.

@jjacob7734
Copy link
Contributor

@tloubrieu-jpl
Copy link
Member

@jjacob7734 start to work on part1 notebook

@tloubrieu-jpl
Copy link
Member

The expected outcome is to fully review the notebooks that we want and ideintify the blocker on the server side.
Then a ticket will be created for react to each of the removed blockers.

@tloubrieu-jpl
Copy link
Member

@jjacob7734 is missing a way to apply the criteria, we will discuss that at the breakout.

@tloubrieu-jpl
Copy link
Member

@jjacob7734 is testing the pagination in he notebook. He is going to test the performances.

We also need to deploy the update in the opensearch configuration to go beyond the 10000 limit.

@tloubrieu-jpl
Copy link
Member

tloubrieu-jpl commented Apr 4, 2023

Blocked by:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B13.1 bug Something isn't working s.medium
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants