`updateSystemMetadata()` does not remove obsoletes field
还没有人认领这个 Issue。
评估
调研方向
从 updateSystemMetadata() 入口点开始,将 getSystemMetadata() 的 XML 与 issue 中显示的已提交 XML 进行比较。检查已移除的可选字段(包括 obsoletes)是如何序列化的,并验证读-修改-写操作会省略从元数据中移除的字段;对其他可选字段重复进行检查。
由索引模型根据 Issue 内容生成。
描述
When doing a read-modify-write operation on System Metadata in which the obsoletes field is removed, the obsoletes field remains in GMN. Need to check the behavior for all optional fields.
Example received by getSystemMetadata():
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns3:systemMetadata xmlns:ns2="http://ns.dataone.org/service/types/v1" xmlns:ns3="http://ns.dataone.org/service/types/v2.0">
<serialVersion>1</serialVersion>
<identifier>10.0309_rwstg1k34w_201981021525</identifier>
<formatId>http://www.isotc211.org/2005/gmd</formatId>
<size>4475</size>
<checksum algorithm="MD5">8d236914945bb03ed9211aabe463568e</checksum>
<submitter>CN=urn:node:mnTestRW,DC=dataone,DC=org</submitter>
<rightsHolder>CN=urn:node:mnTestRW,DC=dataone,DC=org</rightsHolder>
<accessPolicy>
<allow>
<subject>public</subject>
<permission>read</permission>
</allow>
</accessPolicy>
<replicationPolicy numberReplicas="3" replicationAllowed="true"/>
<obsoletes>10.0309_rwstg1k34u_2019810194555</obsoletes>
<archived>false</archived>
<dateUploaded>2019-09-10T21:52:05.571+00:00</dateUploaded>
<dateSysMetadataModified>2019-09-10T22:22:37.661+00:00</dateSysMetadataModified>
<originMemberNode>urn:node:mnTestRW</originMemberNode>
<authoritativeMemberNode>urn:node:mnTestRW</authoritativeMemberNode>
<seriesId>10.0309/rwstg1k34w</seriesId>
<fileName>10.0309_rwstg1k34w_201981021525.xml</fileName>
</ns3:systemMetadata>
Example submitted with updateSystemMetadata().
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns3:systemMetadata xmlns:ns2="http://ns.dataone.org/service/types/v1" xmlns:ns3="http://ns.dataone.org/service/types/v2.0">
<serialVersion>1</serialVersion>
<identifier>10.0309_rwstg1k34w_201981021525</identifier>
<formatId>http://www.isotc211.org/2005/gmd</formatId>
<size>4475</size>
<checksum algorithm="MD5">8d236914945bb03ed9211aabe463568e</checksum>
<submitter>CN=urn:node:mnTestRW,DC=dataone,DC=org</submitter>
<rightsHolder>CN=urn:node:mnTestRW,DC=dataone,DC=org</rightsHolder>
<accessPolicy>
<allow>
<subject>public</subject>
<permission>read</permission>
</allow>
</accessPolicy>
<replicationPolicy numberReplicas="3" replicationAllowed="true"/>
<archived>false</archived>
<dateUploaded>2019-09-10T21:52:05.571+00:00</dateUploaded>
<dateSysMetadataModified>2019-09-10T22:22:37.661+00:00</dateSysMetadataModified>
<originMemberNode>urn:node:mnTestRW</originMemberNode>
<authoritativeMemberNode>urn:node:mnTestRW</authoritativeMemberNode>
<seriesId>10.0309/rwstg1k34w</seriesId>
<fileName>10.0309_rwstg1k34w_201981021525.xml</fileName>
</ns3:systemMetadata>
- 主要语言
- Python
- 星标
- 18
- 派生
- 10
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DataONEorg/d1_python 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 70/100
DataONEorg/d1_python#108 ·
-
难度 3/5 1-2 天 新手友好度 45/100
DataONEorg/d1_python#105 · 3 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 45/100
DataONEorg/d1_python#103 ·
-
难度 3/5 1-2 天 新手友好度 45/100
DataONEorg/d1_python#101 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
DataONEorg/d1_python#100 ·
查看 DataONEorg/d1_python 的全部 Issue
相似的 Issue
-
Make the "%" unit spacing the same in the web and in A10可能已有人在做 @kragent66-glitch 今天认领。 未关闭bug good first issue
难度 2/5 1-3 小时 新手友好度 74/100
maiychrus25/OpenTea-DX-OS#226 · 1 条评论 ·
-
ci severity: low
难度 2/5 1-3 小时 新手友好度 78/100
TMHSDigital/Spackle#205 ·
维护者通常 1 天内回复
-
pkg:lgm type:chore upstream-gaussx
难度 2/5 1-3 小时 新手友好度 76/100
jejjohnson/pyrox#610 ·
维护者通常 1 天内回复
-
changelog investigate
难度 2/5 1-3 小时 新手友好度 62/100
ramnes/notion-sdk-py#523 ·
-
feature-request
难度 2/5 1-3 小时 新手友好度 78/100
open-telemetry/opentelemetry-python#5994 ·
维护者通常 2 天内回复