Page MenuHomeSoftware Heritage

Add support for an alternate codemeta context URL.
ClosedPublic

Authored by vlorentz on Feb 1 2019, 1:58 PM.

Details

Summary

Seen in production.

Diff Detail

Repository
rDCIDX Metadata indexer
Branch
codemeta-alternate-context
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 3983
Build 5225: tox-on-jenkinsJenkins
Build 5224: arc lint + arc unit

Event Timeline

ardumont added a subscriber: ardumont.
ardumont added inline comments.
swh/indexer/codemeta.py
105

why not:

if url in CODEMETA_CONTEXT_URLS:

CODEMETA_CONTEXT_URLS being the list of accepted context urls?

Is the first one the more frequent value?

This revision is now accepted and ready to land.Feb 1 2019, 2:03 PM
vlorentz added inline comments.
swh/indexer/codemeta.py
105

The first one is the one recommended by CodeMeta. It's also the one we use in the indexers' output.

This revision was automatically updated to reflect the committed changes.