Page MenuHomeSoftware Heritage

validate: accept model objects as well as dicts on all add endpoints
ClosedPublic

Authored by olasd on Wed, Jun 17, 11:23 AM.

Details

Summary

This generalizes work by @ardumont to all object addition endpoints, as a
further step towards completely dropping the validate proxy in tests.

Test Plan

tox

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

olasd created this revision.Wed, Jun 17, 11:23 AM
ardumont accepted this revision.Wed, Jun 17, 11:31 AM
This revision is now accepted and ready to land.Wed, Jun 17, 11:31 AM

Build is green

Patch application report for D3300 (id=11693)

Rebasing onto d153a8096d...

Current branch diff-target is up to date.
Changes applied before test
commit 057c6fd5dfcedf07529a18faf09c5a7ed0a81379
Author: Nicolas Dandrimont <nicolas@dandrimont.eu>
Date:   Wed Jun 17 11:22:13 2020 +0200

    validate: accept model objects as well as dicts on all add endpoints
    
    This generalizes work by Antoine Dumont to all object addition endpoints, as a
    further step towards completely dropping the validate proxy in tests.

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