Skip to content
Snippets Groups Projects
  1. Jan 13, 2021
  2. Dec 17, 2020
  3. Dec 08, 2020
  4. Dec 04, 2020
    • David Douard's avatar
      Use msgpack Timestamp extension type to encode datetime objects in the journal · 8dd97125
      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
      8dd97125
  5. Nov 27, 2020
  6. Nov 02, 2020
  7. Oct 27, 2020
  8. Oct 12, 2020
  9. Oct 02, 2020
  10. Sep 29, 2020
  11. Sep 17, 2020
  12. Aug 19, 2020
    • vlorentz's avatar
      Fix deserialization of extra_headers. · 4d3cb983
      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], ...]
      4d3cb983
  13. Aug 07, 2020
  14. Aug 06, 2020
  15. Jul 31, 2020
  16. Jul 30, 2020
  17. Jul 06, 2020
  18. Jul 01, 2020
  19. Jun 30, 2020
  20. Jun 25, 2020
  21. Jun 17, 2020
  22. Jun 10, 2020
  23. Jun 09, 2020
  24. Jun 03, 2020
  25. Jun 02, 2020
    • David Douard's avatar
      Fix MockedKafkaWriter · 9c87cda7
      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.
      9c87cda7
  26. May 25, 2020
    • David Douard's avatar
      Add support for a priviledged "channel" of topics for non-anonymized objects · 3cac9cff
      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.
      3cac9cff
  27. May 13, 2020
Loading