HomeSoftware Heritage

common/converters: Filter out id field when converting Origin model

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

common/converters: Filter out id field when converting Origin model

The Origin model from swh-model now includes the origin id leading to
errors when serializing to JSON.

So filter out that field from the conversion to remove thsoe errors
plus it should not be leaked to end users in Web API responses.

Details

Provenance
anlambertAuthored on Sep 29 2021, 10:54 AM
anlambertPushed on Sep 29 2021, 1:29 PM
Differential Revision
D6371: common/converters: Filter out id field when converting Origin model
Build Status
Buildable 24082
Build 37567: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.