David Robertson
30262cdd2b
baaaaaaaaaaaaaaaaa
2022-03-14 18:42:01 +00:00
David Robertson
8664ceb24a
path
2022-03-14 18:42:01 +00:00
David Robertson
24367c207b
skippppp
2022-03-14 18:42:01 +00:00
David Robertson
951cad641e
Can I just use poetry?
2022-03-14 18:42:01 +00:00
David Robertson
0bee38ec68
need parameterized
2022-03-14 18:42:01 +00:00
David Robertson
a78bd18cda
blease work
2022-03-14 18:42:01 +00:00
David Robertson
7ababda710
BUMS
2022-03-14 18:42:01 +00:00
David Robertson
5eb215bf95
debug
2022-03-14 18:42:01 +00:00
David Robertson
28bec9f1cd
lol got the line wrong
2022-03-14 18:42:01 +00:00
David Robertson
e4fb42a12f
source venc. try again
2022-03-14 18:42:00 +00:00
David Robertson
964c937257
WIP
2022-03-14 18:42:00 +00:00
David Robertson
fbbd0d1d5c
Try to fix olddeps
2022-03-14 18:42:00 +00:00
David Robertson
fc10d933bc
TODO note
2022-03-14 18:42:00 +00:00
David Robertson
c8faad496e
Include test extra
...
I thought we might be able to get away without this and make it a dev
dependency only. But in olddeps it's easier to have this (otherwise I
have to worry about version conflicts between dev deps and the normal
deps).
lock the test extra
2022-03-14 18:41:58 +00:00
David Robertson
7db600a8b1
And try to fix export-data
2022-03-14 12:16:15 +00:00
David Robertson
a91b855cf9
Try and run portdb under poetry
...
attempt 3
2022-03-14 12:16:14 +00:00
David Robertson
fa0086ef3f
Attempt to use poetry env in docker container
...
Fix linter
Dockerfile tweaks
2022-03-14 12:16:12 +00:00
David Robertson
e22ae98188
Use trial directly, not via tox
...
Try to fix some tests??
2022-03-14 12:15:41 +00:00
David Robertson
74fe853c4e
Note version guard
2022-03-14 12:14:49 +00:00
David Robertson
0fe433c3c0
Use common linting workflow
...
Black, isort, flake8 don't need arguments now
2022-03-14 12:14:49 +00:00
David Robertson
70770811b1
Changelog
2022-03-14 12:14:48 +00:00
David Robertson
414a23ec69
Dirty duplication to make all work
2022-03-14 12:14:48 +00:00
David Robertson
1a25ef7e8d
Specify deps in pyproject.toml
...
- Nuke python_dependencies and setup.py
- Allow commiting poetry.lock
- Initial lockfile pulling in the latest version of deps at the time of locking
Anticipate typing-extensions bump from Sean
2022-03-14 12:14:47 +00:00
David Robertson
968638a856
Ignore .envrc for direnv users
2022-03-14 12:11:20 +00:00
David Robertson
85935ffb37
Nuke the tox packaging job
...
It only checked the manifest, and there is no manifest any more.
2022-03-14 12:11:20 +00:00
Patrick Cloke
54f674f7a9
Deprecate the groups/communities endpoints and add an experimental configuration flag. ( #12200 )
2022-03-12 13:23:37 -05:00
Shay
ef3619e61d
Add config settings for background update parameters ( #11980 )
2022-03-11 10:46:45 -08:00
Brendan Abolivier
e6a106fd5e
Implement a Jinja2 filter to extract localparts from email addresses ( #12212 )
2022-03-11 15:15:11 +00:00
reivilibre
4a53f35737
Improve code documentation for the typing stream over replication. ( #12211 )
2022-03-11 14:00:15 +00:00
Nick Mills-Barrett
735e89bd3a
Add an additional HTTP pusher + push rule tests. ( #12188 )
...
And rename the field used for caching from _id to _cache_key.
2022-03-11 08:45:26 -05:00
Brendan Abolivier
003cc6910a
Update the SSO username picker template to comply with SIWA guidelines ( #12210 )
...
Fixes https://github.com/matrix-org/synapse/issues/12205
2022-03-11 13:20:00 +00:00
Dirk Klimpel
32c828d0f7
Add type hints to tests/rest. ( #12208 )
...
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com >
2022-03-11 12:42:22 +00:00
Patrick Cloke
e10a2fe0c2
Add some type hints to the tests.handlers module. ( #12207 )
2022-03-11 07:07:15 -05:00
Patrick Cloke
bc9dff1d95
Remove unnecessary pass statements. ( #12206 )
2022-03-11 07:06:21 -05:00
Andrew Morgan
3b12f6d61b
Note that contributors can sign off privately ( #12204 )
...
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com >
2022-03-11 11:10:20 +00:00
Richard van der Hoff
483f2aa2ec
Retention test: avoid relying on state at purged events ( #12202 )
...
This test was relying on poking events which weren't in the database into
filter_events_for_client.
2022-03-11 10:33:49 +00:00
~creme
7577894bec
Document that most streams can only have a single writer. ( #12196 )
...
This includes the `typing`, `to_device`, `account_data`, `receipts`, and `presence`
streams (really anything except the `events` stream).
2022-03-10 18:15:19 +00:00
Shay
ed9aea42fa
fix misleading comment in check_events_for_spam ( #12203 )
2022-03-10 09:40:07 -08:00
reivilibre
72e7f1c420
Remove workaround introduced in Synapse v1.50.0rc1 for Mjolnir compatibility. Breaks compatibility with Mjolnir v1.3.1 and earlier. ( #11700 )
2022-03-10 15:53:23 +00:00
Patrick Cloke
ea27528b5d
Support stable identifiers for MSC3440: Threading ( #12151 )
...
The unstable identifiers are still supported if the experimental configuration
flag is enabled. The unstable identifiers will be removed in a future release.
2022-03-10 15:36:13 +00:00
Richard van der Hoff
52a947dc46
Updates to the Room DAG concepts development document ( #12179 )
...
Some stuff that came up while we were talking about #12173 .
2022-03-10 15:18:31 +00:00
Patrick Cloke
88cd6f9378
Allow retrieving the relations of a redacted event. ( #12130 )
...
This is allowed per MSC2675, although the original implementation did
not allow for it and would return an empty chunk / not bundle aggregations.
The main thing to improve is that the various caches get cleared properly
when an event is redacted, and that edits must not leak if the original
event is redacted (as that would presumably leak something similar to
the original event content).
2022-03-10 09:03:59 -05:00
Patrick Cloke
3e4af36bc8
Rename get_tcp_replication to get_replication_command_handler. ( #12192 )
...
Since the object it returns is a ReplicationCommandHandler.
This is clean-up from adding support to Redis where the command handler
was added as an additional layer of abstraction from the TCP protocol.
2022-03-10 13:01:56 +00:00
Sean Quah
a4c1fdb44a
Remove dead code in tests/storage/test_database.py ( #12197 )
...
Signed-off-by: Sean Quah <seanq@element.io >
2022-03-09 18:45:21 +00:00
Will Hunt
15382b1afa
Add third_party module callbacks to check if a user can delete a room and deactivate a user ( #12028 )
...
* Add check_can_deactivate_user
* Add check_can_shutdown_rooms
* Documentation
* callbacks, not functions
* Various suggested tweaks
* Add tests for test_check_can_shutdown_room and test_check_can_deactivate_user
* Update check_can_deactivate_user to not take a Requester
* Fix check_can_shutdown_room docs
* Renegade and use `by_admin` instead of `admin_user_id`
* fix lint
* Update docs/modules/third_party_rules_callbacks.md
Co-authored-by: Brendan Abolivier <babolivier@matrix.org >
* Update docs/modules/third_party_rules_callbacks.md
Co-authored-by: Brendan Abolivier <babolivier@matrix.org >
* Update docs/modules/third_party_rules_callbacks.md
Co-authored-by: Brendan Abolivier <babolivier@matrix.org >
* Update docs/modules/third_party_rules_callbacks.md
Co-authored-by: Brendan Abolivier <babolivier@matrix.org >
Co-authored-by: Brendan Abolivier <babolivier@matrix.org >
2022-03-09 18:23:57 +00:00
Patrick Cloke
690cb4f3b3
Allow for ignoring some arguments when caching. ( #12189 )
...
* `@cached` can now take an `uncached_args` which is an iterable of names to not use in the cache key.
* Requires `@cached`, @cachedList` and `@lru_cache` to use keyword arguments for clarity.
* Asserts that keyword-only arguments in cached functions are not accepted. (I tested this briefly and I don't believe this works properly.)
2022-03-09 18:07:41 +00:00
Patrick Cloke
032688854b
Remove some unused variables/parameters. ( #12187 )
2022-03-09 15:29:39 +00:00
Nick Mills-Barrett
180d8ff0d4
Retry some http replication failures ( #12182 )
...
This allows for the target process to be down for around a minute
which provides time for restarts during synapse upgrades/config updates.
Closes : #12178
Signed off by Nick Mills-Barrett nick@beeper.com
2022-03-09 14:53:28 +00:00
Richard van der Hoff
dc8d825ef2
Skip attempt to get state at backwards-extremities ( #12173 )
...
We don't *have* the state at a backwards-extremity, so this is never going to
do anything useful.
2022-03-09 11:00:48 +00:00
Patrick Cloke
9a0172d49f
Clean-up demo scripts & documentation ( #12143 )
...
* Rewrites the demo documentation to be clearer, accurate, and moves it to our documentation tree.
* Improvements to the demo scripts:
* `clean.sh` now runs `stop.sh` first to avoid zombie processes.
* Uses more modern Synapse configuration (and removes some obsolete configuration).
* Consistently use the HTTP ports for server name, etc.
* Remove the `demo/etc` directory and place everything into the `demo/808x` directories.
2022-03-08 15:02:59 -05:00