- Jan 13, 2021
-
-
Vincent Sellier authored
Related to T2964
-
- Dec 17, 2020
-
-
vlorentz authored
It has a major regression for timestamps: https://github.com/msgpack/msgpack-python/issues/451
-
- Dec 08, 2020
-
-
David Douard authored
to have support for datetime/timestamp.
-
David Douard authored
previous revision did in fact killed the dependencu on swh.core but did not update the rquirements file accordingly.
-
- Dec 04, 2020
-
-
David Douard authored
The encoding of datetime objects is done using msgpack extension types (instead of former b'swhtype" custom types). Note that this imply that the timezone of the encoded datime is "lost in translation": the resulting datetime will be a (tz-aware) UTC datetime object. Support for decoding these later is however provided for backward compatbility. Also make the serialization code of the journal independant from swh.core.api.serializer. This later move aims at making the msgpack serialization process of the journal to be specified (and predictable). The code from swh.core is dedicated at RPC and can thus do much more "custom types" than what is needed for the journal. So by not using the serialization code from the swh.core pakage, we make sure we do not inadvertently encode unspecified objects in the journal. Related to T2834
-
- Nov 27, 2020
-
-
vlorentz authored
So that errors in unique_key() are caught by tests using the in-mem writer.
-
- Nov 02, 2020
- Oct 27, 2020
-
-
Nicolas Dandrimont authored
The old attribute was deprecated in swh.model 0.7.2
-
Nicolas Dandrimont authored
We don't use @overload in this module anymore.
-
Nicolas Dandrimont authored
-
- Oct 12, 2020
-
-
vlorentz authored
-
- Oct 02, 2020
-
-
Stefano Zacchiroli authored
-
- Sep 29, 2020
-
-
vlorentz authored
swh.journal.writer.kafka imports it from serializers.
-
- Sep 17, 2020
-
-
Antoine Lambert authored
Related to T2610
-
Antoine Lambert authored
Related to T2610
-
- Aug 19, 2020
-
-
vlorentz authored
kafka_to_value didn't recursively convert to tuples, so they were of type Tuple[List[bytes], ...] instead of Tuple[Tuple[bytes, bytes], ...]
-
- Aug 07, 2020
-
-
Antoine R. Dumont authored
Following swh.model 0.6.6 bump
-
- Aug 06, 2020
-
-
Antoine R. Dumont authored
Related to T2501
-
- Jul 31, 2020
-
-
vlorentz authored
Required, to have the 'object_type' attribute on metadata object classes.
-
- Jul 30, 2020
- Jul 06, 2020
-
-
David Douard authored
instead of dicts. This is needed because we are beginning to use converters in swh.model, so the dict used as input is not guaranteed to be the exact same one as the one retrieved from the journal. For this, we need to include the data attribute in journal_data's Content objects so we have "true" Content objects in tests. Which then requires a few adjustments in journal tests because the Content's data is never sent to the journal.
-
- Jul 01, 2020
-
-
Antoine R. Dumont authored
-
- Jun 30, 2020
-
-
Antoine R. Dumont authored
Related to T2310
-
- Jun 25, 2020
-
-
David Douard authored
for the sake of correctness.
-
Antoine R. Dumont authored
As this is no longer compatible with latest model, that code makes the storage builds fail.
-
Antoine R. Dumont authored
This sets the fields status, metadata and snapshot from the origin-visit entries to None (as per the recent model change D3340) This pulls the creation of origin-visit-status with almost the same origin-visit entries as before. The origin-visit-status dates are slightly larger than the origin-visit ones so we are able to reflect the reality of operations (first creation of origin visits, then creation of origin-visit-status associated to that origin-visit). Related to T2310
-
- Jun 17, 2020
-
-
David Douard authored
This metadata field is kind of deprecated, and having values there may cause failures in tests using a Postgresql backend storage.
-
- Jun 10, 2020
-
-
David Douard authored
-
David Douard authored
-
- Jun 09, 2020
-
-
Antoine R. Dumont authored
Prior to this commit, when error happened during testing, this would cascade into another error ("unhashable type dict" for example). In effect, preventing to actually understand correctly what went wrong in the first place. This commit fixes it.
-
Antoine R. Dumont authored
Related to T2310
-
Antoine R. Dumont authored
This is also preparatory work for D3241
-
- Jun 03, 2020
-
-
David Douard authored
Improve the coverage of the test set provided in journal_data, namely add directories, snapshots and skipped contents. This requires to adapt a bit the function assert_all_objects_consumed() from pytest_plugin, because we want to be able to handle anonymizable objects specifically. So for now, simply add an 'exclude' argument. It also needs the kafka_to_value serializer function to ensure tuples are used instead of lists.
-
David Douard authored
in which parents are expected to be a tuple instead of a list.
-
- Jun 02, 2020
-
-
David Douard authored
even if this class is meant to be removed soon, this fix is needed to make swh-storage tests pass ok for now.
-
- May 25, 2020
-
-
David Douard authored
The idea is to publish on a "public" prefix anonymized objects and have a priviledged prefix for non-anonymized ones. Every model object which ".anonymize()" method returns a(n anonymized) model object will be sent to both channels (anonymized version on the regular channel, and original version on the privileged channel). Currently only Release and Revision objects are anonymizable. For anonymizable objects: - regular (non-anonymized) objects are sent to the topic "{prefix}_privileged.{object_type}" - anonymized version of these objects are sent to "{prefix}.{object_type}" On the client side, a new boolean "privileged" config parameter is used to select privileged topics if vivible on the Kafka broker at subscrition time.
-
- May 13, 2020
-
-
David Douard authored
-