aboutsummaryrefslogtreecommitdiff
path: root/go.sum
AgeCommit message (Collapse)Author
2022-08-30Fix the Cat Overflow bug (update to matrix-org/gomatrixserverlib@2020bdc)Neil Alexander
2022-08-29Default to limit of 20 state eventsTill Faelligen
2022-08-28Enforce `type`, `sender`, `state_key` and `room_id` lengths using codepoints ↵Neil Alexander
rather than bytes (update to matrix-org/gomatrixserverlib@5f66df0, matrix-org/matrix-spec#1001)
2022-08-25SyncAPI tweaks/fixes (#2671)Till
- Reverts 9dc57122d991d54ea6750448ba88c8763a569830 as it was causing issues https://github.com/matrix-org/dendrite/issues/2660 - Updates the GMSL `DefaultStateFilter` to use a limit of 20 events - Uses the timeline events to determine the new position instead of the state events
2022-08-15Version 0.9.3v0.9.3Neil Alexander
2022-08-12Update NATS Server and nats.go librariesNeil Alexander
2022-08-11Implement history visibility on `/messages`, `/context`, `/sync` (#2511)Till
* Add possibility to set history_visibility and user AccountType * Add new DB queries * Add actual history_visibility changes for /messages * Add passing tests * Extract check function * Cleanup * Cleanup * Fix build on 386 * Move ApplyHistoryVisibilityFilter to internal * Move queries to topology table * Add filtering to /sync and /context Some cleanup * Add passing tests; Remove failing tests :( * Re-add passing tests * Move filtering to own function to avoid duplication * Re-add passing test * Use newly added GMSL HistoryVisibility * Update gomatrixserverlib * Set the visibility when creating events * Default to shared history visibility * Remove unused query * Update history visibility checks to use gmsl Update tests * Remove unused statement * Update migrations to set "correct" history visibility * Add method to fetch the membership at a given event * Tweaks and logging * Use actual internal rsAPI, default to shared visibility in tests * Revert "Move queries to topology table" This reverts commit 4f0d41be9c194a46379796435ce73e79203edbd6. * Remove noise/unneeded code * More cleanup * Try to optimize database requests * Fix imports * PR peview fixes/changes * Move setting history visibility to own migration, be more restrictive * Fix unit tests * Lint * Fix missing entries * Tweaks for incremental syncs * Adapt generic changes Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com> Co-authored-by: kegsay <kegan@matrix.org>
2022-08-03Update PineconeNeil Alexander
2022-08-01Update NATS Server and nats.go to use upstreamNeil Alexander
2022-07-25Remove `room_id` field from MSC2946 stripped events (closes #2588)Neil Alexander
2022-07-25Update database migrations, remove goose (#2264)Till
* Add new db migration * Update migrations Remove goose * Add possibility to test direct upgrades * Try to fix WASM test * Add checks for specific migrations * Remove AddMigration Use WithTransaction Add Dendrite version to table * Fix linter issues * Update tests * Update comments, outdent if * Namespace migrations * Add direct upgrade tests, skipping over one version * Split migrations * Update go version in CI * Fix copy&paste mistake * Use contexts in migrations Co-authored-by: kegsay <kegan@matrix.org> Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2022-07-18History visibility database changes (#2533)Till
* Add new history_visibility column * Update SQL queries to include history_visibility * Store the history visibilty calculated by the roomserver * Update GMSL * Update migrations * Fix migration * Update GMSL * Fix `go.sum` * Update GMSL to use sql.Scanner & sql.Valuer * Re-order migration/table creation * Update gomatrixserverlib * Add history_visibility column to current_room_state * Fix migrations * Return error instead of Fatal log Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2022-07-13Use `/v3` to request media from remote servers (update to ↵Neil Alexander
matrix-org/gomatrixserverlib#324)
2022-07-11Ristretto cache (#2563)Neil Alexander
* Try Ristretto cache * Tweak * It's beautiful * Update GMSL * More strict keyable interface * Fix that some more * Make less panicky * Don't enforce mutability checks for now * Determine mutability using deep equality * Tweaks * Namespace keys * Make federation caches mutable * Update cost estimation, add metric * Update GMSL * Estimate cost for metrics better * Reduce counters a bit * Try caching events * Some guards * Try again * Try this * Use separate caches for hopefully better hash distribution * Fix bug with admitting events into cache * Try to fix bugs * Check nil * Try that again * Preserve order jeezo this is messy * thanks VS Code for doing exactly the wrong thing * Try this again * Be more specific * aaaaargh * One more time * That might be better * Stronger sorting * Cache expiries, async publishing of EDUs * Put it back * Use a shared cache again * Cost estimation fixes * Update ristretto * Reduce counters a bit * Clean up a bit * Update GMSL * 1GB * Configurable cache sizees * Tweaks * Add `config.DataUnit` for specifying friendly cache sizes * Various tweaks * Update GMSL * Add back some lazy loading caching * Include key in cost * Include key in cost * Tweak max age handling, config key name * Only register prometheus metrics if requested * Review comments @S7evinK * Don't return errors when creating caches (it is better just to crash since otherwise we'll `nil`-pointer exception everywhere) * Review comments * Update sample configs * Update GHA Workflow * Update Complement images to Go 1.18 * Remove the cache test from the federation API as we no longer guarantee immediate cache admission * Don't check the caches in the renewal test * Possibly fix the upgrade tests * Update to matrix-org/gomatrixserverlib#322 * Update documentation to refer to Go 1.18
2022-07-08Update Pinecone to matrix-org/pinecone@1ce778fNeil Alexander
2022-07-01Try to fix backfilling (#2548)Till
* Try to fix backfilling * Return start/end to not confuse clients * Update GMSL * Update GMSL
2022-06-27Fix nats.go commit (#2540)Jean Lucas
Signed-off-by: Jean Lucas <jean@4ray.co>
2022-06-13Handle state before, send history visibility in output (#2532)Neil Alexander
* Check state before event * Tweaks * Refactor a bit, include in output events * Don't waste time if soft failed either * Tweak control flow, comments, use GMSL history visibility type
2022-06-07Optimise state res v2 by only updating the allower when necessary (update to ↵Neil Alexander
matrix-org/gomatrixserverlib@e55d796)
2022-06-07Optimise state res v2 by parsing power level content less often (update to ↵Neil Alexander
matrix-org/gomatrixserverlib@e938c07)
2022-06-01Fix bugs related to state resolution (#2507)Neil Alexander
* Fix bugs related to state resolution * Clean up `resolve-state` * Don't panic when entries can't be found * Ensure we have state entries for the auth events * Revert "Ensure we have state entries for the auth events" This reverts commit 9b13b7ed37f40ce6d1301d9cb423a27b0db9c897. * Revert "Revert "Ensure we have state entries for the auth events"" This reverts commit d86db197e3e317f7d64ec6722cc60533872f4617. * Fix bug * Try that again * Update gomatrixserverlib * Remove recursion from `loadAuthEvents`
2022-05-30Add support for room version 10 (update to matrix-org/gomatrixserverlib#315)Neil Alexander
2022-05-26Add support for MSC3787 and `org.matrix.msc3787` room version (update to ↵Neil Alexander
matrix-org/gomatrixserverlib#310)
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-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-24Allow authing invited user in rooms with `"restricted"` join rule (update to ↵Neil Alexander
matrix-org/gomatrixserverlib#313)
2022-05-23Fix control flow related to joining restricted v8/v9 rooms (update to ↵Neil Alexander
matrix-org/gomatrixserverlib#312)
2022-05-23Update to matrix-org/gomatrixserverlib#311 (#2479)Neil Alexander
* Update to matrix-org/gomatrixserverlib#311 * Update to squash commit
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-09Add roomserver tests (1/?) (#2434)Till
* Add EventJSONTable tests * Add eventJSON tests * Add EventStateKeysTable tests * Add EventTypesTable tests * Add Events Table tests Move variable declaration outside loops Switch to testify/assert for tests * Move variable declaration outside loop * Remove random data * Fix issue where the EventReferenceSHA256 is not set * Add more tests * Revert "Fix issue where the EventReferenceSHA256 is not set" This reverts commit 8ae34c4e5f78584f0edb479f5a893556d2b95d19. * Update GMSL * Add tests for duplicate entries * Test what happens if we select non-existing NIDs * Add test for non-existing eventType * Really update GMSL
2022-05-09Update to matrix-org/gomatrixserverlib#307Neil Alexander
2022-05-06Fix power level event auth bugs (update to matrix-org/gomatrixserverlib#306)Neil Alexander
2022-05-06Produce more useful event auth errors (update to ↵Neil Alexander
matrix-org/gomatrixserverlib#305)
2022-05-05Update to matrix-org/gomatrixserverlib#303Neil Alexander
2022-05-05Use `gomatrixserverlib.Client` instead of `http.Client` (#2421)Neil Alexander
* Update to matrix-org/gomatrixserverlib#303 * Use `gomatrixserverlib.Client` for phone-home stats * Use `gomatrixserverlib.Client` for push notifications * Use `gomatrixserverlib.Client` for appservices * Use `gomatrixserverlib.Client` for three-PID invites
2022-04-27Prevent JetStream from handling OS signals, allow running as a Windows ↵Neil Alexander
service (#2385) * Prevent JetStream from handling OS signals, allow running as a Windows service (fixes #2374) * Remove double import
2022-04-21Remove libp2p demos (#2337)Neil Alexander
* Remove libp2p demos * Put it back
2022-04-20Update to NATS Server v2.8.0 and nats.go v1.14.0 (#2359)Neil Alexander
2022-04-19Update `go-sqlite3-js` to matrix-org/go-sqlite3-js#2 (SQLite 3.36.0)Neil Alexander
2022-04-11Correctly use provided filters (#2339)Till
* Apply filters correctly * Fix issues; Use prepareWithFilters * Update gmsl & tests * go.mod.. * PR comments
2022-04-08Update to matrix-org/pinecone@2999ea2Neil Alexander
2022-04-08Update to matrix-org/pinecone@9b3963248c9bdc22cf0789bc3ca58e8f274371e6Neil Alexander
2022-04-08Update dependencies (#2336)Neil Alexander
2022-04-05Update to matrix-org/gomatrixserverlib#300Neil Alexander
2022-04-04Update to matrix-org/gomatrixserverlib#299Neil Alexander
2022-04-04Update to matrix-org/pinecone@e526fa8Neil Alexander
2022-03-30Update Pinecone P2P demoNeil Alexander