Daniel Aloni
f0f7932f77
Merge branch 'main' into release/upstream-v0.13.5-16
2023-12-27 16:15:24 +02:00
Till
699f5ca8c1
More rows.Close() and rows.Err() ( #3262 )
...
Looks like we missed some `rows.Close()`
Even though `rows.Err()` is mostly not necessary, we should be more
consistent in the DB layer.
[skip ci]
2023-11-09 08:42:33 +01:00
Dan Peleg
5324826bfa
🔀 Merge 0.13.4-upstream
2023-10-31 00:44:08 +02:00
Dan Peleg
12d623149f
Merge 0.13.4 upstream
2023-10-30 22:28:31 +02:00
devonh
a0375d41fb
Add simple test for one time keys ( #3239 )
2023-10-25 10:13:18 +02:00
Till
297479ea49
Use pointer when passing the connection manager around ( #3152 )
...
As otherwise existing connections aren't reused.
2023-07-19 13:37:04 +02:00
Daniel Aloni
0e289d024f
Merge remote-tracking branch 'origin' into release/upstream-v0.13.1
2023-07-10 17:13:43 +03:00
santhoshivan23
45082d4dce
feat: admin APIs for token authenticated registration ( #3101 )
...
### Pull Request Checklist
<!-- Please read
https://matrix-org.github.io/dendrite/development/contributing before
submitting your pull request -->
* [x] I have added Go unit tests or [Complement integration
tests](https://github.com/matrix-org/complement ) for this PR _or_ I have
justified why this PR doesn't need tests
* [x] Pull request includes a [sign off below using a legally
identifiable
name](https://matrix-org.github.io/dendrite/development/contributing#sign-off )
_or_ I have already signed off privately
Signed-off-by: `Santhoshivan Amudhan santhoshivan23@gmail.com`
2023-06-22 16:37:21 +00:00
Daniel Aloni
206dbb32a3
🚨 Fix naked returns lint errors from new golangci-lint.
2023-06-19 16:37:25 +03:00
Till
d11da6ec7c
Fix newly found linter issues ( #3099 )
...
Fixes the issues found in
https://github.com/matrix-org/dendrite/actions/runs/5155539352/jobs/9285342056#step:5:22 .
Only naked returns in longer functions.
2023-06-02 15:48:04 +02:00
Daniel Aloni
74e795d23d
Merge remote-tracking branch 'ldap/syncloud' into daniel/ldap-integration
2023-04-30 14:55:50 +03:00
kegsay
72285b2659
refactor: update GMSL ( #3058 )
...
Sister PR to https://github.com/matrix-org/gomatrixserverlib/pull/364
Read this commit by commit to avoid going insane.
2023-04-19 15:50:33 +01:00
kegsay
0db43f13a6
refactor: use latest GMSL which splits fed client from matrix room logic ( #3051 )
...
Part of a series of refactors on GMSL.
2023-04-06 09:55:01 +01:00
kegsay
3691423626
Move GMSL client types to Dendrite ( #3045 )
...
GMSL is intended for Federation only. Sister PR to
https://github.com/matrix-org/gomatrixserverlib/pull/357
2023-04-04 17:16:53 +00:00
Till
5e85a00cb3
Remove BaseDendrite ( #3023 )
...
Removes `BaseDendrite` to, hopefully, make testing and composing of
components easier in the future.
2023-03-22 09:21:32 +01:00
Till
5579121c6f
Preparations for removing BaseDendrite ( #3016 )
...
Preparations to actually remove/replace `BaseDendrite`.
Quite a few changes:
- SyncAPI accepts an `fulltext.Indexer` interface (fulltext is removed
from `BaseDendrite`)
- Caches are removed from `BaseDendrite`
- Introduces a `Router` struct (likely to change)
- also fixes #2903
- Introduces a `sqlutil.ConnectionManager`, which should remove
`base.DatabaseConnection` later on
- probably more
2023-03-17 11:09:45 +00:00
Daniel Aloni
c550c2e8cb
Merge remote-tracking branch 'origin' into release/upstream-v0.12.0
2023-03-15 12:30:11 +02:00
Till Faelligen
1aa70b0f56
Fix UTs
2023-03-01 15:09:10 +01:00
Till
4594233f89
Merge keyserver & userapi ( #2972 )
...
As discussed yesterday, a first draft of merging the keyserver and the
userapi.
2023-02-20 14:58:03 +01:00
Till
f0805071d5
Fix SQLite session_id ( #2977 )
...
This fixes an issue with device_id/session_ids.
If a `device_id` is reused, we would reuse the same `session_id`, since
we delete one device and insert a new one directly, resulting in the
query to get a new `session_id` to return the previous session_id.
(`SELECT count(access_token)`)
2023-02-17 11:39:46 +01:00
Daniel Aloni
9147d20018
✅ Fix unit tests.
2023-01-09 11:22:37 +02:00
Daniel Aloni
84ced96ce0
Merge clean merge with dirty merge to resolve conflicts for CI
2023-01-09 10:27:13 +02:00
Daniel Aloni
3b1d3b75ea
Merge upstream 0.10.8
2023-01-09 09:46:09 +02:00
danielaloni
c1b2f2514d
Merge remote-tracking branch 'origin' into release/upstream_v0.10.8
2023-01-04 10:21:08 +02:00
PiotrKozimor
b772f9ee78
Allow for only one pusher for given pushkey and app ID - remove pushers duplicates ( #50 )
2022-11-14 08:56:52 +01:00
Neil Alexander
529df30b56
Virtual hosting schema and logic changes ( #2876 )
...
Note that virtual users cannot federate correctly yet.
2022-11-11 16:41:37 +00:00
danielaloni
5c07b88b0d
Merge remote-tracking branch 'origin' into release/upstream-0.10.7
2022-11-07 10:50:36 +02:00
danielaloni
843f180cc9
Merge remote-tracking branch 'origin' into release/upstream-0.10.6
2022-11-03 13:25:17 +02:00
Till
86b25a6337
Add message stats to reporting ( #2748 )
...
Since we're now listening on the `OutputRoomEvent` stream, we are able
to store messages stats.
2022-11-02 10:18:11 +00:00
Till Faelligen
869bf4d0ac
Fix flakey stats tests
2022-11-01 08:39:16 +01:00
danielaloni
d1f3bf502e
🐛 Remove all 3pids and not just the first one.
2022-10-31 13:17:36 +02:00
Daniel Aloni
bc17086f63
Merge pull request #44 from globekeeper/release/upstream_0.10.4
...
Release/upstream 0.10.4
2022-10-27 17:57:41 +03:00
danielaloni
fb14a2d917
🐛 account_accounts table renamed to userapi_accounts.
2022-10-27 16:45:42 +03:00
Daniel Aloni
b3d7d80be7
Merge pull request #43 from globekeeper/daniel/inhibit_device
...
Daniel/inhibit device
2022-10-26 16:19:13 +03:00
danielaloni
b9173ba072
🐛 Create new device if provided an empty string pointer.
2022-10-26 15:22:04 +03:00
danielaloni
b5e65427ba
Merge remote-tracking branch 'origin' into release/upstream_0.10.4
2022-10-26 13:21:00 +03:00
Till
e57b301722
Set display_name and/or avatar_url for server notices ( #2820 )
...
This should fix #2815 by making sure we actually set the `display_name`
and/or `avatar_url` and create the needed membership event.
To avoid creating a new membership event when starting Dendrite,
`SetAvatarURL` and `SetDisplayName` now return a `Changed` value, which
also makes the regular endpoints idempotent.
2022-10-21 10:48:25 +02:00
Neil Alexander
3aa92efaa3
Namespace user API tables ( #2806 )
...
This migrates all the various user API tables, indices and sequences to
be `userapi_`-namespaced, rather than the mess they are all now.
2022-10-18 15:59:08 +01:00
Piotr Kozimor
b2fcf0e4d9
Merge branch 'main' into release/upstream-0.10.3
2022-10-18 13:20:47 +02:00
Till Faelligen
fb44e33909
Relax test a bit
2022-10-14 10:37:04 +02:00
Neil Alexander
fb6cb2dbcb
Tweak GetAccountByPassword more
2022-10-10 11:14:16 +01:00
Neil Alexander
980fa55846
Stronger passwordless account checks ( fixes #2780 )
2022-10-10 10:39:29 +01:00
danielaloni
1a5c48b9d0
Merge branch 'main' into release/upstream-0.10.1
2022-10-06 16:35:13 +03:00
Till
249b32c4f3
Refactor notifications ( #2688 )
...
This PR changes the handling of notifications
- removes the `StreamEvent` and `ReadUpdate` stream
- listens on the `OutputRoomEvent` stream in the UserAPI to inform the
SyncAPI about unread notifications
- listens on the `OutputReceiptEvent` stream in the UserAPI to set
receipts/update notifications
- sets the `read_markers` directly from within the internal UserAPI
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2022-09-27 15:01:34 +02:00
Neil Alexander
3e87096a21
Use TxStmt in SQLite pusher table
2022-09-26 09:54:54 +01:00
Till Faelligen
3c416517b0
Fix possible "Database is locked" issue
2022-09-26 10:45:35 +02:00
Neil Alexander
34e1dc210b
Use database writer in user API DeleteOldNotifications
2022-09-09 12:59:28 +01:00
Till
64472d9aab
Update getting pushrules, add tests, tweak pushrules ( #2705 )
...
This PR
- adds tests for `evaluatePushrules`
- removes the need for the UserAPI on the `OutputStreamEventConsumer`
(for easier testing)
- adds a method to get the pushrules from the database
- adds a new default pushrule for `m.reaction` events (and some other
tweaks)
2022-09-09 13:56:33 +02:00
Piotr Kozimor
4aaa80a56e
Merge branch 'main' into release/upstream
2022-08-22 14:45:25 +02:00
PiotrKozimor
83e9d2d83c
Fix guests that were created by migration a users again ( #23 )
...
* Fix guests that were created accidentally by migration a users again
* Check for errors in ExpirePresence
2022-08-08 18:20:09 +02:00