- Sep 25, 2020
-
-
David Douard authored
The addition of '-p no:pytest_swh_core' in pytest.ini is needed to prevent pytest from loading the pytest_swh_core plugin which we do not need here and which would require some more dependencies (e.g. requests).
-
- Sep 18, 2020
-
-
Thibault Allançon authored
Use the new SWHID naming convention instead of SWH PID.
-
- Sep 17, 2020
-
-
Antoine Lambert authored
Related to T2610
-
Antoine Lambert authored
Related to T2610
-
Antoine Lambert authored
flake8 hook has been removed from https://github.com/pre-commit/pre-commit-hooks so now use the one from https://gitlab.com/pycqa/flake8
-
- Sep 10, 2020
-
-
David Douard authored
move most import statements in functions. Related to T2575.
-
- Aug 25, 2020
-
-
Antoine Lambert authored
-
vlorentz authored
pytest wastes a lot of time in .hypothesis and .git; this commit excludes them.
-
- Aug 14, 2020
-
-
vlorentz authored
We may unknowingly pass naive datetimes to the storage through them, causing the underlying DB to assign them a timezone that might not match the actual one. It already happens in swh.model and swh.loader.package tests.
-
- Aug 07, 2020
-
-
Antoine R. Dumont authored
Same as for the field data, it helps for code not yet migrated to use model object.
-
Antoine R. Dumont authored
Related to T645
-
- Aug 06, 2020
-
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
Related to T2105
-
Antoine R. Dumont authored
Related to T2105
-
- Aug 04, 2020
-
-
Antoine R. Dumont authored
Related to T2105
-
- Jul 30, 2020
-
-
vlorentz authored
It can help in pytest's diffs
-
- Jul 29, 2020
-
-
David Douard authored
-
David Douard authored
to fix a deprecationg warning.
-
David Douard authored
to prevent warnings
-
- Jul 20, 2020
-
- Jul 09, 2020
-
-
Nicolas Dandrimont authored
- Use dia directly to convert from .dia to .svg (inkscape would use dia via a plugin anyway) - Add proper runes to detect inkscape >= 1 and use the export options for that.
-
- Jul 08, 2020
-
-
Antoine Lambert authored
-
- Jul 07, 2020
-
-
vlorentz authored
As NamedTuple inherits from tuple, msgpack serializes it like a tuple, which makes it indistinguishable from a tuple when deserializing, which is an issue for the RPC API.
-
vlorentz authored
-
vlorentz authored
-
vlorentz authored
It allows easy conversion of Union[ImmutableDict, Dict] to ImmutableDict.
-
vlorentz authored
-
vlorentz authored
So they are truly immutable now.
-
vlorentz authored
This will allow swh-storage to have a signature for *_metadata_add that is consistent with other *_add endpoints.
-
- 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.
-
- Jul 02, 2020
-
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
-
- Jun 29, 2020
-
-
Antoine R. Dumont authored
Related to T2310
-
- Jun 24, 2020
-
-
David Douard authored
this aims at preventing constant usage of isinstance() based dispatch code when writing generic code handling model entities. For example, the "object_type" argument of JournalWriter.write_addition() has become superflous now we only pass model entities, etc. This idea comes olasd's reading of mypy doc: https://mypy.readthedocs.io/en/latest/literal_types.html#tagged-unions This comes with a refactoring of from_dict.DiskBackedContent to make it *not* inherit from model.Content: object_type being Final, it cannot be overloaded.
-
Antoine R. Dumont authored
Related to T2310
-
- Jun 23, 2020
-
-
Antoine R. Dumont authored
Related to T2310
-
- Jun 22, 2020
-
-
Antoine R. Dumont authored
-
- Jun 16, 2020
-
-
Antoine R. Dumont authored
This is not used. This is broken storage wise (origin-visit-add does not deal correctly with it and it so happens there is no test around it). And finally, this will soon go away with T2310.
-
David Douard authored
And adapt the revisions_d() strategy accordingly.
-