Page MenuHomeSoftware Heritage

Add extra_type_encoders and extra_type_decoders attributes to RPC clients and servers.
ClosedPublic

Authored by vlorentz on Feb 14 2020, 5:21 PM.

Details

Summary

They will allow swh-storage to override them to serialize and
deserialize swh-model objects.

Depends on D2672.

Diff Detail

Repository
rDCORE Foundations and core functionalities
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

olasd requested changes to this revision.Feb 14 2020, 6:28 PM

Could you add some tests which exert these new extra_{encoder,decoder} parameters?

Even though this is going to be integration-tested by swh.storage, having a shorter feedback loop would be useful.

This revision now requires changes to proceed.Feb 14 2020, 6:28 PM
This revision is now accepted and ready to land.Feb 17 2020, 4:18 PM