Commit graph

651 commits

Author SHA1 Message Date
Neil Alexander 1f7c894066 Update sytest-whitelist 2020-01-23 17:36:08 +00:00
Neil Alexander 922f9cc285 Update sytest-blacklist 2020-01-23 17:17:35 +00:00
Neil Alexander 6735e412a4 Fix selectEventsWithEventIDsSQL 2020-01-23 16:58:12 +00:00
Neil Alexander f7f52986f3 Remove prevPDUPos as dead now that backwardTopologyPos is used instead 2020-01-23 16:03:55 +00:00
Neil Alexander fb69add0a6 Fix typo 2020-01-23 15:47:59 +00:00
Neil Alexander 72ea8efcfa Revert to topology tokens in addRoomDeltaToResponse etc 2020-01-23 15:42:49 +00:00
Neil Alexander 8e3035afd2 Remove extraneous sync position func 2020-01-23 15:39:03 +00:00
Neil Alexander 5dfbf0b2be Hopefully fix some of the sync batch tokens 2020-01-23 13:43:00 +00:00
Neil Alexander c6d0fa3fc2 Update sytest-whitelist 2020-01-23 10:58:57 +00:00
Neil Alexander 3aea9db5e4 Update pagination token test 2020-01-23 10:26:32 +00:00
Neil Alexander fb9fedcc7f Fix NewPaginationTokenFromString, define unit test for it 2020-01-23 10:00:18 +00:00
Neil Alexander fe707a163e Thwarted by gocyclo again 2020-01-22 18:16:42 +00:00
Neil Alexander 6cea9e8e67 Prevent OOB error in addRoomDeltaToResponse 2020-01-22 18:04:58 +00:00
Neil Alexander 86dc91846b Try insert event topology as ON CONFLICT DO NOTHING 2020-01-22 17:04:35 +00:00
Neil Alexander 61d488611e Handle extremities after inserting event into topology 2020-01-22 16:50:30 +00:00
Neil Alexander 40495491cb Don't overshadow err (fix lint issue) 2020-01-22 16:23:35 +00:00
Neil Alexander 83eee79d1b Merge branch 'master' into neilalexander/cs-messages 2020-01-22 16:13:58 +00:00
Andrew Morgan 43ecf8d1f9
Add more passing tests to the testfile, add test blacklist file (#848) 2020-01-22 16:11:40 +00:00
Andrew Morgan 0f8d6cc1c1
Add a Sytest blacklist file (#849) 2020-01-22 13:31:22 +00:00
Neil Alexander 415d5f7054 Remove dead code 2020-01-22 10:59:12 +00:00
Neil Alexander 399c2e7ef7 Fix opentracing span 2020-01-22 10:48:22 +00:00
Neil Alexander e0f57da701 argh whitespacing 2020-01-22 10:42:18 +00:00
Neil Alexander a5bccfd2f9 Some updates based on review comments from @babolivier 2020-01-22 10:37:42 +00:00
Neil Alexander f09c1d8b58 Some updates based on review comments from @babolivier 2020-01-22 10:34:01 +00:00
Neil Alexander 1366f25de2 Add a couple of missing functions into the syncapi external storage interface 2020-01-21 15:42:28 +00:00
Neil Alexander 481809aaad Fix lint errors 2020-01-21 12:49:25 +00:00
Neil Alexander 5f791f5e42 Fix PaginationTokens 2020-01-21 11:54:07 +00:00
Neil Alexander 2541946c1f Replace SyncPosition with PaginationToken throughout syncapi 2020-01-21 10:30:01 +00:00
Neil Alexander 50f26a3002 TODO: What to do with NextBatch here? 2020-01-20 16:27:41 +00:00
Neil Alexander 54838a7b7a Tidy up a bit 2020-01-20 16:06:25 +00:00
Neil Alexander 490c40f5f3 Merge forward 2020-01-20 15:56:52 +00:00
Neil Alexander ac96fd565b Identifier key login
Merge commit '56318dcca400b5ada4dfa4f8fac922522fc88128'
2020-01-20 11:37:23 +00:00
Neil Alexander 3bd023e74d
Federation fixes (#845)
* Update gomatrixserverlib to p2p commit 92c0338, other tweaks

* Update gomatrixserverlib to p2p commit e5dcc65

* Rewrite getAuthChain

* Update gomatrixserverlib in go.mod/go.sum

* Correct a couple of package refs for updated gmsl/gomatrix

* Update gomatrixserverlib ref in go.mod/go.sum

* Update getAuthChain comments following @babolivier review
2020-01-10 12:11:44 +00:00
Neil Alexander 9e489845eb Fix #842 - again... 2020-01-09 17:18:19 +00:00
Neil Alexander ee8e167844 Fix #842 2020-01-09 17:09:17 +00:00
Neil Alexander 714959126b
Fall back to postgres when database connection string parsing fails (#842)
* Fall back to postgres when parsing the database connection string for a URI schema fails

* Fix behaviour so that it really tries postgres when URL parsing fails and it complains about unknown schema if it succeeds
2020-01-09 17:03:36 +00:00
Andrew Morgan f7faf74528
Resync testfile with current sytest pass/fail (#832)
* Resync testfile with current sytest pass/fail

* Add displayname test
2020-01-09 16:40:30 +00:00
Andrew Morgan 6b2f461d52
make cmd directory path absolute in build.sh (#830) 2020-01-09 13:36:39 +00:00
Neil Alexander c28577ea25
Implement storage interfaces (#841)
* Implement interfaces for federationsender storage

* Implement interfaces for mediaapi storage

* Implement interfaces for publicroomsapi storage

* Implement interfaces for roomserver storage

* Implement interfaces for syncapi storage

* Implement interfaces for keydb storage

* common.PartitionStorer in publicroomsapi interface

* Update copyright notices
2020-01-03 14:07:05 +00:00
Neil Alexander 6cab622468
Amend syncapi SQL queries to return missing columns (#840)
* This commit updates a couple of the syncapi SQL queries to return additional columns that are required/expected by rowsToStreamEvents in output_room_events_table.go.

It's not exactly clear to me yet what transaction_id and session_id do, but these being added n #367 results in state events breaking the /sync endpoint.

This is a temporary fix. We need to come up with a better solution.

* gomatrix to gomatrixserverlib on some weird line change

* Tweaks from @babolivier review comments
2020-01-02 14:51:21 +00:00
Arshpreet 5741235833 replaced gometalinter description with golangci-lint (#837) 2019-12-25 18:28:10 +00:00
Andrew Morgan dc25fb6837
Move files back if linting fails (#810) 2019-12-25 18:14:58 +00:00
S7evinK b34fce0d85 Use gomatrixserverlib.Transaction instead of local type (#590) (#811) 2019-12-20 15:02:09 +00:00
S7evinK 4f75e4febe Fix copy & paste error (#812) 2019-12-20 15:00:25 +00:00
Neil Alexander 52dfa40471 docker: Passthrough parameters to dendrite-monolith-server 2019-12-20 14:46:59 +00:00
Will Hunt f1e229e9d4 AS should use the v1 endpoint, rather than r0 (#827) 2019-12-20 14:44:34 +00:00
Abhishek Kumar e2d73855eb Refuse /send_join without m.room.create (#824)
Signed-off-by: Abhishek Kumar <abhishekkumar2718@gmail.com>
2019-12-20 14:42:57 +00:00
Brendan Abolivier af9568ba44 Fix /send_join and /send_leave (#821)
Fix the /send_join and /send_leave endpoints, so that they use the v2 endpoints as mandated by MSC1802. Also comment out the SyTest tests that are failing because of lack of support for the v1 endpoints.
2019-12-20 14:41:32 +00:00
Neil Alexander b4d638cd04
Return server names (#833)
* Remove unnecessary map->array processing

* Return server names in room federation directory query

* Knock off a TODO
2019-12-20 13:24:57 +00:00
Andrew Morgan 24ac66cffd Merge branch 'anoa/fix_lint_ci' 2019-12-18 15:39:33 +00:00