- Jul 07, 2020
- Jul 06, 2020
-
-
David Douard authored
Add a new extra_headers attribute on Revision and use it for computing the revision's id instead of extract it from the metadata field. Only accept (bytes, bytes) as extra_header. Add a post init hook to Revision to initialize this new attribute from given metadata, if any, for bw compat. Also amend the revision_d hyptothesis strategy to generate extra_headers.
-
- Jul 03, 2020
-
-
Antoine Lambert authored
When Software Heritage persistent identifiers were introduced, they were not yet abbreviated as SWHIDs. Now that abbreviation is growing adoption, rename some functions and types in swh.model.identifiers for consistency: - PersistentId -> SWHID - persistent_identifier -> swhid - parse_persistent_identifier -> parse_swhid Backward compatibility with previous naming is maintained but deprecation warnings are introduced to encourage the use of the new names. Numerous variables in swh.model codebase have also been renamed accordingly. Also rework and improve documentation.
-
- Jun 15, 2020
-
-
David Douard authored
thus in TimestampWithTimezone.from_dict(). This is needed to help consuming existing (invalid) messages from kafka. Warning: tests added in this revision do not cover the whole normalize_timestamp() function.
-
- Apr 17, 2020
-
-
Stefano Zacchiroli authored
-
- Apr 08, 2020
-
-
David Douard authored
- blackify all the python files, - enable black in pre-commit, - add a black tox environment.
-
- Mar 23, 2020
-
-
Antoine Pietri authored
-
- Feb 21, 2020
-
-
vlorentz authored
It should be cheap enough to do it, and it makes tests easier.
-
- Nov 29, 2019
-
-
Antoine Lambert authored
-
- Oct 06, 2019
-
-
Stefano Zacchiroli authored
-
- Oct 04, 2019
-
-
... from test_persistent_identifier. Closes T1986
-
- Sep 20, 2019
-
-
Stefano Zacchiroli authored
-
Stefano Zacchiroli authored
-
- Aug 23, 2019
-
-
Stefano Zacchiroli authored
-
- Jul 10, 2019
-
-
vlorentz authored
-
- Jun 27, 2019
-
-
Ishan Bhanuka authored
-
- Apr 08, 2019
-
-
vlorentz authored
-
- Apr 04, 2019
-
- Sep 21, 2018
-
-
Antoine R. Dumont authored
-
- Jul 20, 2018
-
-
Antoine R. Dumont authored
Related T1152
-
- Jun 29, 2018
-
-
Antoine Lambert authored
This commit changes the swh pids representation returned by the parse_persistent_identifier function from a dict to a named tuple. Also, the 'object_type' attribute of that named tuple now contains a full name instead of an abbreviated one. Closes T1112 Closes T1125
-
- Jun 21, 2018
-
-
Antoine R. Dumont authored
Close T1104 Close D346
-
Antoine R. Dumont authored
Related T1104
-
Antoine R. Dumont authored
As the client of this api might not be aware of what's the right id key for a given object. Related T1104
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
Related T1104
-
Antoine R. Dumont authored
Related T1104
-
Antoine R. Dumont authored
Related T1104
-
- May 18, 2018
-
-
Antoine Lambert authored
This commits adds support for parsing optional parts in persistent identifiers. Optional parts are defined the following way: <swh_id>[;key1=val1][;key2=val2] Related T1040
-
- Jan 31, 2018
-
-
Antoine R. Dumont authored
-
- Jan 17, 2018
-
-
Antoine R. Dumont authored
Related T335
-
- Jan 15, 2018
-
-
Antoine R. Dumont authored
Related T335 Related T933
-
- Dec 13, 2017
-
-
Nicolas Dandrimont authored
Summary: Add support for snapshot identifiers Close T566. Related to D268. Test Plan: Unit tests included Reviewers: zack, #reviewers! Maniphest Tasks: T566 Differential Revision: https://forge.softwareheritage.org/D277
-
- Sep 06, 2017
-
-
Stefano Zacchiroli authored
-
- Mar 24, 2017
-
-
Antoine R. Dumont authored
Related T703
-
- Feb 15, 2017
-
-
Nicolas Dandrimont authored
Found by investigating T75
-
- Feb 14, 2017
-
-
Nicolas Dandrimont authored
The subversion loader (T680) has shown that throwing floating point values around for timestamps is a mess waiting to happen. We now coerce all clients to send us timestamps as integer numbers of seconds and microseconds, avoiding data losses everywhere.
-
- Apr 08, 2016
-
-
Nicolas Dandrimont authored
-