Page MenuHomeSoftware Heritage

storage: Open content_fossology_license_get_range endpoint
ClosedPublic

Authored by ardumont on Nov 17 2018, 9:37 AM.

Details

Diff Detail

Repository
rDCIDX Metadata indexer
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vlorentz added inline comments.
swh/indexer/storage/__init__.py
478

Return the licenses as well? It avoids doing a bunch of extra queries afterward

swh/indexer/tests/storage/__init__.py
138

You might want to test with more than one license too

This revision now requires changes to proceed.Nov 17 2018, 1:19 PM

I disagree with the required changes.

At worst, there might be some factorization in the tests (like i did in the next diffs).
(I'm willing to do it but not right now.)
Other than that, it's ready.

swh/indexer/storage/__init__.py
478

It's not intended to be used for that. Only the presence is needed.
When it will be needed, it will be adapted.

swh/indexer/tests/storage/__init__.py
138

We do not need to ;)

This revision is now accepted and ready to land.Nov 17 2018, 7:56 PM
This revision was automatically updated to reflect the committed changes.