Maximilian Seifert
a657ca4978
Merge branch 'master' into fix-database-errors-601
2020-01-05 18:27:05 +01: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
Andrew Morgan
f392ce8ed7
URL decode args
2019-12-18 15:29:27 +00:00
Andrew Morgan
9b5d6c9745
Refactor InstrumentHandlerCounter definition
2019-12-18 15:10:53 +00:00
Andrew Morgan
2baf5baa75
re-add temporarily missing deps?
2019-12-17 17:05:39 +00:00
Andrew Morgan
de5d463dd2
goimports
2019-12-17 16:54:21 +00:00
Andrew Morgan
8fb2c9c33c
Replace deprecated prometheus.InstrumentHandler and unsafe time.Ticker
2019-12-17 16:47:45 +00:00
Maximilian Seifert
1171b5c999
Merge branch 'master' into fix-database-errors-601
2019-10-30 21:51:51 +01:00
Andrew Morgan
145921f207
Pin golangci-lint version to non-broken one ( #809 )
2019-10-08 12:20:37 +01:00
Alex Chen
e959927d0a
selectAccountDataByType shouldn't error when no rows ( #804 )
...
Signed-off-by: Alex Chen <minecnly@gmail.com>
2019-10-07 13:15:58 +01:00
Andrew Morgan
9a56cf8439
Add AppService to test config and bind addrs ( #800 )
...
Because our unit tests are often forgotten about :/
2019-10-04 17:08:00 +01:00
aditsachde
7d77538ca4
patch dendrite microservices with bind config ( #795 )
...
This PR adds a block in the dendrite config for the services to bind to. The microservices should bind to the addresses in the bind block, and will be contacted at the address in the listen block.
This fixes an issue with the microservices and kubernetes services.
2019-10-02 10:29:27 +01:00
Alex Chen
3e2bb8bf2f
Clean up CircleCI leftovers ( #801 )
2019-10-02 11:01:52 +08:00
Maximilian Seifert
ca588f30f6
Drop related tables prior to running tests
2019-10-01 22:17:01 +02:00
Alex Chen
e239fb10f3
Add missing servers field in /directory/room/:alias response ( #732 )
2019-10-02 00:09:47 +08:00
Andrew Morgan
ce09d7c498
lint
2019-10-01 11:24:59 +01:00
Behouba Manassé
49fd47c863
selectAccountDataByType return ClientEvent pointer instead of slice of ClientEvent ( #798 )
...
This pull request is an attempt to fix #773 .
Signed-off-by: Kouame Behouba Manassé behouba@gmail.com
2019-09-30 17:25:04 +01:00
Andrew Morgan
6c104038c0
Merge branch 'master' of github.com:matrix-org/dendrite into fix-database-errors-601
2019-09-26 15:00:57 +01:00
Andrew Morgan
7b454bdd27
Remove CircleCI ( #793 )
...
Sytest has been switched to Buildkite. As such the `.circleci` folder has been removed.
2019-09-26 14:27:14 +01:00
Andrew Morgan
e91942c9e4
Add 'Can paginate public room list' to testfile ( #797 )
2019-09-26 14:20:34 +01:00
Maximilian Seifert
8df64db353
Fix: DeviceID → SessionID
2019-09-25 21:33:11 +02:00
Maximilian Seifert
a87effe020
Add *~ to gitignore
2019-09-25 20:54:40 +02:00
Maximilian Seifert
fa3a6e2787
Merge branch 'master' into fix-database-errors-601
2019-09-25 20:54:03 +02:00
Maximilian Seifert
f6ac51bad6
Fix broken local DB test
...
Committing transactions DOES help, who could have foreseen this.
Also: expose the PostgreSQL port 5432 to local 15432 via docker-compose
file. Please point me to a cleaner solution, as that port-mapping is clearly not
required except for testing.
Signed-off-by: Maximilian Seifert <max.seifert@drglitch.net>
2019-08-30 23:18:49 +02:00
Alex Chen
5e25f6ba22
Set up queryAPI in federationsender ( #791 )
2019-08-24 01:25:10 +08:00
Alex Chen
43308d2f3f
Associate transactions with session IDs instead of device IDs ( #789 )
2019-08-24 00:55:40 +08:00
Alex Chen
5eb63f1d1e
Add joined hosts query APIs ( #781 )
...
This adds two joined hosts query APIs to the federation sender for use of other components.
2019-08-22 19:47:52 +08:00
Maximilian Seifert
e58a7c92e9
Add passing test to testfile
2019-08-20 20:47:40 +02:00
Maximilian Seifert
81126c21d9
Fix broken symbols due to rename
...
Also: rename SyncServerDatabase to SyncServerDatasource in comment in
syncserver.go
2019-08-20 20:46:50 +02:00
Maximilian Seifert
9f63d9f0c3
Return nil early on fail
2019-08-20 20:46:50 +02:00
Maximilian Seifert
5c8296236d
Remove superfluous scripts and docker-compose-test
...
This MR should now comply with the current environment as Travis-CI is
no longer in use.
Signed-off-by: Maximilian Seifert <max.seifert@drglitch.net>
2019-08-20 20:46:50 +02:00
Maximilian Seifert
050e44cfd0
Initially connect to postgres DB when creating dendrite DB
...
Signed-off-by: Maximilian Seifert <max.seifert@drglitch.net>
2019-08-20 20:46:50 +02:00
Maximilian Seifert
e53c293a70
go fmt && fix dataSources
...
Signed-off-by: Maximilian Seifert <max.seifert@drglitch.net>
2019-08-20 20:46:50 +02:00
Maximilian Seifert
7edf1a038a
Use travis' postgres for testing
...
Signed-off-by: Maximilian Seifert <max.seifert@drglitch.net>
2019-08-20 20:46:50 +02:00
Maximilian Seifert
8b8b55d0a6
Correction of database connector string
...
Signed-off-by: Maximilian Seifert <max.seifert@drglitch.net>
2019-08-20 20:46:50 +02:00
Maximilian Seifert
db50a1d69e
Run travis tests in monolith_test
...
Signed-off-by: Maximilian Seifert <max.seifert@drglitch.net>
2019-08-20 20:46:50 +02:00
Maximilian Seifert
80d3ad96b2
Alter test data to pass sanitation checks
...
Signed-off-by: Maximilian Seifert <max.seifert@drglitch.net>
2019-08-20 20:46:50 +02:00
Maximilian Seifert
812aec1829
Cleanup code according to lint
...
Signed-off-by: Maximilian Seifert <max.seifert@drglitch.net>
2019-08-20 20:46:50 +02:00
Maximilian Seifert
101f922ddc
Select db connect string according to execution environment
...
Signed-off-by: Maximilian Seifert <max.seifert@drglitch.net>
2019-08-20 20:46:50 +02:00