- Apr 02, 2020
-
-
Antoine Lambert authored
A release may have an empty message, for instance those derived from a Mercurial repository. So make that field optional to avoid type validation errors.
-
- Apr 01, 2020
-
-
David Douard authored
With support for str representation of date. Mostly for testing purpose.
-
David Douard authored
-
David Douard authored
instead of a reference to an Origin entity.
-
David Douard authored
- add a validator for negative_utc (can be True iff offset is 0), - update the timestamps_with_timezone hypothesis strategy, - add low-level tests for it.
-
David Douard authored
This ensures all instanciated model entities have valid types for attributes. Related to T2308.
-
- Mar 31, 2020
-
-
Antoine R. Dumont authored
(pairing with @vlorentz) Related to T2310
-
- Mar 11, 2020
-
-
David Douard authored
it was still here for bw-compat but should not be necessary any more.
-
David Douard authored
this function does not need to be a local function of the to_dict namespace.
-
- Mar 04, 2020
-
- Mar 02, 2020
-
-
Nicolas Dandrimont authored
This lets us generate Content objects directly from a bytestring, with the proper set of hashes auto-generated from the contents.
-
- Feb 27, 2020
-
-
vlorentz authored
Will be used by loaders.
- Feb 24, 2020
-
-
vlorentz authored
They will be used by loaders, so they can deal only with model objects, instead of having to do the same conversion themselves. This removes the `data` and `save_path` arguments of `from_file` and `from_disk`, as data loading is always deferred from now on. To access it, users are now expected to either open the data files themselves, or us `.to_model().with_data()`.
-
- Feb 14, 2020
-
-
vlorentz authored
Can be useful to deduplicate code in swh-storage.
-
- Feb 07, 2020
-
-
vlorentz authored
The current postgresql model refuses NULL values.
- Feb 05, 2020
-
- Jan 30, 2020
-
-
Antoine R. Dumont authored
Related to P589
-
- Jan 17, 2020
-
-
Antoine Lambert authored
Related to T2188
-
- Nov 29, 2019
-
-
Antoine Lambert authored
Add support to automatically compute identifier in the following object models: Directory, Release, Revision, Snapshot. If the identifier is not provided as parameter, it will be computed when the model is initialized.
-
- Oct 30, 2019
-
- Oct 29, 2019
-
-
David Douard authored
we do not really need them to be mutable, plus we gain their instances now being hashable, so we can add them in set() for example.
-
- Oct 23, 2019
-
-
Nicolas Dandrimont authored
Instead of relying on attr.asdict recursion, we do recursion ourselves. This simplifies a lot of the inherited to_dict() methods.
-
- Oct 18, 2019
-
-
Nicolas Dandrimont authored
-
Nicolas Dandrimont authored
-
- Sep 15, 2019
-
-
Stefano Zacchiroli authored
-
- Sep 04, 2019
-
-
vlorentz authored
Needed by the replayer in swh-journal.
- Aug 23, 2019
-
-
vlorentz authored
-
- Aug 22, 2019
-
-
vlorentz authored
- Aug 21, 2019
- Aug 20, 2019
-
- Aug 19, 2019
- Aug 05, 2019
-
- Jul 18, 2019
-