Skip to content
Snippets Groups Projects
  1. Nov 16, 2020
    • Andrew Morgan's avatar
      Generalise _locally_reject_invite (#8751) · 4f76eef0
      Andrew Morgan authored
      `_locally_reject_invite` generates an out-of-band membership event which can be passed to clients, but not other homeservers.
      
      This is used when we fail to reject an invite over federation. If this happens, we instead just generate a leave event locally and send it down /sync, allowing clients to reject invites even if we can't reach the remote homeserver.
      
      A similar flow needs to be put in place for rescinding knocks. If we're unable to contact any remote server from the room we've tried to knock on, we'd still like to generate and store the leave event locally. Hence the need to reuse, and thus generalise, this method.
      
      Separated from #6739.
      4f76eef0
    • Richard van der Hoff's avatar
      Rename `create_test_json_resource` to `create_test_resource` (#8759) · 791d7cd6
      Richard van der Hoff authored
      The root resource isn't necessarily a JsonResource, so rename this method
      accordingly, and update a couple of test classes to use the method rather than
      directly manipulating self.resource.
      791d7cd6
    • Richard van der Hoff's avatar
      Add a `custom_headers` param to `make_request` (#8760) · ebc40544
      Richard van der Hoff authored
      Some tests want to set some custom HTTP request headers, so provide a way to do
      that before calling requestReceived().
      ebc40544
  2. Nov 14, 2020
  3. Nov 13, 2020
    • Andrew Morgan's avatar
      Generalise _maybe_store_room_on_invite (#8754) · e8d08537
      Andrew Morgan authored
      There's a handy function called maybe_store_room_on_invite which allows us to create an entry in the rooms table for a room and its version for which we aren't joined to yet, but we can reference when ingesting events about.
      
      This is currently used for invites where we receive some stripped state about the room and pass it down via /sync to the client, without us being in the room yet.
      
      There is a similar requirement for knocking, where we will eventually do the same thing, and need an entry in the rooms table as well. Thus, reusing this function works, however its name needs to be generalised a bit.
      
      Separated out from #6739.
      e8d08537
    • Erik Johnston's avatar
    • Erik Johnston's avatar
      Fix changelog · 0a518549
      Erik Johnston authored
      0a518549
    • Erik Johnston's avatar
      1.23.0rc1 · 4a54b821
      Erik Johnston authored
      4a54b821
    • Dirk Klimpel's avatar
      Migrate documentation `docs/admin_api/event_reports` to markdown (#8742) · 023f7911
      Dirk Klimpel authored
      Related to #8714. `event_reports.rst` was introduced in Synapse 1.21.0.
      023f7911
    • Marcus Schopen's avatar
      SAML: add <mdui:UIInfo> element examples (#8718) · 68fc0dcb
      Marcus Schopen authored
      add some mdui:UIInfo element examples for saml2_config in homeserver.yaml
      68fc0dcb
    • chagai95's avatar
      Updating README.rst (#8746) · 69147ed1
      chagai95 authored
      Minor corrections and advice... Should help beginners.
      69147ed1
    • Erik Johnston's avatar
      Add metrics for tracking 3PID /requestToken requests. (#8712) · 427ede61
      Erik Johnston authored
      The main use case is to see how many requests are being made, and how
      many are second/third/etc attempts. If there are large number of retries
      then that likely indicates a delivery problem.
      427ede61
    • Erik Johnston's avatar
      Fix port script so that it can be run again after failure. (#8755) · 1b15a3d9
      Erik Johnston authored
      If the script fails (or is CTRL-C'ed) between porting some of the events table and copying of the sequences then the port script will immediately die if run again due to the postgres DB having inconsistencies between sequences and tables.
      
      The fix is to move the porting of sequences to before porting the tables, so that there is never a period where the Postgres DB is inconsistent. To do that we need to change how we port the sequences so that it calculates the values from the SQLite DB rather than the Postgres DB.
      
      Fixes #8619 
      1b15a3d9
    • Erik Johnston's avatar
      Cache event ID to auth event IDs lookups (#8752) · 4cb00d29
      Erik Johnston authored
      This should hopefully speed up `get_auth_chain_difference` a bit in the case of repeated state res on the same rooms.
      
      `get_auth_chain_difference` does a breadth first walk of the auth graphs by repeatedly looking up events' auth events. Different state resolutions on the same room will end up doing a lot of the same event to auth events lookups, so by caching them we should speed things up in cases of repeated state resolutions on the same room.
      4cb00d29
  4. Nov 12, 2020
    • Erik Johnston's avatar
      Enable reconnection in DB pool (#8726) · c2d4467c
      Erik Johnston authored
      `adbapi.ConnectionPool` let's you turn on auto reconnect of DB connections. This is off by default.
      As far as I can tell if its not enabled dead connections never get removed from the pool.
      
      Maybe helps #8574
      c2d4467c
  5. Nov 11, 2020
  6. Nov 06, 2020
  7. Nov 05, 2020
  8. Nov 04, 2020
  9. Nov 03, 2020
  10. Nov 02, 2020
  11. Oct 30, 2020
Loading