HomeSoftware Heritage

Move Storage documentation and endpoint paths to a new StorageInterface class

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

Description

Move Storage documentation and endpoint paths to a new StorageInterface class

Documentation was duplicated between the in-mem and postgresql storage,
and one of them regularly goes out of date.
This deduplicates them both to a new class.

This new class is also the one declaring the API paths, as it did not
make sense to have this declaration on the postgresql storage.

Last but not least, this commit adds a test that checks backend classes
have all the functions, and they have exactly the same signature as the
interface. This will catch stupid bugs before production, eg. if an argument
does not have the same name in all classes.

Details

Provenance
vlorentzAuthored on Jan 24 2020, 5:49 PM
vlorentzPushed on Jan 29 2020, 1:29 PM
Differential Revision
D2587: Move Storage documentation and endpoint paths to a new StorageInterface class
Build Status
Buildable 10339
Build 15364: test-and-buildJenkins

Commit No Longer Exists

This commit no longer exists in the repository.