Page MenuHomeSoftware Heritage

storage.postgresql: Use origin_visit_status.type value as source
ClosedPublic

Authored by ardumont on Feb 4 2021, 5:41 PM.

Details

Summary

This stops using the origin_visit.type as fallback values as now, the database has been
migrated.

So this makes the origin_visit_status.type a not nullable column.

This also drops now redundant join instructions on origin_visit table when reading.

Related to T2968

Diff Detail

Repository
rDSTO Storage manager
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D5019 (id=17896)

Rebasing onto 9a9f234e0a...

Current branch diff-target is up to date.
Changes applied before test
commit 3ad3ac12d46285bb1befd91806f4986b74da7812
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Thu Feb 4 17:08:33 2021 +0100

    storage.postgresql: Use origin_visit_status.type value as source
    
    This stops using the origin_visit.type as fallback values as now, the database has been
    migrated.
    
    So this makes the origin_visit_status.type a not nullable column.
    
    This also drops now redundant join instructions on origin_visit table when reading.
    
    Related to T2968

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

This revision is now accepted and ready to land.Feb 5 2021, 9:53 AM

Build was aborted

Patch application report for D5019 (id=17909)

Rebasing onto efd8815b89...

Current branch diff-target is up to date.
Changes applied before test
commit 67bc71ddd9d59a21fb4e5270f29d9cb67d0f711a
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Thu Feb 4 17:08:33 2021 +0100

    storage.postgresql: Use origin_visit_status.type value as source
    
    This stops using the origin_visit.type as fallback values as now, the database has been
    migrated.
    
    So this makes the origin_visit_status.type a not nullable column.
    
    This also drops now redundant join instructions on origin_visit table when reading.
    
    Related to T2968

Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1131/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1131/console

Build was aborted

Patch application report for D5019 (id=17909)

Rebasing onto efd8815b89...

Current branch diff-target is up to date.
Changes applied before test
commit 67bc71ddd9d59a21fb4e5270f29d9cb67d0f711a
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Thu Feb 4 17:08:33 2021 +0100

    storage.postgresql: Use origin_visit_status.type value as source
    
    This stops using the origin_visit.type as fallback values as now, the database has been
    migrated.
    
    So this makes the origin_visit_status.type a not nullable column.
    
    This also drops now redundant join instructions on origin_visit table when reading.
    
    Related to T2968

Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1134/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1134/console

Build was aborted

unrelated to the diff and unknown reason for now.

Build is green

Patch application report for D5019 (id=18007)

Rebasing onto 51df58e82e...

Current branch diff-target is up to date.
Changes applied before test
commit 046fe57c15f39e0f94cfbbb46c644a782833281c
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Thu Feb 4 17:08:33 2021 +0100

    storage.postgresql: Use origin_visit_status.type value as source
    
    This stops using the origin_visit.type as fallback values as now, the database has been
    migrated.
    
    So this makes the origin_visit_status.type a not nullable column.
    
    This also drops now redundant join instructions on origin_visit table when reading.
    
    Related to T2968

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