- Sep 28, 2021
- Sep 24, 2021
-
- Sep 23, 2021
-
-
vlorentz authored
-
vlorentz authored
For consistency, as the classes are now in swhids.py
-
vlorentz authored
+ raise warnings
-
vlorentz authored
1. Add a warning 2. Move identifier/manifest documentation to git_objects.py 3. Remove all imports of that module. Motivation: * SWHID classes were moved to swhids.py * manifest computation functions were moved to git_objects.py * Only reexports and trivial wrappers of model.py remain
-
vlorentz authored
-
vlorentz authored
They are not used anywhere.
-
vlorentz authored
Since they are used by the vault for non-identifier-related stuff, I think it makes sense to move them to a new module. identifiers.py is now an empty shell, as all its features were moved to other modules and it only contains reexports and backward-compat functions. Therefore, it should be considered deprecated from now on.
-
vlorentz authored
Refactor identifiers & model to make *_git_object() functions work on model classes instead of dicts Since we now use these classes everywhere, computing hashes required using to_dict() just to compute identifiers, which can be a performance bottleneck in code computing many checksums.
-
vlorentz authored
A future commit will make identifier computation use the attrs classes, which are strict about what they accept.
-
vlorentz authored
identifiers.py initially worked only on bare sha1_git. I chose to add the SWHID classes in that module because of the name, but the SWHID code didn't actually interact with the other functions in the module, so it now feels out of place to me.
-
Raphaël Gomès authored
We're about to have a Bazaar loader
-
- Sep 16, 2021
-
-
vlorentz authored
- Jul 27, 2021
-
-
Stefan Sperling authored
- Jul 23, 2021
-
-
Nicolas Dandrimont authored
This allows distinguishing multiple potential versions of the mapping between external objects and their counterparts archived in Software Heritage, for instance when a loader has a backwards-incompatible change that should result in objects being loaded again. The field defaults to zero, in which case it's backwards-compatible with the previous implementation in terms of identifier computation.
- Jul 02, 2021
-
-
Daniele Serafini authored
- Jun 25, 2021
-
-
vlorentz authored
We agreed a while ago they should be IRIs and not just URIs. This will trigger crashes in swh.storage.cassandra, as currently expects (wrongly) that origin urls are ASCII.
-
vlorentz authored
* empty fetcher name or version is not accepted by cassandra (and is nonsensical anyway) * ditto for non-ASCII (and any non-printable is nonsensical) * null bytes/chars are accepted by neither postgresql or cassandra
-
- Jun 21, 2021
-
-
Daniele Serafini authored
Closes T3393
-
- Jun 16, 2021
- Jun 15, 2021
-
-
Daniele Serafini authored
- add typing annotation to avoid such error in the future Fixes T3383
-
David Douard authored
-
David Douard authored
the problem was for datetime<epoch, the timestamp is negative, but since it's a float that includes the microseconds, if both are true (< epoch and microsecond > 0), then the computed (int) timestamp was off by one. Add dedicated tests for this.
-
- Jun 11, 2021
-
-
Daniele Serafini authored
-
- Jun 09, 2021
-
-
Antoine Lambert authored
-
- May 20, 2021
- May 19, 2021
-
-
David Douard authored
make sure the snapshot id in OriginVisitStatus refers to existing Snapshot objects.
-
- May 11, 2021