Skip to content
Snippets Groups Projects
  1. Apr 09, 2021
  2. Apr 08, 2021
  3. Mar 29, 2021
  4. Mar 26, 2021
    • Erik Johnston's avatar
      Make it possible to use dmypy (#9692) · b5efcb57
      Erik Johnston authored
      Running `dmypy run` will do a `mypy` check while spinning up a daemon
      that makes rerunning `dmypy run` a lot faster.
      
      `dmypy` doesn't support `follow_imports = silent` and has
      `local_partial_types` enabled, so this PR enables those options and
      fixes the issues that were newly raised. Note that `local_partial_types`
      will be enabled by default in upcoming mypy releases.
      b5efcb57
  5. Mar 15, 2021
  6. Mar 12, 2021
  7. Mar 09, 2021
  8. Feb 24, 2021
    • Erik Johnston's avatar
      Clean up `ShardedWorkerHandlingConfig` (#9466) · 29279219
      Erik Johnston authored
      * Split ShardedWorkerHandlingConfig
      
      This is so that we have a type level understanding of when it is safe to
      call `get_instance(..)` (as opposed to `should_handle(..)`).
      
      * Remove special cases in ShardedWorkerHandlingConfig.
      
      `ShardedWorkerHandlingConfig` tried to handle the various different ways
      it was possible to configure federation senders and pushers. This led to
      special cases that weren't hit during testing.
      
      To fix this the handling of the different cases is moved from there and
      `generic_worker` into the worker config class. This allows us to have
      the logic in one place and allows the rest of the code to ignore the
      different cases.
      29279219
  9. Feb 16, 2021
  10. Jan 26, 2021
  11. Dec 15, 2020
  12. Dec 09, 2020
  13. Dec 04, 2020
  14. Dec 02, 2020
    • Richard van der Hoff's avatar
      fix up various test cases · 7ea85302
      Richard van der Hoff authored
      A few test cases were relying on being able to mount non-client servlets on the
      test resource. it's better to give them their own Resources.
      7ea85302
    • Patrick Cloke's avatar
      Apply an IP range blacklist to push and key revocation requests. (#8821) · 30fba621
      Patrick Cloke authored
      Replaces the `federation_ip_range_blacklist` configuration setting with an
      `ip_range_blacklist` setting with wider scope. It now applies to:
      
      * Federation
      * Identity servers
      * Push notifications
      * Checking key validitity for third-party invite events
      
      The old `federation_ip_range_blacklist` setting is still honored if present, but
      with reduced scope (it only applies to federation and identity servers).
      30fba621
  15. Nov 30, 2020
  16. Nov 16, 2020
  17. Nov 15, 2020
  18. Oct 30, 2020
  19. Oct 29, 2020
  20. Oct 27, 2020
  21. Oct 15, 2020
    • Jonathan de Jong's avatar
      Solidify the HomeServer constructor. (#8515) · 6b5a115c
      Jonathan de Jong authored
      This implements a more standard API for instantiating a homeserver and
      moves some of the dependency injection into the test suite.
      
      More concretely this stops using `setattr` on all `kwargs` passed to `HomeServer`.
      6b5a115c
  22. Oct 14, 2020
  23. Oct 13, 2020
  24. Oct 09, 2020
  25. Oct 02, 2020
  26. Sep 24, 2020
    • Erik Johnston's avatar
      Add EventStreamPosition type (#8388) · ac11fcbb
      Erik Johnston authored
      The idea is to remove some of the places we pass around `int`, where it can represent one of two things:
      
      1. the position of an event in the stream; or
      2. a token that partitions the stream, used as part of the stream tokens.
      
      The valid operations are then:
      
      1. did a position happen before or after a token;
      2. get all events that happened before or after a token; and
      3. get all events between two tokens.
      
      (Note that we don't want to allow other operations as we want to change the tokens to be vector clocks rather than simple ints)
      ac11fcbb
  27. Sep 18, 2020
  28. Sep 08, 2020
  29. Sep 02, 2020
  30. Aug 26, 2020
  31. Aug 05, 2020
  32. Jul 30, 2020
  33. Jul 27, 2020
Loading