Commit Graph

2152 Commits

Author SHA1 Message Date
Iain Sproat 37e9e9829d Merge pull request #4458 from specklesystems/iain/improve-migration-script-logging
chore(logging): improve logs & error messages for workspace migration
2025-04-16 13:23:13 +01:00
Iain Sproat 8b9f9ad45e Merge pull request #4409 from specklesystems/iain/web-2732-observability-for-improved-reliability-emails
chore(server/logging): add operation logs to email module
2025-04-16 13:11:18 +01:00
Iain Sproat 225af5d251 fix log reference 2025-04-16 12:57:13 +01:00
Iain Sproat b0bdeb9768 chore(logging): improve logs & error messages for workspace migration 2025-04-16 12:52:03 +01:00
Gergő Jedlicska fb28654311 feat(gatekeeper): re-enable workspace plan migrations (#4457) 2025-04-16 13:13:12 +02:00
Kristaps Fabians Geikins 62cc07b072 feat(server): add new workspace disclaimer fields to user meta (#4434)
* feat(server): add new workspace disclaimer fields to user meta

* unrelated tests fix
2025-04-16 12:47:33 +03:00
Gergő Jedlicska 443c9fc514 fix(workspaces): use the correct new plan check and seat rules (#4445) 2025-04-16 11:28:57 +02:00
Iain Sproat b91a363886 Merge pull request #4387 from specklesystems/iain/observability-operations-logging-of-accessrequests
chore(logging): operations logging around access request mutations
2025-04-16 10:11:52 +01:00
Kristaps Fabians Geikins 10832655d4 fix(server): all project created subs firing for workspace guests + req ctx cache fix for subs (#4453)
* WIP sub fix

* fix sub resolver caching issue
2025-04-16 11:21:17 +03:00
Chuck Driesler cebae959ae feat(authz): Workspace.canInvite and Project.canInvite (#4419) 2025-04-16 09:01:53 +01:00
Kristaps Fabians Geikins 82a37fba5c fix(shared): fix sso session expiration date too low in tests (#4432)
* fix(shared): canBroadcast policy test fix

* more tests fixed

* switch to using time constant

* tests fix
2025-04-15 16:24:12 +03:00
Alessandro Magionami 0c18acc452 Alessandro/web 2945 comments hide body (#4385)
* chore(core): move limits logic into shared

* feat(comments): limit text and rawText for comments

* chore(core): removed test moved to shared

* chore(comments): generate gql types

* feat(comments): rework comment history limits

* chore(comments): fix tests

* chore(shared): add dayjs as dependency

---------

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2025-04-15 10:44:12 +02:00
Gergő Jedlicska 30e39ccb01 fix(gatekeeper): fix subscription upgrades (#4411) 2025-04-15 08:55:33 +02:00
Iain Sproat 7deb4554c6 chore(server/logging): add operation logs to email module 2025-04-14 17:20:07 +01:00
Iain Sproat c937c4c30c Improve error handling 2025-04-14 13:49:36 +01:00
Iain Sproat 9f497f13a8 Merge branch 'main' into iain/observability-operations-logging-of-accessrequests 2025-04-14 13:38:34 +01:00
Iain Sproat 149cc1871e chore(logging): observability of operations related to auth 2025-04-14 13:36:03 +01:00
Kristaps Fabians Geikins b287702145 feat: version checks + generally improved auth error messaging (#4384)
* foundation for new version checks

* canUpdate policy

* can req render

* canReceive

* BE implemented

* FE checks implemented?

* test fix

* improved auth error messaging

* fix lint
2025-04-14 10:43:48 +01:00
Iain Sproat 08f9ca1d64 chore(server/logging): more metadata to preview consumption log (#4388) 2025-04-14 06:25:16 +02:00
Gergő Jedlicska bf454bc003 fix(gatekeeper): fix yearly upgrade not working (#4393) 2025-04-14 06:24:20 +02:00
Iain Sproat 91d8eef792 Merge branch 'main' into iain/observability-operations-logging-of-accessrequests 2025-04-12 16:37:29 +01:00
Gergő Jedlicska 61ca128ce2 gergo/multiCurrency (#4379)
* feat(gatekeeper): support multiple currencies

* feat(helm): add new currency based prices to helm chart

* chore(env): add example currency based pricing values

* fix(ci): update price ids to the proper values

* feat(helm): rename price ids to fit multi currency

* feat(gatekeeper): currency input for checkout session

* Updated prices in the FE

* chore(gatekeeper): remove old checkout session flow

* Updated prices in the FE

* Fix FE

* Fix pipeline

---------

Co-authored-by: Mike Tasset <mike.tasset@gmail.com>
2025-04-11 17:37:47 +02:00
Iain Sproat b951d71f9c chore(logging): operations logging around access request mutations 2025-04-11 14:51:13 +01:00
Alessandro Magionami 965e2d4ee6 Merge pull request #4366 from specklesystems/alessandro/web-2944-versions-limits
Alessandro/web 2944 versions limits
2025-04-11 15:38:50 +02:00
Iain Sproat 9308fa82b4 chore(server/observability): logging of gatekeeper/rest/billing (#4066)
* chore(server/observability): logging of gatekeeper/rest/billing

* Rename logged field

* use logWithErr, operationStatus, and operationName
- clean up logging

* Fix bad merge from main

* Use a wrapper to log

* Include mutation resolvers

* Fix per PR comments
2025-04-11 15:27:52 +02:00
Alessandro Magionami d9cdeb4bf5 chore(core): make resolver model or project check more reliable 2025-04-11 15:15:21 +02:00
Alessandro Magionami 05e4e51c1a Merge branch 'main' of github.com:specklesystems/speckle-server into alessandro/web-2944-versions-limits 2025-04-11 14:54:13 +02:00
Kristaps Fabians Geikins f59c0a72c6 feat: model related auth checks in BE & FE (#4374)
* limit fragment cleanup

* be updated

* model checks in FE

* tests fix

* fakes util fix
2025-04-11 10:09:54 +03:00
Kristaps Fabians Geikins b6c21fd506 feat: comment read/write auth policies in BE & FE (#4368)
* webhooks perm minor fix

* tryna get fileimport service to work

* new comment policies - shared

* BE done?

* checks implemented in FE

* lint fix

* tests fix

* readme fix
2025-04-10 15:14:34 +03:00
Gergő Jedlicska d5f81cc174 feat(auth): add worksapce read scope to desktop apps (#4365)
* feat(auth): add worksapce read scope to desktop apps

* fix(scopes): only add workspace scopes if workspaces enabled

---------

Co-authored-by: Charles Driesler <chuck@speckle.systems>
2025-04-10 11:58:23 +01:00
Chuck Driesler f29fc322a3 fix(authz): allow optional workspace id to validate move (#4367) 2025-04-10 11:04:59 +01:00
Chuck Driesler 32796d3dd3 fix(authz): allow optional project id (#4363) 2025-04-10 10:12:00 +01:00
Alessandro Magionami be48143d8a chore(core): disable test if workspaces is disabled 2025-04-10 10:49:49 +02:00
Alessandro Magionami 36b3f2b11a Merge branch 'main' of github.com:specklesystems/speckle-server into alessandro/web-2944-versions-hide-referencedobject 2025-04-10 10:16:27 +02:00
Alessandro Magionami 73a8719556 feat(core): complete referencedObject resolver for models and projects versions 2025-04-10 10:10:49 +02:00
Alessandro Magionami 96698452f2 feat(core): limit returned commits in streams and breanches 2025-04-10 10:09:54 +02:00
Mike a3ce9fad12 Feat: Update pricing plan features (#4357)
* Feat: Update pricing plan features

* Clean up old stuff

* Add features to old plans

* pls dont complain anymore

* pls work

* fix(shared): add back features to the unlimited plan

---------

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2025-04-09 21:45:28 +02:00
Chuck Driesler a67022f5fb fix(authz): branches are models too (#4360)
* fix(authz): branches are models too

* fix(authz): also check token resource access
2025-04-09 20:15:51 +02:00
Gergő Jedlicska 5fce827ad7 feat(gatekeeper): calculate available seats from purchased and used (#4362) 2025-04-09 19:51:02 +02:00
Chuck Driesler ea114fd394 fix(authz): only exempt empty main model (#4358) 2025-04-09 15:27:03 +01:00
Kristaps Fabians Geikins 5f88f562d3 feat: updated various "read/update" settings related permission checks (#4356)
* a bunch more tests

* updated GQL resolvers

* project create checks implemented

* project update/settings related checks in FE

* a bunch of tests

* tests fix

* disable app schema check
2025-04-09 16:13:09 +03:00
Gergő Jedlicska b24add762c feat(gatekeeper): disable workspace plan migrations (#4354) 2025-04-09 13:02:28 +02:00
Gergő Jedlicska b71f0bd5c4 feat(gatekeeper): re-enable workspace plan migrations (#4352) 2025-04-08 20:00:18 +02:00
Iain Sproat 5fc2d5c089 Merge pull request #4180 from specklesystems/iain/preview-service-handle-errors
fix(preview service): handle errors and failures
2025-04-08 17:55:49 +01:00
Gergő Jedlicska 4a7e8ae5f4 temp disable workspace plan migrations (#4349)
* fix(gatekeeper): missing priceId-s should stop the server from booting

* feat(shared): add all new workspace plans

* feat(billing): add new world plans

* feat(ci): use stripe sandbox id-s from test env vars

* chore(ci): remove defunct stripe context

* chore(server-env): fix server env example

* WIP workspace migration

* feat(gatekeeper): migrate old workspace plans to new

* feat(gatekeeper): add more logs to plan migrations

* fix(ci): do not remove the stripe context

* fix(gatekeeper): handle migration errors

* fix(gatekeeper): temp disabling migrations until they can be fixed
2025-04-08 16:58:22 +02:00
Chuck Driesler 7cddc87deb fix(workspaces): use new roles for project moves on new plans (#4316)
* chore(workspaces): move project role mapping in tests

* fix(workspaces): new world move project to workspace

* chore(workspaces): adjust move project tests

* fix(workspaces): that's on me
2025-04-08 15:32:05 +01:00
Chuck Driesler cb7243cfbe feat(authz): Project.canCreateModel and Project.canMoveToWorkspace policies (#4342)
* feat(authz): Project.canCreateModel policy

* feat(authz): Project.canMoveToWorkspace policy

* fix(authz): expose policies as permissions objects

* chore(authz): actually use the policies lol

* chore(authz): add tests for new policies

* fix(authz): skip affected test

* fix(authz): pr comments

* fix(authz): better errors, better tests

* chore(authz): remove references to deleted error
2025-04-08 15:29:12 +01:00
Iain Sproat 58ed9fc58b Merge branch 'main' into iain/preview-service-handle-errors 2025-04-08 15:08:00 +01:00
Gergő Jedlicska f217f5b17f Gergo/web 2930 workspace migration script (#4333)
* fix(gatekeeper): missing priceId-s should stop the server from booting

* feat(shared): add all new workspace plans

* feat(billing): add new world plans

* feat(ci): use stripe sandbox id-s from test env vars

* chore(ci): remove defunct stripe context

* chore(server-env): fix server env example

* WIP workspace migration

* feat(gatekeeper): migrate old workspace plans to new

* feat(gatekeeper): add more logs to plan migrations

* fix(ci): do not remove the stripe context

* fix(gatekeeper): handle migration errors
2025-04-08 16:00:38 +02:00
Kristaps Fabians Geikins ec2fb34283 feat(shared): new policies for minor fragment refactor (#4343)
* canUpdate + reworked fragments

* feat(shared): new policies for minor fragment refactor

* some cleanup

* canUpdate tests

* ensureMinimumProjectRoleFragment test

* checkIfPubliclyReadableProjectFragment tests

* get rid of LoadersOf/ErrorsOf

* python dep update
2025-04-08 12:28:20 +03:00