Open taojing2002 opened 3 months ago
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?
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?
For completeness. I think it should show the replica information. Otherwise, it may confuse users in some circumstances. Also Metacat should enforce that clients can't edit the replica parts when they call MN.updateSystemMetadata: https://github.com/NCEAS/metacat/issues/1867
On Thu, Apr 4, 2024 at 3:47 PM Matt Jones @.***> wrote:
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?
— Reply to this email directly, view it on GitHub https://github.com/ropensci/datapack/issues/140#issuecomment-2038400364, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5QQDATAD5QRS3P74BSOTDY3XJ6ZAVCNFSM6AAAAABFXX476WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZYGQYDAMZWGQ . You are receiving this because you authored the thread.Message ID: @.***>
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
However, the replica section is missing from R even though it got the replication policy part: