Skip to content
Snippets Groups Projects
  1. Dec 16, 2021
  2. Nov 18, 2021
  3. Nov 16, 2021
  4. Oct 28, 2021
    • David Douard's avatar
    • David Douard's avatar
      Pass the object_type to JournalClient.value_serializer() · f92d4acf
      David Douard authored
      and make this function an (optional) constructor argument.
      If not given, stick to `kafka_to_value`.
      
      If the returned value is None, it is ignored (not passed to the
      `worker_fn` function).
      
      This is needed in order to make it possible for the JournalClient to use
      a special value_deserializer implementation that needs the object_type,
      for example to make the value_deserializer directly instanciate
      BaseModel object.
      
      This will be used by an upcoming refactoring of the storage replayer
      that will make sure any BaseModel object coming from the journal is valid,
      and log invalid kafka objects in case it's not.
      
      Related to T3693.
      f92d4acf
  5. Oct 27, 2021
  6. Sep 16, 2021
  7. Jun 18, 2021
  8. Jun 09, 2021
  9. May 03, 2021
  10. Apr 26, 2021
    • Antoine Lambert's avatar
      tox: Add sphinx environments to check sane doc build · dd59b67c
      Antoine Lambert authored
      Enable to check package documentation can be built without producing
      sphinx warnings.
      
      The sphinx environment is designed to be used in continuous integration
      in order to prevent breaking documentation build when committing changes.
      
      The sphinx-dev environment is designed to be used inside a full swh
      development environment.
      
      Related to T3258
      dd59b67c
  11. Apr 16, 2021
  12. Apr 08, 2021
  13. Mar 15, 2021
  14. Feb 25, 2021
  15. Feb 09, 2021
  16. Jan 27, 2021
  17. Jan 13, 2021
  18. Dec 17, 2020
  19. Dec 08, 2020
  20. 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
  21. Nov 27, 2020
  22. Nov 02, 2020
  23. Oct 27, 2020
  24. Oct 12, 2020
  25. Oct 02, 2020
  26. Sep 29, 2020
  27. Sep 17, 2020
  28. 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
  29. Aug 07, 2020
Loading