aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-05-26Version 0.8.6 (#2497)v0.8.6Neil Alexander
2022-05-26Upgrade various dependencies (#2496)Neil Alexander
* Upgrade various dependencies * Yaml dependency too
2022-05-26Update to matrix-org/gomatrixserverlib#314Neil Alexander
2022-05-26Make logging output for state deletions a bit betterNeil Alexander
2022-05-25Update 1_planning.md (#2467)Brandon
* 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>
2022-05-25Try to spot state deletions when they happen (#2489)Neil Alexander
2022-05-25Mark room versions 8 and 9 as stableNeil Alexander
2022-05-25Fix using the remote provided event from `/send_join` (#2490)Neil Alexander
2022-05-25Fix the `resolve-state` toolNeil Alexander
2022-05-25Restricted join support on `/make_join`, `/send_join` (#2478)Neil Alexander
* 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
2022-05-24Allow authing invited user in rooms with `"restricted"` join rule (update to ↵Neil Alexander
matrix-org/gomatrixserverlib#313)
2022-05-24Fix `join_authorised_via_users_server` key name in `SendEvent`Neil Alexander
2022-05-24Give PL100 to invited users in `trusted_private_chat` preset (#2485)Neil Alexander
2022-05-24Strip `join_authorised_by_users_server` when updating membership events ↵Neil Alexander
using `/rooms/{roomID}/state` (#2482)
2022-05-24Handle invite in appservice roomserver consumer (#2476)Aaron Ogle
Signed-off-by: Aaron Ogle <aaron@geekgonecrazy.com>
2022-05-23Preserve content from `/make_join` as well as supplied content in the ↵Neil Alexander
request (#2481)
2022-05-23Fix control flow related to joining restricted v8/v9 rooms (update to ↵Neil Alexander
matrix-org/gomatrixserverlib#312)
2022-05-23Allow defers to run in `TestMain` in federation API testsNeil Alexander
2022-05-23Update to matrix-org/gomatrixserverlib#311 (#2479)Neil Alexander
* Update to matrix-org/gomatrixserverlib#311 * Update to squash commit
2022-05-20Fix `/deactivate` (#2474)Till
* Fix /deactivate * Update test to correctly check the expected response
2022-05-19syncapi: don't return early for no-op incremental syncs (#2473)kegsay
* 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
2022-05-18Really SKIP_NODB (#2472)Till
* Really SKIP_NODB * Use fatalError in createLocalDB * Check if createdb exists * Revert change * Remove !Quiet
2022-05-17bugfix: fix race condition when updating presence via /sync (#2470)kegsay
* 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
2022-05-17Remove debug loggingKegan Dougal
2022-05-17bugfix: E2EE device keys could sometimes not be sent to remote servers (#2466)kegsay
* 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
2022-05-17Add docs which explain how to calculate coverage (#2468)kegsay
2022-05-16Add roomserver tests (3/4) (#2447)Till
* 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
2022-05-13Version 0.8.5 (#2461)v0.8.5Neil Alexander
* Version 0.8.5 * Update changelog * Update changelog
2022-05-13The Pinecone `gobind` demo must listen on `localhost` for `baseURL` to be ↵Neil Alexander
correct
2022-05-13Update README.mdNeil Alexander
2022-05-13Resolve over old and new extremities (#2457)Neil Alexander
* 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
2022-05-13Update NATS Server to version 2.8.2 (#2460)Neil Alexander
2022-05-13Only try to get OTKs if the context isn't done yetTill Faelligen
2022-05-13Shuffle config Verify/Defaults a bit around (#2459)Till
2022-05-12Separate sample configs for monolith and polylith (#2456)Neil Alexander
* Update sample configs * Update references * Remove sections that are dead in the monolith sample
2022-05-12Fix `create-account` with global database settings (#2455)Till
* Fix create-account with global database settings * Avoid warning about open registration
2022-05-12Wait 100ms for events to be processed by syncapiKegan Dougal
2022-05-11Fix OTK upload spam (#2448)Till
* 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>
2022-05-11Fix linkNeil Alexander
2022-05-11New documentation: https://matrix-org.github.io/dendrite/Neil Alexander
2022-05-11More syncapi tests (#2451)kegsay
* WIP tests for flakey create event * Uncomment all database test
2022-05-11Add RoomExists flag to QueryMembershipForUser (#2450)kegsay
Fixes https://github.com/matrix-org/complement/pull/369
2022-05-10Add roomserver tests (2/?) (#2445)Till
* 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
2022-05-10Version 0.8.4v0.8.4Neil Alexander
2022-05-10Add indexes to `syncapi_output_room_events` table that satisfy the filters ↵Neil Alexander
(#2446)
2022-05-10Back out matrix-org/dendrite#2421 by restoring `http.Client`sNeil Alexander
This creates problems with non-HTTPS endpoints and should fix #2444.
2022-05-09🏗️ mediaapi/thumbnailer: fix build with bimg (#2440)database64128
Co-authored-by: kegsay <kegan@matrix.org>
2022-05-09Version 0.8.3 (#2431)v0.8.3Neil Alexander
* Version 0.8.3 * Update changelog
2022-05-09Begin adding syncapi component tests (#2442)kegsay
* 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
2022-05-09Don't store invites in sync API that aren't relevant to local users (#2439)Neil Alexander