was modifying the dict given as argument.
Details
Details
- Reviewers
vlorentz - Group Reviewers
Reviewers - Commits
- rDMODfca36585a39c: Fix MetadataAuthority.from_dict()
Diff Detail
Diff Detail
- Repository
- rDMOD Data model
- Branch
- extid
- Lint
Lint Skipped - Unit
Unit Tests Skipped - Build Status
Buildable 19777 Build 30705: Phabricator diff pipeline on jenkins Jenkins console · Jenkins Build 30704: arc lint + arc unit
Event Timeline
Comment Actions
Build is green
Patch application report for D5215 (id=18684)
Rebasing onto 2185f9308e...
Current branch diff-target is up to date.
Changes applied before test
commit fca36585a39ce15a48204f7362a9c49f164723d2 Author: David Douard <david.douard@sdfa3.org> Date: Mon Mar 8 16:11:22 2021 +0100 Fix MetadataAuthority.from_dict() was modifying the dict given as argument.
See https://jenkins.softwareheritage.org/job/DMOD/job/tests-on-diff/283/ for more details.
swh/model/model.py | ||
---|---|---|
851–854 | for consistency with other from_dict methods: d = d.copy() d["type"] = MetadataAuthorityType(d["type"]) (mypy isn't smart enough to detect we're changing the type so it's fine) |