Commit graph

155 commits

Author SHA1 Message Date
806bbfcbfc tests: iam router 2026-06-02 16:12:17 +01:00
65a9514be6 fix: drop superfluous column in usergroups
Group org is assigned in the Group table. Also assigning it in the UserGroups table complicated relationship creation and it was never used.
2026-06-02 16:11:52 +01:00
6f174deefc tests: db seeding change 2026-06-02 16:10:16 +01:00
b8b5b6dbd3 fix: permission search typing 2026-06-02 15:55:50 +01:00
ae0181c3ff fix: create permission endpoint
Verifies service exists before attaching permission.

Response built manually because calculated properties are not handled by .__dict()__

Request model uses Service ID mixin.

Service ID mixin verifies ID > 0
2026-06-02 15:36:05 +01:00
5d1606aa9d fix: permission search changed to post
Get requests cannot have bodies.
2026-06-02 15:13:00 +01:00
511480dffe fix: wrong org dependency in get perms 2026-06-02 14:44:30 +01:00
9403e9291f minor: >0 user id in bodies 2026-06-02 14:40:24 +01:00
3052565258 fix: userschema config
Required for Pydantic to map a SQLAlchemy model to it.
2026-06-02 14:37:07 +01:00
2f4b7b8733 fix: missing org id in req 2026-06-02 14:21:05 +01:00
5ec1f2272a minor: >0 perm & group id in bodies 2026-06-02 14:18:04 +01:00
c6542f48c1 fix: multiple inverted conditionals 2026-06-02 13:52:52 +01:00
5104257a50 fix: missing org id in req body 2026-06-02 13:50:13 +01:00
3ea782d68f minor: min length on group name post 2026-06-02 13:37:42 +01:00
e4559b8ee4 minor: >0 check on org ids in bodies 2026-06-02 13:34:05 +01:00
7d109f0f73 fix: inverted conditional in get group users 2026-06-02 12:22:36 +01:00
d3400f53e4 tests: org router 2026-06-01 15:57:00 +01:00
c0d353077b test: db setup fix
Previous set up seemed to work but the db was persisting between tests, allowing for contamination.
2026-06-01 15:25:50 +01:00
fc6990c43d fix: patch org contact 2026-06-01 14:27:50 +01:00
d85b0d6cd6 fix: patch org root
Expanding the org model does not expand calculated properties
2026-06-01 13:07:42 +01:00
b8b6e6c7ee test: services router 2026-05-29 16:55:21 +01:00
c4b4000d62 fix: user response groups optional 2026-05-29 16:55:05 +01:00
7e89ab0afd test: broader db seeding 2026-05-29 16:54:37 +01:00
a2e18300b9 fix: post service extra db commit 2026-05-29 16:38:16 +01:00
79f8104f2f tests: user router 2026-05-29 15:18:19 +01:00
19145271ae tests: test init 2026-05-29 15:18:10 +01:00
1a81be210a fix: use dependency instead of db.next 2026-05-29 14:15:50 +01:00
2d60b4fcc5 feat: disable_auth also works in testing 2026-05-29 11:50:16 +01:00
05a405cbe6 tests: sqlite memory db when run in testing 2026-05-29 11:00:01 +01:00
53e01033c4 docs: org endpoint docstrings 2026-05-29 10:40:24 +01:00
8e8c00c34c feat: root user verification
New root users must already be members of the organisation.
2026-05-29 09:52:34 +01:00
da5099e172 minor: global exception names 2026-05-29 09:50:09 +01:00
4a97789c1a minor: global exception names 2026-05-29 09:47:37 +01:00
987a050b4b feat: org router response models 2026-05-29 09:44:24 +01:00
d404ab3ea3 fix: preapproval endpoints with new root path 2026-05-29 09:24:51 +01:00
90943c3d18 docs: org router query descriptions
Issue: #13
2026-05-28 16:52:10 +01:00
6a90e03d40 docs: org router tag metadata
Issue: #13
2026-05-28 16:46:44 +01:00
d3bdfe8469 docs: org router decorators
Issue: #13
2026-05-28 16:43:39 +01:00
cba04e4249 docs: user router summaries
Issue: #13
2026-05-28 16:11:54 +01:00
f7efbfcfc5 feat: api prefix
Resolves #15
2026-05-28 16:07:23 +01:00
f60d86e91d docs: doc guidelines in router template 2026-05-28 16:03:33 +01:00
ff4d36b4cd docs: service module endpoint summaries 2026-05-28 16:03:04 +01:00
01c49ca34c docs: module template docstrings 2026-05-28 15:41:10 +01:00
b3085e85fd docs: service router response details 2026-05-28 15:30:39 +01:00
aa7dc46533 docs: service router details 2026-05-28 15:25:29 +01:00
d03478637a fix: remove oidc audience requirement 2026-05-28 15:16:21 +01:00
6cfacad131 docs: iam model docstring
Issue: #13
2026-05-28 15:06:38 +01:00
e44e2bd627 docs: global docstrings
Issue: #13
2026-05-28 14:59:27 +01:00
43cb7e700d docs: user docstrings
Issue: #13
2026-05-28 14:55:44 +01:00
d852bda091 docs: service docstrings
Issue: #13
2026-05-28 14:41:11 +01:00