Skip to content
Snippets Groups Projects
  1. Oct 04, 2021
    • David Robertson's avatar
      Consistently exclude from user_directory (#10960) · f7b034a2
      David Robertson authored
      * Introduce `should_include_local_users_in_dir`
      
      We exclude three kinds of local users from the user_directory tables. At
      present we don't consistently exclude all three in the same places. This
      commit introduces a new function to gather those exclusion conditions
      together. Because we have to handle local and remote users in different
      ways, I've made that function only consider the case of remote users.
      It's the caller's responsibility to make the local versus remote
      distinction clear and correct.
      
      A test fixup is required. The test now hits a path which makes db
      queries against the users table. The expected rows were missing, because
      we were using a dummy user that hadn't actually been registered.
      
      We also add new test cases to covert the exclusion logic.
      
      ----
      
      By my reading this makes these changes:
      
      * When an app service user registers or changes their profile, they will
        _not_ be added to the user directory. (Previously only support and
        deactivated users were excluded). This is consistent with the logic that
        rebuilds the user directory. See also [the discussion
        here](https://github.com/matrix-org/synapse/pull/10914#discussion_r716859548
      
      ).
      * When rebuilding the directory, exclude support and disabled users from
        room sharing tables. Previously only appservice users were excluded.
      * Exclude all three categories of local users when rebuilding the
        directory. Previously `_populate_user_directory_process_users` didn't do
        any exclusion.
      
      Co-authored-by: default avatarRichard van der Hoff <1389908+richvdh@users.noreply.github.com>
      Unverified
      f7b034a2
  2. Sep 30, 2021
  3. Sep 29, 2021
  4. Sep 23, 2021
  5. Sep 22, 2021
  6. Sep 14, 2021
  7. Sep 08, 2021
  8. Sep 01, 2021
  9. Aug 17, 2021
  10. Aug 04, 2021
  11. Aug 02, 2021
  12. Jul 26, 2021
  13. Jul 20, 2021
  14. Jul 13, 2021
  15. Jun 29, 2021
  16. Jun 22, 2021
  17. Jun 17, 2021
  18. Jun 01, 2021
    • Richard van der Hoff's avatar
      add a cache to have_seen_event (#9953) · b4b2fd2e
      Richard van der Hoff authored
      Empirically, this helped my server considerably when handling gaps in Matrix HQ. The problem was that we would repeatedly call have_seen_events for the same set of (50K or so) auth_events, each of which would take many minutes to complete, even though it's only an index scan.
      Unverified
      b4b2fd2e
  19. May 21, 2021
  20. May 07, 2021
  21. Apr 27, 2021
  22. Apr 20, 2021
  23. Apr 14, 2021
  24. Apr 09, 2021
  25. Apr 08, 2021
  26. Apr 06, 2021
  27. Mar 29, 2021
  28. Mar 10, 2021
  29. Mar 08, 2021
  30. Feb 17, 2021
  31. Feb 16, 2021
  32. Jan 18, 2021
  33. Jan 15, 2021
Loading