- Mar 11, 2021
- Mar 10, 2021
-
-
David Douard authored
this object aims at being able to keep in the SWH Archive an SWHID <-> External object ID map, e.g. to be able to keep track of Mercurial ids so the Mercurial loader can be made more efficient. Related to T2849.
-
- Mar 08, 2021
-
-
David Douard authored
was modifying the dict given as argument.
-
- Mar 05, 2021
- Mar 04, 2021
-
-
vlorentz authored
The rounding algorithm wasn't specified
-
vlorentz authored
Serializing as ISO8601 makes the hash brittle, because the database may change the timezone silently and/or lose precision in the microseconds. As we do not need precise timestamp, using an integer is good enough, and is consistant with the git format. The manifest also does not need to contain a timezone, as it only represents the timezone of the system that fetched this metadata, which is useless data.
-
vlorentz authored
So that they can be properly deduplicated and referenced.
-
vlorentz authored
This will be used to compute an intrisic identifier for RawExtrinsicMetadata; which can be used for deduplication and refering to it like any other sha1_git instead of needed to use a tuple of its fields.
- Mar 03, 2021
-
-
vlorentz authored
- Mar 02, 2021
- Mar 01, 2021
-
-
vlorentz authored
SWHID is deprecated; and CoreSWHID does not support qualifiers at all, so RawExtrinsicMetadata no longer needs to check there are no qualifiers.
-
vlorentz authored
ExtendedSWHID can identify either a software artifact or an origin, so we no longer need Union[SWHID, str]. Therefore, we no longer need the 'type' attribute, as it was only used to tell when the target is a SWHID and when it's an origin URL.
-
vlorentz authored
It can be handy as a shortcut to build SWHID objects.
- Feb 25, 2021
- Feb 23, 2021
-
-
vlorentz authored
-
vlorentz authored
-
vlorentz authored
* Quote/unquote path * Fix line parsing and serializing to properly handle None * Fix error raised by check_visit/check_anchor
-
vlorentz authored
They were all very similar and only differ in what 'edge' cases they accept
-
vlorentz authored
by making them all derive from an abstract class.
-
vlorentz authored
Following the discussion on T3034, we decided to replace SWHID with two or three classes: * QualifiedSWHID to replace the existing SWHID (standard types + qualifiers) * CoreSWHID, for "core SWHID" only (standard types + no qualifiers) * ExtendedSWHID for internal use in Software Heritage (extra types + no qualifiers) This commit adds the last one. It also removes "ori" as a valid object type for CoreSWHID and QualifiedSWHID, as it now only belongs in ExtendedSWHID.
- Feb 19, 2021
-
-
vlorentz authored
It is cleaner, avoids warnings, and will be needed when introducing ExtendedSWHID in a future commit.
-
vlorentz authored
And store their parsed values (CoreSWHID, tuple of ints, etc.) instead of string.
-
vlorentz authored
Following the discussion on T3034, we decided to replace SWHID with two or three classes: * QualifiedSWHID to replace the existing SWHID (standard types + qualifiers) * CoreSWHID, for "core SWHID" only (standard types + no qualifiers) * ExtendedSWHID for internal use in Software Heritage (extra types + no qualifiers) This commit adds the second one
-
vlorentz authored
Following the discussion on T3034, we decided to replace SWHID with two or three classes: * QualifiedSWHID to replace the existing SWHID (standard types + qualifiers) * CoreSWHID, for "core SWHID" only (standard types + no qualifiers) * ExtendedSWHID for internal use in Software Heritage (extra types + no qualifiers) Since migrating from SWHID will break existing code, this commit uses the opportunity to modernize it a little, ie.: * `keyword`-only constructor, to get rid of the hacky default values for `object_type` and `object_id` * enum instead of strings for the object type * `bytes` instead of an hex string for the object id * rename `metadata` to `qualifiers`
-
vlorentz authored
Depending on the order in which tests are run, these tests may insert lambdas with mocked blake2 functions in their closure to be inserted in hashutil._blake2_hash_cache; causing all future tests to fail. While this does not happen with the default order of tests, it does when using pytest-xdist.
-
- Feb 02, 2021
-
-
Roberto Di Cosmo authored
-
- Jan 29, 2021
-
-
Roberto Di Cosmo authored
-
- Jan 26, 2021
-
-
David Douard authored
so it's kept up to date when evolutions are made in the model and thus preventing swh-journal and swh-model to be unecessarly coupled. Related to T2970.
- Jan 20, 2021
-
-
Antoine R. Dumont authored
Related to T2961
- Jan 14, 2021
- Jan 13, 2021
-
-
Vincent Sellier authored
The optional nature of the type will allow to avoid migrating the (db) data model right now then we can have this type field in kafka messages in the origin-visit-status topic Related to T2443
-
- Jan 12, 2021
-
-
vlorentz authored
They were mixed in with snapshot tests.
-
vlorentz authored
test_identifiers: Make sure that {directory,revision,release,snapshot}_identifier() doesn't just return a value from the dict. For example, before this commit, you could replace the code of revision_identifier() with this: def release_identifier(release): return release.get("id", b"") and all tests would still pass.
-