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

GetSystemMetadata method doesn't get replica information #140

Open
taojing2002 opened this issue Apr 4, 2024 · 3 comments
Open

GetSystemMetadata method doesn't get replica information #140

taojing2002 opened this issue Apr 4, 2024 · 3 comments

Comments

@taojing2002
Copy link

I used a piece of R code to get system metadata of an object which has three replicas.
The system metadata can be see from:
https://mn-sandbox-ucsb-1.test.dataone.org/knb/d1/mn/v2/meta/testReplicateJsonLD.1711738610440

pid <- "testReplicateJsonLD.1711738610440"
mn <- MNode("https://mn-sandbox-ucsb-1.test.dataone.org/knb/d1/mn/v2")
user <- "http://orcid.org/0000-0002-8916-564X"
sysmeta <- getSystemMetadata(mn, pid)

However, the replica section is missing from R even though it got the replication policy part:
Screen Shot 2024-04-04 at 10 24 00 AM
Screen Shot 2024-04-04 at 10 24 21 AM

@jeanetteclark
Copy link
Collaborator

there is no field for replica within the SystemMetadata class, so we would need to add it and parse the information from the sysmeta so it fits within it, probably as a data.frame?

@mbjones
Copy link
Member

mbjones commented Apr 4, 2024

Yeah, I omitted that replica field because, at the time we were discussing removing it from sysmeta altogether, and it's not client editable so I skipped it. Is it needed for editing, or just for completeness?

@taojing2002
Copy link
Author

taojing2002 commented Apr 4, 2024 via email

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

No branches or pull requests

3 participants