Commit Graph

2053 Commits

Author SHA1 Message Date
Iain Sproat b73a87975b Merge branch 'main' into iain/preview-service-handle-errors 2025-03-27 15:37:48 +00:00
Iain Sproat d788253f92 fix 2025-03-27 14:52:06 +00:00
Iain Sproat d4c3ccd548 Use zod to split job id 2025-03-27 14:22:12 +00:00
Kristaps Fabians Geikins c54d15fd93 feat: authz frontend foundation + reworked errors (#4275)
* feat: authz frontend foundation + reworked errors

* lint fixes

* test fix

* fixed noCache() util
2025-03-27 16:13:35 +02:00
Kristaps Fabians Geikins 20789281e1 chore: back to 1 extra region in tests (#4277)
* chore: back to 1 extra region in tests

* chore: back to 1 extra region in tests

* commenting out multiple multiregion tests
2025-03-27 15:28:00 +02:00
Iain Sproat ae817ef2ee Merge branch 'main' into iain/preview-service-handle-errors 2025-03-27 11:22:36 +00:00
Gergő Jedlicska 4c28697d0c feat(shared): rework policy internals to work with loader errors in checks and policy fragments (#4276)
* feat(shared): rework policy internals to work with loader errors in checks and policy fragments

* fix(server): auth reintegration
2025-03-27 11:30:54 +01:00
Alessandro Magionami 1bc66ff4ad Merge pull request #4259 from specklesystems/alessandro/web-2867-expose-used-and-available-seats
Alessandro/web 2867 expose used and available seats
2025-03-26 11:03:03 +01:00
Alessandro Magionami a38bbd4066 feat(workspaces): add viewers count 2025-03-26 10:24:14 +01:00
Iain Sproat 9c21e4c596 remove unused test 2025-03-26 09:12:00 +00:00
Iain Sproat ccca51b70d fix missing await 2025-03-26 09:03:52 +00:00
Iain Sproat b82e0dd370 Merge branch 'main' into iain/preview-service-handle-errors 2025-03-26 08:50:37 +00:00
Alessandro Magionami f433e3016c chore(workspaces): fix build 2025-03-26 09:36:42 +01:00
Iain Sproat 66e19a92b6 Merge pull request #4202 from specklesystems/iain/web-2811-new-preview-service-pods-stuck-on-terminating
fix(preview service): handle shutdown via terminus
2025-03-26 08:29:57 +00:00
Alessandro Magionami 3102a75d3b Merge branch 'main' of github.com:specklesystems/speckle-server into alessandro/web-2867-expose-used-and-available-seats 2025-03-26 09:21:12 +01:00
Alessandro Magionami 5d6d0769fd Merge pull request #4236 from specklesystems/alessandro/web-2803-downscale-workspace-subscription
Alessandro/web 2803 downscale workspace subscription
2025-03-26 09:14:41 +01:00
Kristaps Fabians Geikins a6a4ceee86 feat: true-myth result structures & other auth policy improvements (#4262)
* fixing up typing

* better dynamic loader mechanism

* buildReqLoaders cleanup

* added caching to loaders

* ensuring all loaders are async

* fe2 plugins error handling fix

* feat(shared): true-myth result structures & other auth policy improvements

* moving workspaceCore loaders to correct place
2025-03-25 17:49:02 +01:00
Alessandro Magionami ddae24eedf chore(workspaces): add test and make product selection more robust 2025-03-25 17:40:09 +01:00
Iain Sproat a555fc1c1a Merge branch 'main' into iain/web-2811-new-preview-service-pods-stuck-on-terminating 2025-03-25 16:32:55 +00:00
Alessandro Magionami 55648c3125 Merge branch 'main' of github.com:specklesystems/speckle-server into alessandro/web-2867-expose-used-and-available-seats 2025-03-25 15:26:12 +01:00
Kristaps Fabians Geikins f76a2c34d3 chore: add no floating promises lint rule (#4249)
* chore: add no floating promises lint rule

* minor cleanup

* fix test by only running if node 22 or greater

---------

Co-authored-by: Iain Sproat <68657+iainsproat@users.noreply.github.com>
2025-03-25 13:36:49 +02:00
Alessandro Magionami ba2152f2d3 chore(workspaces): disable test if FF workspaces is off 2025-03-25 10:27:08 +01:00
Alessandro Magionami c27cb6c686 Merge branch 'main' of github.com:specklesystems/speckle-server into alessandro/web-2867-expose-used-and-available-seats 2025-03-25 09:48:03 +01:00
Alessandro Magionami eaf3b3a479 feat(gatekeeper): seats counts 2025-03-25 09:47:13 +01:00
Chuck Driesler c6e0714bc4 chore(authz): hoist authorizeresolver (#4253)
* chore(authz): hoist deleteStreamAndNotify

* chore(authz): hoist updateStreamAndNotify

* chore(authz): comment
2025-03-24 16:51:19 +00:00
Alessandro Magionami 37bc9efed0 Merge pull request #4248 from specklesystems/alessandro/web-2858-add-seat-type-to-workspaceteamfilter
feat(workspaces): add filter by seatType in workspace team
2025-03-24 15:43:39 +01:00
Alessandro Magionami 800547309a chore(workspaces): create table helper for subscriptions table 2025-03-24 15:42:54 +01:00
Alessandro Magionami cd39e18d9b chore(workspaces): fix linter 2025-03-24 15:31:02 +01:00
Kristaps Fabians Geikins 6d8b1007f0 fix: workspace projects infinite loading bug (#4252)
* fix(server): user streams query pagination

* fix(fe2): fe infinitely asking for broken pagination
2025-03-24 15:46:59 +02:00
Alessandro Magionami 01042e9d2d Merge branch 'main' of github.com:specklesystems/speckle-server into alessandro/web-2803-downscale-workspace-subscription 2025-03-24 11:06:33 +01:00
Alessandro Magionami 6a09d07c59 feat(workspaces): fix filter type 2025-03-24 11:05:38 +01:00
Alessandro Magionami 9429e47b93 feat(workspaces): add filter by seatType in workspace team 2025-03-24 10:29:36 +01:00
Gergő Jedlicska 25d0802234 fix(server): project access fix for discoverable projects (#4246) 2025-03-22 15:42:35 +01:00
Gergő Jedlicska 968d2f2520 auth/lib (#4242)
* wip

* wip

* feat(authz): wip policy shape

* wip

* fix(authz): canReadProject with latest pattern

* wip

* feat(shared): simplify authz checks and policies

* feat(shared): port role weights into shared

* test(shared): some more tests for authz

* test(shared): more query project tests

* typo!

* feat(shared): ff loading refinements

* feat(shared): example authorization policy integration

* authz loaders init

* chore(authz): naming etc

* wip

* fix(authz): authz error objects

Co-authored-by: Kristaps Fabians Geikins <fabis94@users.noreply.github.com>
Co-authored-by: Gergő Jedlicska <gjedlicska@users.noreply.github.com>

* fix(authz): use correct role weights

* chore(authz): use codes from errors in tests

* chore(authz): wow

* chore(authz): fix more tests, add more tests

* chore(authz): fix some tests, add some tests (again)

* fix(authz): fix tests again

* fix(server): you need to await !!!! otherwise it crashes the server.

---------

Co-authored-by: Charles Driesler <chuck@speckle.systems>
Co-authored-by: Kristaps Fabians Geikins <fabis94@users.noreply.github.com>
Co-authored-by: Gergő Jedlicska <gjedlicska@users.noreply.github.com>
2025-03-21 16:37:36 +01:00
Chuck Driesler 66da283a79 Revert "feat(authz): shared authz pipeline (#4151)" (#4241)
This reverts commit cb8aa31b66.
2025-03-21 15:41:17 +01:00
Chuck Driesler cb8aa31b66 feat(authz): shared authz pipeline (#4151)
* wip

* wip

* feat(authz): wip policy shape

* wip

* fix(authz): canReadProject with latest pattern

* wip

* feat(shared): simplify authz checks and policies

* feat(shared): port role weights into shared

* test(shared): some more tests for authz

* test(shared): more query project tests

* typo!

* feat(shared): ff loading refinements

* feat(shared): example authorization policy integration

* authz loaders init

* chore(authz): naming etc

* wip

* fix(authz): authz error objects

Co-authored-by: Kristaps Fabians Geikins <fabis94@users.noreply.github.com>
Co-authored-by: Gergő Jedlicska <gjedlicska@users.noreply.github.com>

* fix(authz): use correct role weights

* chore(authz): use codes from errors in tests

* chore(authz): wow

* chore(authz): fix more tests, add more tests

* chore(authz): fix some tests, add some tests (again)

* fix(authz): fix tests again

---------

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
Co-authored-by: Kristaps Fabians Geikins <fabis94@users.noreply.github.com>
Co-authored-by: Gergő Jedlicska <gjedlicska@users.noreply.github.com>
2025-03-21 14:45:36 +01:00
Alessandro Magionami 362a0e6141 Merge branch 'main' of github.com:specklesystems/speckle-server into alessandro/web-2803-downscale-workspace-subscription 2025-03-21 11:14:49 +01:00
Alessandro Magionami b1c9d8b2d4 feat(gatekeeper): on invoice created trigger downscale 2025-03-21 11:14:34 +01:00
Alessandro Magionami 38fd761fe3 fix(gatekeeper): fix date format in subscription parse 2025-03-20 18:57:52 +01:00
Alessandro Magionami 194a1fe607 feat(gatekeeper): downscale new plans 2025-03-20 16:29:32 +01:00
Alessandro Magionami 89f20bbae3 Merge pull request #4229 from specklesystems/alessandro/web-2869-filter-dismissed-workspace-join-requests
fix(workspaces): filter out dismissed join requests
2025-03-20 13:20:45 +01:00
Mike b1e3a4bb72 Feat: Add createdAt to workspace team WorkspaceCollaborator (#4227) 2025-03-20 12:50:10 +01:00
Kristaps Fabians Geikins e24c26e3d2 feat: getting rid of defaultProjectRole setting (#4221)
* feat: getting rid of defaultProjectRole setting

* get stdout reporting in CI

* yarn lock fix

* fix package.json

* better CI test output

* pinning mocha-multi
2025-03-20 12:58:30 +02:00
Chuck Driesler d39c52a324 feat(regions): use queue for moves (#4060)
* chore(regions): failing test for moving blobs

* fix(blobs): use blob storage table

* chore(regions): include file_uploads table for thoroughness

* fix(regions): extract repeated string to utils

* chore(regions): move validation as own service

* feat(regions): update project region key after move

* chore(regions): update tests to make gql requests

* feat(regions): queue wip

* fix(regions): trigger job instead of performing change synchronously

* chore(regions): update tests for job queue

* fix(regions): use the queue
2025-03-20 10:35:39 +00:00
Alessandro Magionami 7e944b182e Merge branch 'main' of github.com:specklesystems/speckle-server into alessandro/web-2803-downscale-workspace-subscription 2025-03-20 10:32:21 +01:00
Alessandro Magionami 4b138a7653 fix(workspaces): filter out dismissed join requests 2025-03-20 10:30:59 +01:00
Kristaps Fabians Geikins b55e197d00 chore(server): refactor seat updated to be its own event (#4214)
* chore(server): refactor seat updated to be its own event

* minor cleanup

* test fix
2025-03-19 12:17:27 +02:00
Alessandro Magionami a7ef258a0f Merge branch 'main' of github.com:specklesystems/speckle-server into alessandro/web-2803-downscale-workspace-subscription 2025-03-19 09:30:37 +01:00
Iain Sproat 996d7058b8 chore(server): get request logger when sending emails 2025-03-18 20:11:22 +00:00
Alessandro Magionami 96bfedefe8 chore(gatekeeper): take end billing cycle date from stripe 2025-03-18 13:05:19 +01:00