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

https://.../api/search/1.0/products still sees data deleted by registry-manager #98

Closed
rchenatjpl opened this issue Sep 8, 2022 · 3 comments
Assignees
Labels
bug Something isn't working needs:triage wontfix This will not be worked on

Comments

@rchenatjpl
Copy link

🐛 Describe the bug

After
% harvest
% registry-manager set-archive-status -status archived -lidvid thebundle'sLIDVID
% registry-manager delete-data -all
The bundle's LID is no longer searchable
https://pds.nasa.gov/api/search/1.0/products/urn:nasa:pds:context::1.3
but the products below it linger:
https://pds.nasa.gov/api/search/1.0/products/urn:nasa:pds:context:investigation:field_campaign.dd_eldorado_nv_2015::1.0

📜 To Reproduce

I can't reproduce this without manually editing files since I can't clear whatever database

🕵️ Expected behavior

This behavior might be intentional. For my testing, it would be very helpful to be able to delete everything, but there may be other considerations

📚 Version of Software Used

Harvest version: 3.6.0
Build time: 2022-04-13T17:42:54Z
Registry Manager version: 4.4.0
Build time: 2022-04-13T18:24:45Z

🩺 Test Data / Additional context

🏞Screenshots

🖥 System Info

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

🦄 Related requirements

⚙️ Engineering Details

@rchenatjpl rchenatjpl added bug Something isn't working needs:triage labels Sep 8, 2022
@jordanpadams
Copy link
Member

@rchenatjpl the registry manager unfortunately does not yet support the ability to delete an entire bundle by bundle's lidvid. Mike Drum submitted a requirement for this here: NASA-PDS/registry-mgr#52

@rchenatjpl
Copy link
Author

Oh, yes, deleting an entire bundle by the bundle's lidvid would be very helpful.

But is this issue separate? I want to delete all data from my registry, regardless of bundle.

@jordanpadams
Copy link
Member

@rchenatjpl I don't think we have a function right now to do this. You need to delete all the packages individually by package_id, or you can interact with OpenSearch directly using the Delete by query API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs:triage wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants