Commit Graph

1332 Commits

Author SHA1 Message Date
Quentin Gliech 1e78f37353 Merge pull request #733 from matrix-org/quenting/storage-repository
Repository pattern
2023-01-27 11:59:08 +01:00
Quentin Gliech e8537473a4 docs: link to rustdoc pages from the mdbook 2023-01-27 11:40:19 +01:00
Quentin Gliech 4d0a5d7c5b ci: deploy docs only on push to master 2023-01-27 11:19:48 +01:00
Quentin Gliech f4f292716f ci: fix the docs build 2023-01-27 11:18:11 +01:00
Quentin Gliech 4850c79711 Merge branch 'main' into quenting/storage-repository 2023-01-27 11:16:38 +01:00
Quentin Gliech 1b60c22678 ci: publish docs without pushing to the gh-pages branch 2023-01-27 10:49:41 +01:00
Quentin Gliech 4d53e210b3 axum-utils: remove an unnecessary ?Sized bound 2023-01-27 10:30:59 +01:00
Kévin Commaille 0c08e50846 Implement Clone on ClientCredentials 2023-01-26 18:14:59 +01:00
Kévin Commaille 2171265dcd Revert "Implement Clone on ClientCredentials"
This reverts commit 1f3fe4fdbc3cd0394c59588272d847185df04076.
2023-01-26 18:14:59 +01:00
Kévin Commaille d0c5eb3741 Implement Clone on ClientCredentials 2023-01-26 18:14:59 +01:00
Quentin Gliech 6ad8b82a35 storage{,-pg}: better documentation of both crates 2023-01-26 18:13:14 +01:00
Quentin Gliech 0bf1a1998e storage-pg: add tests for most remaining repositories
Also fixes all the list_paginated() repository methods
2023-01-26 15:51:53 +01:00
Quentin Gliech 3f4ad789bf storage-pg: write tests for the OAuth2 repositories 2023-01-25 17:24:34 +01:00
Quentin Gliech 90dbc5d6ff storage: document all the repository traits and methods 2023-01-25 16:09:36 +01:00
Quentin Gliech d14ca156ad storage: split the repository trait 2023-01-24 16:05:14 +01:00
Quentin Gliech 6a8c79c497 storage: impl Repository for Box<impl Repository + ?Sized> 2023-01-24 09:51:49 +01:00
Quentin Gliech a9facab131 Box the repository everywhere 2023-01-20 17:53:04 +01:00
Quentin Gliech f4c64c2171 storage: ensure the repository trait can be boxed
and define some wrappers to map the errors
2023-01-19 19:10:35 +01:00
Quentin Gliech 876bc9fcb3 handlers: extract the PgRepository from the request
Also fix a bunch of clippy errors & doctests
2023-01-18 18:22:13 +01:00
Quentin Gliech 9005931e2a handlers: box the rng and clock, and extract it from the state 2023-01-18 17:49:59 +01:00
Quentin Gliech 8c585b20f0 Fix rustfmt 2023-01-18 12:27:44 +01:00
Quentin Gliech 3798f25f7d Fix rustdoc lints 2023-01-18 12:25:49 +01:00
Quentin Gliech 142fdbd45a storage: make the Clock a trait 2023-01-18 12:20:30 +01:00
Quentin Gliech 73a921cc30 Split the storage trait from the implementation 2023-01-18 10:38:22 +01:00
Quentin Gliech b33a330b5f storage: don't use references for pagination 2023-01-17 16:44:22 +01:00
Quentin Gliech 5e32c218d5 storage: add tests for the upstream provider paginated list 2023-01-17 16:11:13 +01:00
Quentin Gliech 0d02864589 storage: simplify the paginated queries 2023-01-17 15:09:53 +01:00
Quentin Gliech 62be962c4e storage: test compat {session, access token, refresh token} repositories 2023-01-16 19:27:43 +01:00
Quentin Gliech 2b0566ebe9 storage: tests for the user {,email,password,session} repositories 2023-01-16 17:56:51 +01:00
Quentin Gliech 1344527934 storage: simplify pagination 2023-01-13 18:25:25 +01:00
Quentin Gliech 195203823a storage: wrap the postgres repository in a struct 2023-01-13 18:03:37 +01:00
Quentin Gliech 488a666a8d storage: remaining oauth2 repositories
- authorization grants
 - access tokens
 - refresh tokens
