Age | Commit message (Collapse) | Author |
|
|
|
* Upgrade various dependencies
* Yaml dependency too
|
|
|
|
|
|
* Update 1_planning.md
Modes section of the planning component of the documentation rewritten for grammar and clarity.
* Update 1_planning.md
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
* Add `QueryRestrictedJoinAllowed`
* Add `Resident` flag to `QueryRestrictedJoinAllowedResponse`
* Check restricted joins on federation API
* Return `Restricted` to determine if the room was restricted or not
* Populate `AuthorisedVia` properly
* Sign the event on `/send_join`, return it in the `/send_join` response in the `"event"` key
* Kick back joins with invalid authorising user IDs, use event from `"event"` key if returned in `RespSendJoin`
* Use invite helper in `QueryRestrictedJoinAllowed`
* Only use users with the power to invite, change error bubbling a bit
* Placate the almighty linter
One day I will nuke `gocyclo` from orbit and everything in the world will be much better for it.
* Review comments
|
|
matrix-org/gomatrixserverlib#313)
|
|
|
|
|
|
using `/rooms/{roomID}/state` (#2482)
|
|
Signed-off-by: Aaron Ogle <aaron@geekgonecrazy.com>
|
|
request (#2481)
|
|
matrix-org/gomatrixserverlib#312)
|
|
|
|
* Update to matrix-org/gomatrixserverlib#311
* Update to squash commit
|
|
* Fix /deactivate
* Update test to correctly check the expected response
|
|
* syncapi: don't return early for no-op incremental syncs
Comments explain why, but basically it's an inefficient use
of bandwidth and some sytests rely on /sync to block.
* Honour timeouts
* Actually return a response with timeout=0
|
|
* Really SKIP_NODB
* Use fatalError in createLocalDB
* Check if createdb exists
* Revert change
* Remove !Quiet
|
|
* bugfix: fix race condition when updating presence via /sync
Previously when presence is updated via /sync, we would send the presence update
asyncly via NATS. This created a race condition:
- If the presence update is processed quickly, the /sync which triggered the presence
update would see an online presence.
- If the presence update was processed slowly, the /sync which triggered the presence
update would see an offline presence.
This is the root cause behind the flakey sytest: 'User sees their own presence in a sync'.
The fix is to ensure we update the database/advance the stream position synchronously
for local users.
* Bugfix for test
|
|
|
|
* Fix flakey sytest 'Local device key changes get to remote servers'
* Debug logs
* Remove internal/test and use /test only
Remove a lot of ancient code too.
* Use FederationRoomserverAPI in more places
* Use more interfaces in federationapi; begin adding regression test
* Linting
* Add regression test
* Unbreak tests
* ALL THE LOGS
* Fix a race condition which could cause events to not be sent to servers
If a new room event which rewrites state arrives, we remove all joined hosts
then re-calculate them. This wasn't done in a transaction so for a brief period
we would have no joined hosts. During this interim, key change events which arrive
would not be sent to destination servers. This would sporadically fail on sytest.
* Unbreak new tests
* Linting
|
|
|
|
* Add Room Aliases tests
* Add Rooms table test
* Move StateKeyTuplerSorter to the types package
* Add StateBlock tests
Some optimizations
* Add State Snapshot tests
Some optimization
* Return []int64 and convert to pq.Int64Array for postgres
* Move []types.EventNID back to rows.Next()
* Update tests, rename SelectRoomIDs
|
|
* Version 0.8.5
* Update changelog
* Update changelog
|
|
correct
|
|
|
|
* Feed existing state into state res when calculating state from new extremities
* Remove duplicates
* Fix bug
* Sort and unique
* Update to matrix-org/gomatrixserverlib#308
* Trim the slice properly
* Update gomatrixserverlib again
* Update to matrix-org/gomatrixserverlib#308
|
|
|
|
|
|
|
|
* Update sample configs
* Update references
* Remove sections that are dead in the monolith sample
|
|
* Fix create-account with global database settings
* Avoid warning about open registration
|
|
|
|
* Fix OTK spam
* Update comment
* Optimize selectKeysCountSQL to only return max 100 keys
* Return CurrentPosition if the request timed out
* Revert "Return CurrentPosition if the request timed out"
This reverts commit 7dbdda964189f5542048c06ce5ffc6d4da1814e6.
Co-authored-by: kegsay <kegan@matrix.org>
|
|
|
|
|
|
* WIP tests for flakey create event
* Uncomment all database test
|
|
Fixes https://github.com/matrix-org/complement/pull/369
|
|
* Add invite table tests; move variable declarations
* Add Membership table tests
* Move variable declarations
* Add PrevEvents table tests
* Add Published table test
* Add Redactions tests
Fix bug in SQLite markRedactionValidatedSQL
* PR comments, better readability for invite tests
|
|
|
|
(#2446)
|
|
This creates problems with non-HTTPS endpoints and should fix #2444.
|
|
Co-authored-by: kegsay <kegan@matrix.org>
|
|
* Version 0.8.3
* Update changelog
|
|
* Add very basic syncapi tests
* Add a way to inject jetstream messages
* implement add_state_ids
* bugfixes
* Unbreak tests
* Remove now un-needed API call
* Linting
|
|
|