| Commit message (Collapse) | Author | Files | Lines |
|
|
|
via registration file "users" namespace:
```YAML
...
namespaces:
users:
- exclusive: true
regex: '.*luke.*'
group_id: '+all_the_lukes:hsdomain'
...
```
This is part of giving App Services their own groups for matching users. With this, ghost users will be given the appeareance that they are in a group and that they have publicised the fact, but _only_ from the perspective of the `get_publicised_groups_for_user` API.
|
|
|
|
|
|
|
|
This restores the config that is usable for prometheus pre v2.0.0
The new config only works for Prometheus v2+
|
|
|
|
|
|
|
|
... so that we don't need to secretly gut-wrench it for use in the slaved
stores. I haven't done the other stores yet, but we should. I'm tired of the
workers breaking every time we tweak the stores because I forgot to gut-wrench
the right method.
fixes https://github.com/matrix-org/synapse/issues/2655.
|
|
We're going to fix this properly on this branch, so that the _state_group_cache
can end up in StateGroupReadStore.
This reverts commit ab335edb023d66cd0be439e045b10ca104b73cb5.
|
|
Both of these functions ae known to leak logcontexts. Replace the remaining
calls to them and kill them off.
|
|
I'm not entirely sure if this will actually help anything, but it simplifies
the code and might give further clues about why room list search requests are
blowing out the get_current_state_ids caches.
|
|
So we can see what it gets up to.
|
|
Signed-off-by: Travis Ralston <travpc@gmail.com>
|
|
because we had to wait until the logger was set up
|
|
Fix the test to pass the right number of args to the Store constructors
|
|
Add db_conn parameters to the `__init__` methods of the *Store classes, so that
they are all consistent, which makes the multiple inheritance work correctly
(and so that we can later extract mixins which can be used in the slavedstores)
|
|
This reverts commit f5cf3638e9c6086e1c33ddad8eda9298cf53a58e.
|
|
|
|
Useful for applications which may have an access token, but no idea as to who owns it.
Signed-off-by: Travis Ralston <travpc@gmail.com>
|
|
|
|
Reshuffle the caching logic in the url_preview handler so that failures are
cached (and to generally simplify things and fix the logcontext leaks).
|
|
Explain why we don't validate userids registered via app services
|
|
|
|
If somebody sends us a request where the the body is invalid utf-8, we should
return a 400 rather than a 500. (json.loads throws a UnicodeError in this
situation)
We might as well catch all Exceptions here: it seems very unlikely that we
would get a request that *isn't caused by invalid json.
|
|
Force username to lowercase before attempting to register
https://github.com/matrix-org/synapse/issues/2660
|
|
This reverts commit b70b64690330c25cbd04c1b2cacf8276b566efc8.
|
|
Because we're never going to be able to fix this :'(
|
|
|
|
|
|
|
|
make sure we actually return a value from user_delete_access_tokens
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The redact_content option never worked because it read the wrong config
section. The PR introducing it
(https://github.com/matrix-org/synapse/pull/2301) had feedback suggesting the
name be changed to not re-use the term 'redact' but this wasn't
incorporated.
This reanmes the option to give it a less confusing name, and also
means that people who've set the redact_content option won't suddenly
see a behaviour change when upgrading synapse, but instead can set
include_content if they want to.
This PR also updates the wording of the config comment to clarify
that this has no effect on event_id_only push.
Includes https://github.com/matrix-org/synapse/pull/2422
|
|
|
|
|
|
Fixes a bug where the persisted state groups were different to those actually
being used after auth resolution.
|
|
This is duplicated, so let's factor it out before fixing it
|
|
this is internal to statestore, so let's keep it there.
|
|
This reverts commit f9b255cd62fe724e16b2222f6af623b2d39282ab, reversing
changes made to 1bd654dabde776bbb7ee365c115b307cd6a110b8.
|
|
|
|
|
|
|
|
|
|
Add some logging to the Limiter in a similar spirit to the Linearizer, to help
debug issues.
Also fix a logcontext leak.
Also refactor slightly to avoid throwing exceptions.
|