- Mar 04, 2020
-
-
Antoine R. Dumont authored
This also tries to type a tad better the indexers.
- Mar 03, 2020
-
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
This will allow to send metrics at some point.
-
Antoine R. Dumont authored
This allowed to chain indexers together. It's not used, so to simplify maintenance, remove it.
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
-
- 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.
-