Skip to content
Snippets Groups Projects
  1. Nov 04, 2021
  2. Nov 02, 2021
  3. Sep 23, 2021
  4. Jul 13, 2021
  5. Jul 05, 2021
  6. Jun 14, 2021
    • Richard van der Hoff's avatar
      Extend `ResponseCache` to pass a context object into the callback (#10157) · d7808a2d
      Richard van der Hoff authored
      This is the first of two PRs which seek to address #8518. This first PR lays the groundwork by extending ResponseCache; a second PR (#10158) will update the SyncHandler to actually use it, and fix the bug.
      
      The idea here is that we allow the callback given to ResponseCache.wrap to decide whether its result should be cached or not. We do that by (optionally) passing a ResponseCacheContext into it, which it can modify.
      d7808a2d
  7. Jun 02, 2021
  8. May 27, 2021
  9. May 24, 2021
  10. May 21, 2021
  11. May 14, 2021
  12. May 12, 2021
  13. May 11, 2021
    • Richard van der Hoff's avatar
      Merge pull request from GHSA-x345-32rc-8h85 · 03318a76
      Richard van der Hoff authored
      
      * tests for push rule pattern matching
      
      * tests for acl pattern matching
      
      * factor out common `re.escape`
      
      * Factor out common re.compile
      
      * Factor out common anchoring code
      
      * add word_boundary support to `glob_to_regex`
      
      * Use `glob_to_regex` in push rule evaluator
      
      NB that this drops support for character classes. I don't think anyone ever
      used them.
      
      * Improve efficiency of globs with multiple wildcards
      
      The idea here is that we compress multiple `*` globs into a single `.*`. We
      also need to consider `?`, since `*?*` is as hard to implement efficiently as
      `**`.
      
      * add assertion on regex pattern
      
      * Fix mypy
      
      * Simplify glob_to_regex
      
      * Inline the glob_to_regex helper function
      
      Signed-off-by: default avatarDan Callahan <danc@element.io>
      
      * Moar comments
      
      Signed-off-by: default avatarDan Callahan <danc@element.io>
      
      Co-authored-by: default avatarDan Callahan <danc@element.io>
      03318a76
  14. Apr 20, 2021
    • Patrick Cloke's avatar
      Always use the name as the log ID. (#9829) · b076bc27
      Patrick Cloke authored
      As far as I can tell our logging contexts are meant to log the request ID, or sometimes the request ID followed by a suffix (this is generally stored in the name field of LoggingContext). There's also code to log the name@memory location, but I'm not sure this is ever used.
      
      This simplifies the code paths to require every logging context to have a name and use that in logging. For sub-contexts (created via nested_logging_contexts, defer_to_threadpool, Measure) we use the current context's str (which becomes their name or the string "sentinel") and then potentially modify that (e.g. add a suffix).
      b076bc27
  15. Apr 14, 2021
  16. Apr 09, 2021
  17. Apr 08, 2021
  18. Mar 29, 2021
  19. Mar 08, 2021
  20. Feb 16, 2021
  21. Jan 22, 2021
  22. Jan 14, 2021
  23. Jan 11, 2021
  24. Jan 06, 2021
  25. Oct 30, 2020
  26. Oct 21, 2020
  27. Oct 19, 2020
  28. Oct 16, 2020
  29. Oct 14, 2020
  30. Sep 04, 2020
Loading