Page MenuHomeSoftware Heritage

OriginVisitStatus: Allow "created" status
ClosedPublic

Authored by ardumont on Jun 24 2020, 9:14 AM.

Details

Summary

First status when an origin-visit is created.
We create an origin-visit-status alongside with that status.

The db model allows it already, not the model yet. This is just realigning that
missing part. The adaptation is incoming storage wise.

Related to T2310

Test Plan

tox

Diff Detail

Repository
rDMOD Data model
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 13065
Build 19922: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 19921: arc lint + arc unit

Event Timeline

Build is green

Patch application report for D3341 (id=11849)

Could not rebase; Attempt merge onto f349bdc628...

Updating f349bdc..57e0cbe
Fast-forward
 swh/model/hypothesis_strategies.py |  4 ++--
 swh/model/model.py                 | 14 +++++++-------
 2 files changed, 9 insertions(+), 9 deletions(-)
Changes applied before test
commit 57e0cbedb61c4572bcb1bb4acbf58153e456a419
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Wed Jun 24 09:13:01 2020 +0200

    OriginVisitStatus: Allow "created" status
    
    Related to T2310

commit 636f8c2aa40419045908a537a647d22fc368533c
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Tue Jun 23 17:29:53 2020 +0200

    model.OriginVisit: Make obsolete fields optional
    
    Related to T2310

See https://jenkins.softwareheritage.org/job/DMOD/job/tests-on-diff/78/ for more details.

Update hypothesis strategy with that new status as well

Build is green

Patch application report for D3341 (id=11850)

Could not rebase; Attempt merge onto f349bdc628...

Updating f349bdc..661b7c2
Fast-forward
 swh/model/hypothesis_strategies.py |  6 +++---
 swh/model/model.py                 | 14 +++++++-------
 2 files changed, 10 insertions(+), 10 deletions(-)
Changes applied before test
commit 661b7c2c76bbd74433ad10427fb2e9875d755a16
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Wed Jun 24 09:13:01 2020 +0200

    OriginVisitStatus: Allow "created" status
    
    Related to T2310

commit 636f8c2aa40419045908a537a647d22fc368533c
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Tue Jun 23 17:29:53 2020 +0200

    model.OriginVisit: Make obsolete fields optional
    
    Related to T2310

See https://jenkins.softwareheritage.org/job/DMOD/job/tests-on-diff/79/ for more details.

This revision is now accepted and ready to land.Jun 24 2020, 10:12 AM