-
Notifications
You must be signed in to change notification settings - Fork 2
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
archive status does not change for all bundle members #109
Comments
Thanks @plawton-umd for reporting this. For now, a work-around is to run registry-mgr on each collection in the bundle. The archive statuses of the products members of the collections should be updated with the archive-status of the collection. |
Same problem will collections. Only the collection product archive-status is changed. Not the members' archive-status. |
Thanks @plawton-umd , the collectino members is a regression, I feel like. |
This is by design. When given a lidvid, registry-mgr acts on that lidvid alone. It does not inspect the lidvid and operate on its references. For this we would have to add a To change all items from a harvest of a bundle or collection, use |
@al-niessner tracked down and added the related requirements that were closed but we have introduced a regression at some point |
Because of how lid/lidvids are done, we can never get this right. Arguably everything is version 1.0 so the error is small. However, would it be acceptable to say Either way, we are going to make mistakes. The question is which is easier to recover from. Given a bundle that points to a collection via a lid which do you pick when there are more than one lidvids for that lid? Do all of them? The latest? All but the latest? You get the idea. In most cases we do latest, but this is unique because almost all use cases are going to go to archived for all versions or all older versions. If we do crazy checks and twists and turns with the lidvid to do anything other than all, then it may not be reversible. If we do packageId and the user does not like it, then they can just do it again with the old state. It is why I am leaning that way and asking. It will produce weird results like |
@al-niessner aren't the |
@al-niessner per the requirements referenced above, this has been done before and was working as expected, so it is possible from the current registry metadata. |
I think I will implement this with the default recursion level being 3 for bundles, 2 for collections and 1 for produce and ignore versions. |
It seems all the original code is still in place for doing bundles and collections: Let me debug this because it may be a super simple fix... |
@al-niessner copy that |
@al-niessner @jordanpadams |
Hi @plawton-umd , I believe @al-niessner meant a wide majority of lid only exists with a version 1.0, but we know some have additional version and @al-niessner 's fix will cover that. |
The set-archive-status only updates the primary members of a collection, not the secondary. That is the expected behavior. The apparent inconsistency with harvest behavior is due to the fact that harvest loads all data in directories without analyzing the bundle/collection structures. To make it less confusing, we could remove the bundle configuration option from harvest. |
Checked for duplicates
Yes - I've already checked
π Describe the bug
When I did set the archive status to archive, I noticed only the bundle's product status was changed. All members
of the bundle remained staged.
π΅οΈ Expected behavior
I expected all products of the bundle to have their archive_status updated to archived.
π To Reproduce
pds-registry-client -v -p -d '{"query":{"simple_query_string":{"query":"<your bundle lid LID here>*"}}}' '/<your registry>-registry/_search'
registry-manager set-archive-status \Β Β Β Β
-auth <your auth file here> \Β Β Β Β Β Β Β Β Β Β
-es file:<your xml file here> \Β Β Β Β
-lidvid <your bundle LIDVID here> \Β Β Β Β
-status archived
pds-registry-client -v -p -d '{"query":{"simple_query_string":{"query":"<your bundle lid LID here>*"}}}' '/<your registry>-registry/_search'
...
π₯ Environment Info
Build time: 2024-10-16T22:51:47Z
...
π¦ Related requirements
π¦ #112
π¦ #113
βοΈ Engineering Details
No response
π Integration & Test
No response
The text was updated successfully, but these errors were encountered: