Commit Graph

942 Commits

Author SHA1 Message Date
Alessandro Magionami 261389307b chore(webhooks): refactor delete webhook multiregion 2024-09-10 14:55:52 +02:00
Alessandro Magionami e8cb13ad20 Merge pull request #2912 from specklesystems/fabians/apiexplorer-ts
chore(server): migrate apiexplorer module to ts
2024-09-10 09:55:03 +02:00
Kristaps Fabians Geikins 0884f6b2f2 chore(server): migrate apiexplorer module to ts 2024-09-10 09:45:48 +03:00
Kristaps Fabians Geikins a30073c725 chore: refactor stats module to ts 2024-09-10 09:38:16 +03:00
Kristaps Fabians Geikins aab9bdcd66 chore(server): cross-server-sync IoC Part 3 (#2909) 2024-09-09 18:36:54 +03:00
Kristaps Fabians Geikins f53bdd6505 chore(server): cross-server-sync IoC Part 2 (#2907) 2024-09-09 18:12:29 +03:00
Kristaps Fabians Geikins 2243df5ef5 chore(server): cross-server-sync IoC Part 1 (#2906) 2024-09-09 17:46:46 +03:00
Iain Sproat 3c9d9f8e3c chore(server): log graphql websocket connection, disconnection, and subscription events (#2690) 2024-09-06 12:17:46 +01:00
Alessandro Magionami 3fa2bcd4f3 Alessandro/web 1836 billing tab show x10 free guest (#2896)
* feat(workspaces): add label field to cost items

* feat(workspaces): use label field to display cost items
2024-09-06 10:42:31 +02:00
Chuck Driesler 756ac4af29 fix(workspaces): fix leaky search (#2894)
* fix(workspaces): no you may not do that

* fix(workspaces): assert user ids in test
2024-09-05 17:19:18 +01:00
Kristaps Fabians Geikins c92938eff3 chore(server): apollo server v3 -> v4 (#2880)
* main changes seem to be done?

* lint fix

* minor cleanup

* dataloader clear
2024-09-05 12:27:13 +03:00
Mike 8f60384ec0 Fix: Disable blocked domains in the FE (#2876) 2024-09-05 07:53:17 +02:00
Kristaps Fabians Geikins 80ea7a353c fix: disallow workspace guests to be invited as project owners (#2873)
* backend fixed

* frontend preventions
2024-09-04 15:44:43 +02:00
Gergő Jedlicska c3b05abd6f fix(workspaces): assign role on workspace join (#2864) 2024-09-03 18:54:06 +02:00
Chuck Driesler beabb5552b Chuck/guests bug (#2863)
* fix(workspace): why can't guests seeeeee

* fix(workspaces): fix reference in test

* fix(workspaces): idk
2024-09-03 17:44:20 +02:00
Gergő Jedlicska 6a11016dc2 feat(workspaces): do not discount (#2861)
* feat(workspaces): do not discount

* fix(workspaces): typo

* fix(workspaces): tests

* fix(workspaces): minor polish
2024-09-03 17:19:38 +02:00
Chuck Driesler 9ec90cd64f fix(workspaces): guarantee that workspace admins are project owners (#2835)
* fix(workspaces): separate resolver for workspace project role update

* fix(workspaces): frontend protection

* fix(workspaces): new composable, clearer errors

* fix(workspaces): correct logic

* fix(workspaces): gen
2024-09-03 17:18:30 +02:00
Alessandro Magionami 48caacec02 chore(workspaces): fix build (#2853)
* chore(workspaces): fix build

* chore(workspaces): fix delete workspace domains injection

* test(workspaces): fix tests

---------

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2024-09-02 18:31:41 +02:00
Alessandro Magionami 76ba0792df feat(workspaces): disable domain protection and discoverability on la… (#2850)
* feat(workspaces): disable domain protection and discoverability on last workspace domain delete

* chore(workspaces): minor cleanup
2024-09-02 16:53:30 +02:00
Gergő Jedlicska fd814286ac gergo/web 1779 prevent enabling domain protection if workspace has no (#2848)
* feat(workspaces): do not allow discoverablity if no verified domains

* feat(workspaces): do not allow domainBasedMembershipProtection if no verified domains

* test(workspaces): fix tests

* test(workspaces): fix invites test
2024-09-02 16:40:43 +02:00
Chuck Driesler 39c34b1b78 fix(workspaces): safer billing query for guests (#2844)
* fix(workspaces): safer billing query for guests

* chore(workspaces): comment

* chore(workspaces): lint

* chore(workspaces): ope
2024-09-02 15:23:27 +01:00
Gergő Jedlicska 0b0853bb3c feat(workspaces): do not allow discoverablity if no verified domains (#2847)
* feat(workspaces): do not allow discoverablity if no verified domains

* test(workspaces): fix tests
2024-09-02 15:47:57 +02:00
Gergő Jedlicska a12fda7f96 fix(workspaceInvites): fix error message (#2840) 2024-09-02 12:36:34 +02:00
Kristaps Fabians Geikins 7c6ea464e8 fix: support accepting invites even if a workspace member already (#2826)
* blocking workspace project invites from incorrect resolver

* invite create validation fixes + tests

* fix for email added on decline

* doing init validation on finalization as well

* more tests

* fix(server): allow accepting an email invite even if already a member

* fix(fe2): support accepting invites even if a workspace member already
2024-09-02 09:45:24 +02:00
Kristaps Fabians Geikins 23d5a7b559 fix(server): auto-verify on invited server registration (#2824) 2024-09-02 09:40:53 +02:00
Alessandro Magionami 817da431e0 Merge pull request #2825 from specklesystems/alessandro/web-1765-pricing-changes
chore(workspaces): update workspaces pricing strategy
2024-08-30 17:35:11 +02:00
Mike 2c14fbc8e7 Fix permissions for project members (#2792) 2024-08-30 14:26:02 +01:00
Alessandro Magionami 6b8e25ec19 chore(workspaces): update workspaces pricing strategy 2024-08-30 12:46:04 +02:00
Kristaps Fabians Geikins 80aa0aa20b fix(server): fixed validation in regards to workspaces, when they're secondary resource targets (#2814)
* blocking workspace project invites from incorrect resolver

* invite create validation fixes + tests

* fix for email added on decline

* doing init validation on finalization as well

* more tests
2024-08-30 11:44:26 +02:00
Chuck Driesler 8ec0d364cb Chuck/web 1614 unify workspaceproject role creation (#2795)
* fix(workspaces): transact all simultaneous workspace-project role changes

* fix(workspaces): more correct usage of transactions

* fix(workspaces): add tests for transaction-based role changes

* fix(workspaces): do not leak knex into domain

* fix(workspaces): transaction-ify factory functions

* fix(workspaces): factory-ify some old functions

* fix(workspaces): missed a resolver

* chore(workspaces): get tests in order

* park it

* chore(workspaces): failing tests

* WHAT DO YOU WANT

* fix(workspaces): i lived bitch

* fix(workspaces): remove test that is no longer true

* fix(workspaces): better repo/service boundaries

* right

* fix(workspaces): service in injected

* fix(workspaces): repair references

* refactor(workspaces): role management rework

* chore(workspaces): adjust tests to match new behaviour

* lint lint lint

* fix(workspaces): fix tests

---------

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2024-08-30 09:56:56 +02:00
Gergő Jedlicska 0d6bb3a967 fix(workspaces): dont leak guests (#2819) 2024-08-29 21:56:05 +02:00
Chuck Driesler bbd5146e5a fix(workspaces): add pagination to workspace team members (#2644)
* fix(workspaces): a suggestion of paginated teams

* fix(workspaces): workspace team pagination (?)

* fix(workspaces): pagination based on acl createdAt

* fix(workspaces): fix some roles-related tests

* fix(workspaces): improve query and tests

* fix(workspaces): collaborators query without incorrect groupBy

* fix(workspaces): add default values to migration

* Fixed queries and fragments

* Merged main

* Remove comment

* chore(workspaces): update WorkspaceCollaboratorCollection mocks

* chore(workspaces): fix role test

* chore(workspaces); ope

* fix(workspaces): move workspace acl timestamps to separate table

* Merge?

* fix(workspaces) drop that table

* fix(workspaces): cursor

* fix(workspaceInvites): undo merge borkage

* fix(workspaces): rework workspace member pagination

* fix(workspaces): fix test

* fix(workspaces): test test

* fix(workspaces): literally garbage

---------

Co-authored-by: Mike Tasset <mike.tasset@gmail.com>
Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2024-08-29 21:17:37 +02:00
andrewwallacespeckle 8143ccfb0b Update WorkspaceProtectedError (#2810) 2024-08-29 17:06:05 +02:00
Alessandro Magionami ff29654b66 feat(workspaces): add discount and total fields 2024-08-29 15:20:51 +02:00
Alessandro Magionami a0224e2f40 Alessandro/web 1660 workspace cost items subtotal and currency (#2793)
* chore(workspaces): workspace cost schema

* chore(workspaces): test helper for workspace cost

* feat(workspaces): workspace billing cost

* fix(workspaces): fix onProjectCreated failing for the project creator if the creator is a member

* refactor(workspaces): change workspace cost calculation to a simpler query

* test(workspaceCost): fix costing logic and tests

* fix(workspaceTests): project emmiter needs owner now

---------

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2024-08-29 13:45:04 +02:00
Gergő Jedlicska 32919c89da gergo/web 1746 add resolver for workspace domain policy compliance per user (#2797)
* fix(users): verified should be a public limited user field

* feat(workspaceSecurity): update security tab copy

* feat(workspaces): add limited user domain policy compliance check
2024-08-29 11:11:08 +02:00
Chuck Driesler fc26fe4c9e fix(workspaces): transact workspace role changes (#2752)
* fix(workspaces): transact all simultaneous workspace-project role changes

* fix(workspaces): more correct usage of transactions

* fix(workspaces): add tests for transaction-based role changes

* fix(workspaces): do not leak knex into domain

* fix(workspaces): transaction-ify factory functions

* fix(workspaces): factory-ify some old functions

* fix(workspaces): missed a resolver

* fix(workspaces): delete comment (very difficult)
2024-08-28 16:53:10 +02:00
Gergő Jedlicska 73a3954403 fix(workspaceInvites): add email policy validation to emails and users too (#2780)
* fix(workspaceInvites): add email policy validation to emails and users too

* test(workspaceInvites): fix tests
2024-08-28 16:51:15 +02:00
Gergő Jedlicska 253502adcf fix(users): verified should be a public limited user field (#2783) 2024-08-28 14:59:53 +02:00
Mike bebc4b922e Feat: Add links to workspace on project cards (#2773) 2024-08-27 18:24:51 +02:00
Chuck Driesler 541496bba4 fix(workspaces): workspace on projects throws not yet implemented error (#2763)
* fix(workspaces): return workspace on project type

* chore(workspaces): add test for field

* chore(workspaces): fix tests
2024-08-27 15:43:44 +02:00
Alessandro Magionami 17aae1bd97 Merge pull request #2762 from specklesystems/alessandro/web-1684-workspace-guests-can-see-all-projects-in-the-workspace
Alessandro/web 1684 workspace guests can see all projects in the workspace
2024-08-27 15:05:13 +02:00
Iain Sproat afbdeadf2d test(server/graphql): assert error code and fix some tests (#2758) 2024-08-27 10:07:13 +01:00
Alessandro Magionami d116f935d9 chore(webhooks): test isolation 2024-08-27 11:05:38 +02:00
Alessandro Magionami e85915bd3c chore(workspaces): test guest role projects resolver 2024-08-27 09:46:08 +02:00
Alessandro Magionami de956a4e92 fix(workspaces): projects resolver only returns projects for the user 2024-08-27 09:40:27 +02:00
Alessandro Magionami 0ac36af93e Alessandro/web 1659 workspace limits (#2733)
* chore(workspaces): billing version limit graphql schema

* chore(workspaces): billing member role required

* chore(core): test helper for random string

* chore(core): test helpers

* chore(workspaces): workspaces billing version resolver

* chore(workspaces): rename version to versionsCount
2024-08-26 17:53:34 +02:00
Iain Sproat 131918b428 fix(server): default max multi-part file upload greater than objects (#2742)
- when sending Speckle objects to the server, they are batched into multi-part files
- a multi-part file therefore contains one or more Speckle objects
- the maximum limit for the multi-part file must therefore be greater than the maximum limit for a single Speckle object
2024-08-26 16:42:33 +01:00
Mike 01c9fb4e55 Feat: Workspace creation wizard should allow for optional logo (#2757)
* Fixed reactivity, added workspace logo to create workspace modal

* Reverse order so name is focussed first

* Fix typo

* feat(workspaces): allow sending the logo on ws creation

* Fix avatar uploading

* Added default index 0

* fix(workspaces): maybe default logo

---------

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2024-08-26 17:20:43 +02:00
Alessandro Magionami e75d424d0c Merge branch 'main' of github.com:specklesystems/speckle-server into alessandro/web-957-update-webhook 2024-08-26 15:16:27 +02:00