Commit Graph
5463 Commits
Author SHA1 Message Date
Andrew Ferrazzutti 6c1afee13d Separate active state from lock state in admin API
- Allow the admin API to deactivate a user without locking it, and to
  unlock a user without reactivating it.
- Make unlock-and-reactivate flows unset the "deactivated_at" timestamp.
- Revert adding an "unlock" parameter on `ReactivateUserJob`, as the
  option is used only by the admin API which doesn't use a job.
2025-07-16 14:17:01 -04:00
Andrew Ferrazzutti 13a21cc018 Update schema 2025-07-16 14:17:01 -04:00
Andrew Ferrazzutti a8b8c8e31c Add admin API endpoint to reactivate user 2025-07-16 14:17:01 -04:00
Andrew Ferrazzutti 6183cae84e Format 2025-07-16 13:42:14 -04:00
Andrew Ferrazzutti 05827d1e40 Don't return locked error for deactivated users
When a user is both locked and deactivated, give precedence to
deactivation errors over locked errors, as a locked error suggests that
unlocking the user would make it available.
2025-07-16 13:38:15 -04:00
Quentin Gliech aee585c7c2 Upgrade Rust and Clippy to 1.87 2025-07-16 19:24:20 +02:00
Quentin Gliech ed566a9fbf Use Path::display() instead of the debug representation 2025-07-16 19:23:06 +02:00
Quentin Gliech 3076276171 Rename Claim::claim to Claim::value 2025-07-16 19:23:06 +02:00
Quentin Gliech 63a47aa41b Box all the figment errors to avoid large enum differences 2025-07-16 19:23:06 +02:00
Quentin Gliech e2aad08006 Miscellaneous housekeeping (#4735) 2025-07-16 18:53:59 +02:00
Quentin Gliech c86ba8adba build(deps): bump the tanstack-query group in /frontend with 2 updates (#4791) 2025-07-16 18:48:09 +02:00
Quentin Gliech ce9c696812 build(deps-dev): bump @types/node from 24.0.12 to 24.0.13 in /frontend in the types group (#4783) 2025-07-16 18:48:00 +02:00
Quentin Gliech 523e9c7685 build(deps): bump @vector-im/compound-design-tokens from 5.0.1 to 5.0.2 in /frontend (#4784) 2025-07-16 18:47:55 +02:00
dependabot[bot] 3b855fbcc8 build(deps): bump the tanstack-query group in /frontend with 2 updates
Bumps the tanstack-query group in /frontend with 2 updates: [@tanstack/react-query](https://github.com/TanStack/query/tree/HEAD/packages/react-query) and [@tanstack/react-query-devtools](https://github.com/TanStack/query/tree/HEAD/packages/react-query-devtools).


Updates `@tanstack/react-query` from 5.82.0 to 5.83.0
- [Release notes](https://github.com/TanStack/query/releases)
- [Commits](https://github.com/TanStack/query/commits/v5.83.0/packages/react-query)

Updates `@tanstack/react-query-devtools` from 5.82.0 to 5.83.0
- [Release notes](https://github.com/TanStack/query/releases)
- [Commits](https://github.com/TanStack/query/commits/v5.83.0/packages/react-query-devtools)

---
updated-dependencies:
- dependency-name: "@tanstack/react-query"
  dependency-version: 5.83.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: tanstack-query
- dependency-name: "@tanstack/react-query-devtools"
  dependency-version: 5.83.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: tanstack-query
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-16 16:13:53 +00:00
dependabot[bot] 344c318666 build(deps): bump @vector-im/compound-design-tokens in /frontend
Bumps [@vector-im/compound-design-tokens](https://github.com/vector-im/compound-design-tokens) from 5.0.1 to 5.0.2.
- [Release notes](https://github.com/vector-im/compound-design-tokens/releases)
- [Changelog](https://github.com/element-hq/compound-design-tokens/blob/main/docs/release.md)
- [Commits](https://github.com/vector-im/compound-design-tokens/compare/v5.0.1...v5.0.2)

---
updated-dependencies:
- dependency-name: "@vector-im/compound-design-tokens"
  dependency-version: 5.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-16 16:13:44 +00:00
Quentin Gliech 5a78bad2b9 build(deps): bump the tanstack-router group in /frontend with 3 updates (#4790) 2025-07-16 18:12:23 +02:00
dependabot[bot] 6744e1fbda build(deps): bump the tanstack-router group in /frontend with 3 updates
Bumps the tanstack-router group in /frontend with 3 updates: [@tanstack/react-router](https://github.com/TanStack/router/tree/HEAD/packages/react-router), [@tanstack/react-router-devtools](https://github.com/TanStack/router/tree/HEAD/packages/react-router-devtools) and [@tanstack/router-plugin](https://github.com/TanStack/router/tree/HEAD/packages/router-plugin).


Updates `@tanstack/react-router` from 1.127.0 to 1.127.3
- [Release notes](https://github.com/TanStack/router/releases)
- [Commits](https://github.com/TanStack/router/commits/v1.127.3/packages/react-router)

Updates `@tanstack/react-router-devtools` from 1.127.0 to 1.127.3
- [Release notes](https://github.com/TanStack/router/releases)
- [Commits](https://github.com/TanStack/router/commits/v1.127.3/packages/react-router-devtools)

Updates `@tanstack/router-plugin` from 1.127.0 to 1.127.5
- [Release notes](https://github.com/TanStack/router/releases)
- [Commits](https://github.com/TanStack/router/commits/v1.127.5/packages/router-plugin)

---
updated-dependencies:
- dependency-name: "@tanstack/react-router"
  dependency-version: 1.127.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: tanstack-router
- dependency-name: "@tanstack/react-router-devtools"
  dependency-version: 1.127.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: tanstack-router
- dependency-name: "@tanstack/router-plugin"
  dependency-version: 1.127.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: tanstack-router
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-16 13:18:24 +00:00
dependabot[bot] 62268cd208 build(deps-dev): bump @types/node in /frontend in the types group
Bumps the types group in /frontend with 1 update: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node).


Updates `@types/node` from 24.0.12 to 24.0.13
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 24.0.13
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: types
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-16 13:18:02 +00:00
Andrew Ferrazzutti 0d613a5203 Always add users synchronously with admin API 2025-07-15 12:08:47 -04:00
Andrew Ferrazzutti e792b62828 Update schema 2025-07-15 12:08:33 -04:00
Andrew Ferrazzutti d9d424323c Let admin API add users synchronously
as opposed to always launching an asynchronous worker job.

This allows callers to have a guarantee that the user is fully created
by the time it receives the response to the user creation request.
2025-07-15 12:08:33 -04:00
Andrew Ferrazzutti d7037c5599 Satisfy Clippy 2025-07-15 11:19:41 -04:00
Andrew Ferrazzutti 82e3ea6c9b Add test coverage
Also update snapshots for token values affected by state changes
2025-07-15 11:19:19 -04:00
Andrew Ferrazzutti 8e19d986cf Check for compat session locking earlier 2025-07-15 11:19:19 -04:00
Andrew Ferrazzutti 8dedf6b25a Support M_USER_LOCKED error for compat sessions 2025-07-15 11:19:19 -04:00
matrixbot 872d7257ce Automatic merge back to main (#4793) 2025-07-15 17:03:29 +02:00
Quentin Gliech f8944b6ef3 Merge branch 'main' into ref-merge/7463ed4ba9395708362e095f33bc381ca47e1b6a 2025-07-15 16:55:49 +02:00
github-actions[bot] 7463ed4ba9 0.19.0 v0.19.0 2025-07-15 14:42:33 +00:00
matrixbot e1bac3201a Translations updates for v0.19 (#4792) 2025-07-15 16:25:41 +02:00
github-actions[bot] 48ffa014b1 Translations updates 2025-07-15 14:14:54 +00:00
Andrew Ferrazzutti 49f2daeaa9 Negate erase option and make optional
This makes it more intuitive for an empty request body to be equivalent
to the option being set to false.
2025-07-14 01:02:51 -04:00
Andrew Ferrazzutti f41743c71b Merge with 'main' 2025-07-14 00:30:36 -04:00
Quentin Gliech dee5902129 build(deps): bump the tanstack-router group in /frontend with 3 updates (#4782) 2025-07-11 18:48:15 +02:00
dependabot[bot] 37101d8f96 build(deps): bump the tanstack-router group in /frontend with 3 updates
Bumps the tanstack-router group in /frontend with 3 updates: [@tanstack/react-router](https://github.com/TanStack/router/tree/HEAD/packages/react-router), [@tanstack/react-router-devtools](https://github.com/TanStack/router/tree/HEAD/packages/react-router-devtools) and [@tanstack/router-plugin](https://github.com/TanStack/router/tree/HEAD/packages/router-plugin).


Updates `@tanstack/react-router` from 1.125.6 to 1.127.0
- [Release notes](https://github.com/TanStack/router/releases)
- [Commits](https://github.com/TanStack/router/commits/v1.127.0/packages/react-router)

Updates `@tanstack/react-router-devtools` from 1.125.6 to 1.127.0
- [Release notes](https://github.com/TanStack/router/releases)
- [Commits](https://github.com/TanStack/router/commits/v1.127.0/packages/react-router-devtools)

Updates `@tanstack/router-plugin` from 1.125.6 to 1.127.0
- [Release notes](https://github.com/TanStack/router/releases)
- [Commits](https://github.com/TanStack/router/commits/v1.127.0/packages/router-plugin)

---
updated-dependencies:
- dependency-name: "@tanstack/react-router"
  dependency-version: 1.127.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: tanstack-router
- dependency-name: "@tanstack/react-router-devtools"
  dependency-version: 1.127.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: tanstack-router
- dependency-name: "@tanstack/router-plugin"
  dependency-version: 1.127.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: tanstack-router
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-11 14:06:52 +00:00
Andrew Ferrazzutti bad090adb5 Merge with 'main' 2025-07-11 09:50:38 -04:00
Quentin Gliech 57af270ffa Allow running jobs from the job queue in tests (#4775) 2025-07-11 14:47:23 +02:00
Andrew Ferrazzutti 1101dd95e8 Force optional request body for JSON schema 2025-07-10 13:26:58 -04:00
matrixbot 1c36430035 Automatic merge back to main (#4781) 2025-07-10 17:28:11 +02:00
github-actions[bot] 99f347f6f2 0.19.0-rc.1 v0.19.0-rc.1 2025-07-10 15:22:00 +00:00
Quentin Gliech 9958c3b7c4 build(deps): bump the tanstack-query group in /frontend with 2 updates (#4778) 2025-07-10 17:17:29 +02:00
Quentin Gliech d061f0d809 build(deps): bump clap from 4.5.40 to 4.5.41 (#4779) 2025-07-10 17:17:06 +02:00
Quentin Gliech e394cac988 build(deps): bump rustls from 0.23.28 to 0.23.29 (#4780) 2025-07-10 17:16:50 +02:00
Quentin Gliech de8006394e Make back-channel logout work on existing sessions (#4767) 2025-07-10 17:14:18 +02:00
Quentin Gliech 80f2ceaa9d Make email address lookups case-insensitive (#4763) 2025-07-10 17:12:54 +02:00
dependabot[bot] 0cb0d4e3c3 build(deps): bump rustls from 0.23.28 to 0.23.29
Bumps [rustls](https://github.com/rustls/rustls) from 0.23.28 to 0.23.29.
- [Release notes](https://github.com/rustls/rustls/releases)
- [Changelog](https://github.com/rustls/rustls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustls/rustls/compare/v/0.23.28...v/0.23.29)

---
updated-dependencies:
- dependency-name: rustls
  dependency-version: 0.23.29
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-10 14:10:23 +00:00
dependabot[bot] 3d671adeff build(deps): bump clap from 4.5.40 to 4.5.41
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.40 to 4.5.41.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.40...clap_complete-v4.5.41)

---
updated-dependencies:
- dependency-name: clap
  dependency-version: 4.5.41
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-10 14:09:57 +00:00
dependabot[bot] 98e3a48e67 build(deps): bump the tanstack-query group in /frontend with 2 updates
Bumps the tanstack-query group in /frontend with 2 updates: [@tanstack/react-query](https://github.com/TanStack/query/tree/HEAD/packages/react-query) and [@tanstack/react-query-devtools](https://github.com/TanStack/query/tree/HEAD/packages/react-query-devtools).


Updates `@tanstack/react-query` from 5.81.5 to 5.82.0
- [Release notes](https://github.com/TanStack/query/releases)
- [Commits](https://github.com/TanStack/query/commits/v5.82.0/packages/react-query)

Updates `@tanstack/react-query-devtools` from 5.81.5 to 5.82.0
- [Release notes](https://github.com/TanStack/query/releases)
- [Commits](https://github.com/TanStack/query/commits/v5.82.0/packages/react-query-devtools)

---
updated-dependencies:
- dependency-name: "@tanstack/react-query"
  dependency-version: 5.82.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: tanstack-query
- dependency-name: "@tanstack/react-query-devtools"
  dependency-version: 5.82.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: tanstack-query
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-10 14:07:05 +00:00
Quentin Gliech 6661d739a3 build(deps): bump @vector-im/compound-design-tokens from 4.0.5 to 5.0.1 in /frontend (#4771) 2025-07-10 15:27:22 +02:00
Quentin Gliech b2a2ba07bf Upgrade @vector-im/compound-web as well 2025-07-10 15:20:52 +02:00
Quentin Gliech bbefa5a6e9 Fix link title (#4776) 2025-07-10 14:31:38 +02:00