Commit Graph
5327 Commits
Author SHA1 Message Date
Quentin Gliech ce17ac2a36 build(deps): bump swagger-ui-dist from 5.26.2 to 5.27.0 in /frontend (#4799) 2025-07-18 19:14:22 +02:00
Quentin Gliech 94484a7bba build(deps): bump sigstore/cosign-installer from 3.9.1 to 3.9.2 (#4800) 2025-07-18 19:14:03 +02:00
dependabot[bot] 0f279204d7 build(deps): bump sigstore/cosign-installer from 3.9.1 to 3.9.2
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.9.1 to 3.9.2.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.9.1...v3.9.2)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-version: 3.9.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-18 14:06:14 +00:00
dependabot[bot] 2f0914d8b2 build(deps): bump swagger-ui-dist from 5.26.2 to 5.27.0 in /frontend
Bumps [swagger-ui-dist](https://github.com/swagger-api/swagger-ui) from 5.26.2 to 5.27.0.
- [Release notes](https://github.com/swagger-api/swagger-ui/releases)
- [Changelog](https://github.com/swagger-api/swagger-ui/blob/master/.releaserc)
- [Commits](https://github.com/swagger-api/swagger-ui/compare/v5.26.2...v5.27.0)

---
updated-dependencies:
- dependency-name: swagger-ui-dist
  dependency-version: 5.27.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-17 13:49:07 +00:00
Quentin Gliech a0cd5461fe Upgrade Clippy to Rust 1.87 (#4794) 2025-07-17 11:59:59 +02:00
Quentin Gliech 23797eef2c Merge branch 'main' into quenting/rust-1.87 2025-07-17 09:22:28 +02:00
Quentin Gliech b8480b1c97 Support M_USER_LOCKED error for compat sessions (#4789) 2025-07-17 09:17:14 +02:00
Quentin Gliech b83c747f37 Allow skipping GDPR-erasure when deactivating a user through the admin API (#4744) 2025-07-17 09:15:25 +02:00
Quentin Gliech 176c05938f New admin API endpoint to reactivate users & align what lock/unlock/deactivate does in the admin API (#4768) 2025-07-17 09:11:32 +02:00
Quentin Gliech 52c3a36bac Make the admin API provision users synchronously (#4788) 2025-07-17 09:07:41 +02:00
Andrew Ferrazzutti 8ac2770cf7 Revert GraphQL's unlock to also reactivate
Unlike the CLI and admin API, leave the behaviour of the GraphQL's
unlock handler unchanged from before, so as to not break internal
tooling that depends on it.

Also update its documentation description to make note of the fact that
it reactivates in addition to unlocks.
2025-07-16 14:17:01 -04:00
Andrew Ferrazzutti d807975137 Decouple (un)locking from (re/de)activation
Unify the admin API, CLI, and GraphQL API in not having the unlock
command also reactivate, or the deactivate command also lock.

Still let the unlock command of the CLI and GraphQL API to also
reactivate the target user, albeit as a non-default option.
2025-07-16 14:17:01 -04:00
Andrew Ferrazzutti df8032695a Satisfy Clippy 2025-07-16 14:17:01 -04:00
Andrew Ferrazzutti eca22d335b Format 2025-07-16 14:17:01 -04:00
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