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

Do DeleteByQuery in two steps #55

Merged
merged 3 commits into from
Jul 29, 2024
Merged

Do DeleteByQuery in two steps #55

merged 3 commits into from
Jul 29, 2024

Conversation

al-niessner
Copy link
Contributor

🗒️ Summary

AOSS does not support DeleteByQuery so do a search then delete the document(s).

⚙️ Test Data and/or Report

Hand test with nothing to show.

♻️ Related Issues

#53
NASA-PDS/registry-mgr#78

Al Niessner added 3 commits July 24, 2024 13:43
Use the the interface to break up DeleteByQuery into two steps. It first does a query that returns the documents found in the query. It then uses DeleteRequest to delete the IDs that were found from the search. In this way, registry-mgr does not really need to change.
Copy link
Member

@tloubrieu-jpl tloubrieu-jpl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks good, and I was able to successfully test the upgrade to delete from AOSS with registry-mgr.

@@ -67,6 +67,13 @@ POSSIBILITY OF SUCH DAMAGE.
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<repositories>
<repository>
<id>Openseach Snapshots</id>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo in opensearch. Not a big deal, obviously.

@tloubrieu-jpl tloubrieu-jpl merged commit 1c1a54d into main Jul 29, 2024
3 checks passed
@tloubrieu-jpl tloubrieu-jpl deleted the mgr_78 branch July 29, 2024 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants