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
Branch
open-fossology-range-endpoint
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 2436
Build 2993: tox-on-jenkinsJenkins
Build 2992: arc lint + arc unit

Event Timeline

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

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

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

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
479

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
139

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.