You need to sign in or sign up before continuing.
- Apr 20, 2020
-
-
Antoine R. Dumont authored
Related to T2367
-
- Apr 17, 2020
-
-
Stefano Zacchiroli authored
-
- Apr 14, 2020
-
-
Antoine R. Dumont authored
As all storage are chained together, we need to define it. We really need the actual backends, which should be the last storage chained to do noop when that endpoint is called (and they do).
-
Nicolas Dandrimont authored
-
David Douard authored
which will handle swh.model objects everywhere instead of dicts. Also add a BW compat version os the InMemoryJournalWriter so tests will pass with current version of swh.journal (0.0.29).
-
Antoine R. Dumont authored
-
- Apr 10, 2020
-
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
All storage defines one endpoint even if it's mostly noop. This avoids introspection surprises. Related to D2966 (to be consistent)
-
- Apr 09, 2020
-
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
This also adds the endpoint as noop for the main backend implementations. Related to T2352
-
- Apr 08, 2020
-
-
David Douard authored
-
David Douard authored
- blackify all the python files, - enable black in pre-commit, - add a black tox environment.
-
David Douard authored
-
vlorentz authored
-
David Douard authored
instead of a dict, to comply with next version of swh.journal (which will require swh.model objects).
-
David Douard authored
-
David Douard authored
-
vlorentz authored
'swh_content_add' tries to avoid this issue with a DISTINCT clause on the entire row; but it is useless because 'ctime' cells differ by a few microseconds. This commit ensures all ctime values are exactly the same, so they are filtered out. An alternative would be to change 'swh_content_add' to do: ``` select distinct on (sha1, sha1_git, sha256, blake2s256, length, status) sha1, sha1_git, sha256, blake2s256, length, status, ctime from tmp_content ``` instead of: ``` select distinct sha1, sha1_git, sha256, blake2s256, length, status, ctime from tmp_content ``` but this is more verbose and there's no good reason to call 'now()' for every row.
-
- Apr 02, 2020
-
-
vlorentz authored
-
- Apr 01, 2020
-
-
David Douard authored
This is required to be able to activate type validation in the model (in swh.model.model). It requires to replace the "distorded" usage that was done of model entities to build objects compatible with CqlRunner's object addition logic. Since we cannot create invalid model entities any more in this context, we add a new CassObject type (just a dict with __getattr__=__getitem__) and use it as object passed to the CqlRunner for entity types that need special care (namely Revision and Release). This should still work with swh.model v0.0.62 (without type validation) as well as the (next) v0.0.63 which will come with type valdation.
-
David Douard authored
-
David Douard authored
This is not needed any more with properly typed test data.
-
David Douard authored
according to model declaration, a timestamp must be a dict with 2 keys, 'seconds' and 'microseconds'. Also add a few more tests for the date_to_db helper function so that the test coverage of this later remains.
-
Antoine R. Dumont authored
Related to T2310
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
Beside making the tests fail, they are not helpful right now. This commit will avoid the current master build from breaking. Also, the model bump is a mandatory preparatory work for making the origin visit immutable. Related to T2310
-
- Mar 31, 2020
-
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
This also adds an unused (yet) optional parameter date. It will soon be used in the context of origin_visit_update use. Related to T2310
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
Reuse a date_visit from the sample storage
-
- Mar 27, 2020
-
-
David Douard authored
-
David Douard authored
date argument is expected to be a datetime.
-
David Douard authored
by embeding a string representation of the original Exception as StorageArgumentException args instead of the original exc.args since this can contain any python (possibli non-serializable) object. This is needed e.g. when swh.model has runtime type validation.
-
David Douard authored
instead of plain Content.
-
David Douard authored
these are currently accepted by swh.model, but won't be any more as soon as we activate type validation in swh.model.
-