- Feb 27, 2020
-
-
Antoine R. Dumont authored
This also clarifies the intent.
-
Antoine R. Dumont authored
Similarly to what we do in the swh.storage. Related to D2580
-
- Feb 25, 2020
-
-
Antoine R. Dumont authored
`storage.origin_get` can return None as origin. This adds the behavior to skip those None origin instead of failing the indexing task. Related https://sentry.softwareheritage.org/share/issue/8551b4a0ed694e09ad1ad7bde047e48f/
-
- Feb 24, 2020
-
-
Antoine R. Dumont authored
This should improve the textual content reading queries. Related to T1788
-
Antoine R. Dumont authored
In production, the previous query version takes too long to finish. This ended up with timeouts (with query still running in the pg backend). Accumulating similar new queries. Counter-intuitively, specifying twice the range query to use (both in content_mimetype and content_fossology_license), the execution now returns immediately. Close T1788
-
- Feb 18, 2020
-
-
vlorentz authored
And re-raise them through the RPC layer. This is now required by swh-core, as exceptions are no longer pickled.
-
- Feb 12, 2020
- Feb 11, 2020
-
-
Krithik Vaidya authored
Also removes types from docstrings, where unnecessary. Closes T2258
-
- Feb 05, 2020
-
- Jan 31, 2020
-
-
-
vlorentz authored
-
vlorentz authored
Also fixes bugs like: `TypeError: indexer_configuration_add() missing 2 required positional arguments: 'self' and 'tools'` since swh.core 0.0.87.
-
Antoine R. Dumont authored
Instead of directly import the storage backend whose name could change. This fixes the ci build [1] [1] https://jenkins.softwareheritage.org/job/DCIDX/job/tests/817/console
-
- Jan 17, 2020
-
-
Antoine Lambert authored
Related to T2188
-
- Jan 07, 2020
- Nov 21, 2019
-
-
David Douard authored
Adding a '.' in a description field did not please a couple of tests, so revert to the original desc, but use " instead of ' to please codespell.
-
David Douard authored
-
David Douard authored
-
Nicolas Dandrimont authored
-
Nicolas Dandrimont authored
-
Nicolas Dandrimont authored
This allows you to run tox -e py3-slow, tox -e py3-prop, tox -e py3-prop-slow, tox -e py38-slow, tox -e pypy, ...
-
Nicolas Dandrimont authored
-
- Nov 20, 2019
-
-
Nicolas Dandrimont authored
-
- Nov 15, 2019
- Nov 12, 2019
-
-
vlorentz authored
Origins are no longer dicts.
-
- Nov 08, 2019
-
-
Nicolas Dandrimont authored
-
David Douard authored
- extract a bunch of initialization/testdata in a conftest.py - add swh_indexer_storage and swh_indexer_storage_with_data fixtures - 'explode' the main CommonTestStorage class into several pieces (one for every 'entity type' dedicated endpoints, eg. content_mimetype, ctags, etc. plus one for misc endpoints), - get rid of the gen_generic_endpoint_tests() helper function, just write these test functions and inject them in endpoint_type specific test classes, - use these classes + the fixture based client/server test framework from swh.core for test_api_client, - use these classes for test_in_memory.
-
David Douard authored
replace the 'start' argument by a 'page_token' which is now expected to be an (not so) opaque token used for pagination. The 'end' argument is dropped. The method also returns a dict now (instead of generating the origins) with 2 keys: `next_page_token` and `origins`. Adapt tests and the list_origins_by_producer() helper function (in cli.py) accordingly.
-
- Nov 05, 2019
-
-
David Douard authored
this imply a refactoring of the db schema for origin_intrinsic_metadata, since we do not have nor want numerical ids for origins, we use origin urls instead. Note that IndexerStorage.origin_intrinsic_metadata_search_by_producer() still have start/end arguments which are expected to be strings, thus uses lexicographic comparisons between origin urls. This is far from ideal, but a proper fix requires an (new?) endpoint that handle pagination properly.
-
David Douard authored
the max_messages value must be passed to the client constructor, otherwise it will hang forever for max-messages<20 (eg. in tests).
-
- Nov 04, 2019
-
-
David Douard authored
introduced in swh.model 0.0.50.
-
David Douard authored
where 'type' has moved from origin to origin_visit.
-
- Oct 29, 2019
-
-
Stefano Zacchiroli authored
-
- Oct 20, 2019
-
-
Stefano Zacchiroli authored
-
Stefano Zacchiroli authored
-