2023-01-12 18:26:04 +01:00
Quentin Gliech 36396c0b45 storage: repository pattern for the compat layer 2023-01-12 15:41:26 +01:00
dependabot[bot] ecf101fe2d build(deps): bump async-trait from 0.1.60 to 0.1.61
Bumps [async-trait](https://github.com/dtolnay/async-trait) from 0.1.60 to 0.1.61.
- [Release notes](https://github.com/dtolnay/async-trait/releases)
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.60...0.1.61)

---
updated-dependencies:
- dependency-name: async-trait
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-12 11:01:56 +01:00
dependabot[bot] d21733f73f build(deps): bump axum from 0.6.1 to 0.6.2
Bumps [axum](https://github.com/tokio-rs/axum) from 0.6.1 to 0.6.2.
- [Release notes](https://github.com/tokio-rs/axum/releases)
- [Changelog](https://github.com/tokio-rs/axum/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/axum/compare/axum-v0.6.1...axum-v0.6.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-12 10:34:37 +01:00
dependabot[bot] 50866cc1d2 build(deps): bump insta from 1.24.1 to 1.26.0
Bumps [insta](https://github.com/mitsuhiko/insta) from 1.24.1 to 1.26.0.
- [Release notes](https://github.com/mitsuhiko/insta/releases)
- [Changelog](https://github.com/mitsuhiko/insta/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mitsuhiko/insta/compare/1.24.1...1.26.0)

---
updated-dependencies:
- dependency-name: insta
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-12 10:11:52 +01:00
dependabot[bot] 51b3af1111 build(deps): bump camino from 1.1.1 to 1.1.2
Bumps [camino](https://github.com/camino-rs/camino) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/camino-rs/camino/releases)
- [Changelog](https://github.com/camino-rs/camino/blob/main/CHANGELOG.md)
- [Commits](https://github.com/camino-rs/camino/compare/camino-1.1.1...camino-1.1.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-12 10:06:47 +01:00
dependabot[bot] 87fa642671 build(deps): bump axum-macros from 0.3.0 to 0.3.1
Bumps [axum-macros](https://github.com/tokio-rs/axum) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/tokio-rs/axum/releases)
- [Changelog](https://github.com/tokio-rs/axum/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/axum/compare/axum-macros-v0.3.0...axum-macros-v0.3.1)

---
updated-dependencies:
- dependency-name: axum-macros
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-12 10:06:33 +01:00
Quentin Gliech 9f0c9f1466 storage: cleanup access/refresh token lookups 2023-01-11 12:14:52 +01:00
Quentin Gliech 920869b583 storage: do less joins in compat sessions 2023-01-10 18:49:35 +01:00
Quentin Gliech 35787aa072 data-model: have more structs use a state machine 2023-01-09 18:02:32 +01:00
Quentin Gliech 39cd9a2578 data-model: don't embed the client in the auth grant 2023-01-09 10:49:51 +01:00
dependabot[bot] 19d0c488e3 build(deps): bump tokio from 1.23.1 to 1.24.1
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.23.1 to 1.24.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.23.1...tokio-1.24.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-07 12:39:06 +01:00
dependabot[bot] 2499ddc296 build(deps): bump peaceiris/actions-gh-pages from 3.9.0 to 3.9.1
Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) from 3.9.0 to 3.9.1.
- [Release notes](https://github.com/peaceiris/actions-gh-pages/releases)
- [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md)
- [Commits](https://github.com/peaceiris/actions-gh-pages/compare/de7ea6f8efb354206b205ef54722213d99067935...64b46b4226a4a12da2239ba3ea5aa73e3163c75b)

---
updated-dependencies:
- dependency-name: peaceiris/actions-gh-pages
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-05 22:32:00 +01:00
dependabot[bot] 04c37560e8 build(deps): bump tokio from 1.23.0 to 1.23.1
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.23.0 to 1.23.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.23.0...tokio-1.23.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-05 22:01:38 +01:00
dependabot[bot] 1693ea7a83 build(deps-dev): bump @vitejs/plugin-react in /frontend
Bumps [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/vitejs/vite-plugin-react/releases)
- [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite-plugin-react/commits/plugin-react@3.0.1/packages/plugin-react)

---
updated-dependencies:
- dependency-name: "@vitejs/plugin-react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-05 22:01:26 +01:00
Quentin Gliech fb7c6f4dd1 storage: do less joins on authorization grants and refresh tokens 2023-01-05 16:49:19 +01:00
Quentin Gliech 603a26eabd storage: oauth2 session repository 2023-01-05 16:44:56 +01:00
dependabot[bot] fb222c7dec build(deps): bump insta from 1.24.0 to 1.24.1
Bumps [insta](https://github.com/mitsuhiko/insta) from 1.24.0 to 1.24.1.
- [Release notes](https://github.com/mitsuhiko/insta/releases)
- [Changelog](https://github.com/mitsuhiko/insta/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mitsuhiko/insta/compare/1.24.0...1.24.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-04 20:22:25 +01:00
Quentin Gliech 56741fb35c frontend: bump Storybook to 7.0.0-beta.19 2023-01-04 18:27:22 +01:00