- Sep 18, 2020
-
-
Nicolas Dandrimont authored
-
Nicolas Dandrimont authored
When the code was migrated from swh.storage, some other ancillary functions were merged into this file. So bits of it are under the LGPLv3 (the code pulled from psycopg2) and bits are under the GPLv3 (the code we wrote).
-
- Sep 17, 2020
-
-
Antoine Lambert authored
Related to T2610
-
Antoine Lambert authored
Related to T2610
-
Antoine Lambert authored
flake8 hook has been removed from https://github.com/pre-commit/pre-commit-hooks so now use the one from https://gitlab.com/pycqa/flake8
-
- Sep 16, 2020
-
-
Nicolas Dandrimont authored
While named similarly, these two CLI utilities used to take quite a different approach to doing the same thing. They now both call out the same initialization function for a given module. The main difference is now the source of information for what databases to initialize: `swh db init` uses the SWH_CONFIG_FILENAME configuration file, while `swh db-init` only uses its own command line arguments.
-
Nicolas Dandrimont authored
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
This is no longer used. This also adds some types on impacted changed functions. Related to T1532
-
- Sep 10, 2020
-
-
David Douard authored
by moving import statements in functions. Related to T2575.
-
- Aug 25, 2020
-
-
vlorentz authored
pytest wastes a lot of time in .hypothesis and .git; this commit excludes them.
-
- Aug 14, 2020
-
- Aug 05, 2020
-
-
vlorentz authored
-
- Jul 31, 2020
-
-
Antoine R. Dumont authored
This avoids duplication which is growing (right now storage and search proposes the same pattern in different functions). Related to T645
-
- Jul 29, 2020
-
-
Antoine R. Dumont authored
This will allow typing paginated endpoints across our modules (swh.storage, swh.search, swh.indexer, swh.scheduler, ...). Related to T645
- Jul 09, 2020
-
-
Antoine R. Dumont authored
Related to D3460
-
- Jul 08, 2020
-
-
Antoine R. Dumont authored
Related to T2105
-
Antoine R. Dumont authored
Ideally we should refactor those entirely. Should definitely fix the debian build [1] [1] https://jenkins.softwareheritage.org/job/debian/job/packages/job/DCORE/job/gbp-buildpackage/118/console
-
Antoine R. Dumont authored
This fixes the debian build yet to come
-
Antoine R. Dumont authored
-
- Jul 02, 2020
-
-
Nicolas Dandrimont authored
-
Nicolas Dandrimont authored
Instead of the brittle csv we used to use, use postgresql text mode to transfer data in the `copy` operation. Reference all relevant bits of the PostgreSQL documentation inline with the code. This also adds test coverage for most supported types, as well as making sure all escaping corner cases are covered.
-
- May 12, 2020
-
-
Antoine R. Dumont authored
This fixes the ci build [1] [1] https://jenkins.softwareheritage.org/job/DCORE/job/tests/844/console
-
- May 07, 2020
-
-
vlorentz authored
There's no reason to allow this, and it's a potential source of invalid data.
-
- Apr 29, 2020
-
-
Stefano Zacchiroli authored
-
- Apr 20, 2020
-
-
Antoine R. Dumont authored
Related to T2367
-
- Apr 17, 2020
-
-
Nicolas Dandrimont authored
-
Nicolas Dandrimont authored
msgpack only has built-in support for ints that fit in 64 bits. However, we happen to be storing arbitrary json in the archive, which itself has support for integers of arbitrary length, which themselves are mapped to "long" integers in Python, which make the msgpack encoder blow up. Fortunately, overflowing integers are passed to the default object hook. We generate a msgpack "extended type" with code 1 for arbitrary integers.
-
- Mar 26, 2020
-
-
vlorentz authored
I forgot to run it on files at the root in the previous commit.
-
- Mar 18, 2020
- Mar 11, 2020
-
-
Nicolas Dandrimont authored
-
- Feb 28, 2020
-
- Feb 25, 2020
-
-
Nicolas Dandrimont authored
The contents of the journal up to February 2020 are encoded with this schema, so we should keep supporting it, until all these objects end up rewritten
-
- Feb 19, 2020
-
-
vlorentz authored
msgpack now defaults to raw=False. This commit preserves compatibility with older versions of msgpack.
- Feb 18, 2020
-
-
Antoine Lambert authored
Some remote api (for instance the scheduler one) does not declare any extra_encoders in the negotiate decorator. This was raising an error when querying any declared endpoint.
-