Alessandro Magionami
31661071ba
fix(useremails): fix login with primary email
2024-07-24 17:17:37 +02:00
Alessandro Magionami
80484a4328
chore(useremails): fix linter
2024-07-24 16:01:22 +02:00
Alessandro Magionami
618d65867a
chore(useremails): create helper for search query
2024-07-24 11:16:19 +02:00
Alessandro Magionami
7c41ee0047
chore(useremails): fix count users and getusers to use user emails table
2024-07-23 15:56:26 +02:00
Alessandro Magionami
e208179008
chore(useremails): searchUsers use user emails table
2024-07-22 14:47:59 +02:00
Alessandro Magionami
55af2d526b
chore(useremails): getUserByEmail use user emails table
2024-07-22 12:03:36 +02:00
Alessandro Magionami
0a3d6b2f50
chore(useremails): getUser use user emails
2024-07-22 11:58:42 +02:00
Alessandro Magionami
830b82ace7
chore(useremails): getUserById use user emails table
2024-07-22 11:46:36 +02:00
Alessandro Magionami
583ca06953
chore(useremails): findOrCreateUser function use useremails
2024-07-22 11:02:09 +02:00
Alessandro Magionami
ce35c49de0
Merge branch 'main' of github.com:specklesystems/speckle-server into alessandro/web-1172-change-the-users-repository-to-abstract-the-email-field-in
2024-07-22 10:37:07 +02:00
Alessandro Magionami
a205332d90
chore(useremails): create table helper
2024-07-22 10:35:55 +02:00
Alessandro Magionami
614e5064e8
chore(useremails): use batches for backfill migration
2024-07-22 10:34:32 +02:00
Chuck Driesler
66eb539aa0
feat(workspaces): assign project roles for workspace projects ( #2499 )
...
* feat(workspaces): drop createdByUserId from the dataschema
* feat(workspaces): repositories WIP
* merge
* protect against removing last admin in workspace
* quick impl and stub tests
* add tests
* services
* unit tests for role services
* feat(workspaces): authorize project creation if workspace specified
* feat(workspaces): emit project created event
* feat(workspaces): assign roles on project create in workspace
* feat(workspaces): update project roles when user added to workspace
* fix(workspaces): perform automatic project role update in service function
* fix(workspaces): also delete roles
* fix(workspaces): broke tests again oops
* fix(workspaces): update `onProjectCreated` listener to use new repo method
* fix(workspaces): use service function in event listener
* fix(workspaces): get workspace projects via existing stream repo functions
* fix(workspaces): roles mapping in domain, use enum
* fix(workspaces): repair type reference in tests
* fix(workspaces): consolidate files, use different existing stream-getter
* fix(workspaces): more specific error
* fix(workspaces): yield per page
* fix(workspaces): some test dry
* fix(workspaces): superdry
* fix(workspaces): classic
---------
Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com >
2024-07-20 00:03:27 +01:00
Chuck Driesler
27179ad4f1
feat(workspaces): stencil gql resolvers ( #2508 )
...
* feat(workspaces): stencil gql resolvers
* fix(workspaces): lol lmao
* feat(workspaces): stencil gql api and resolvers
* fix(workspaces): roles and scopes
* fix(workspaces): add scopes
2024-07-19 12:44:53 +01:00
Alessandro Magionami
07f0ed285c
Merge pull request #2517 from specklesystems/alessandro/web-1340-add-no-relative-import-rule-to-eslint
...
chore(core): eslint rule to avoid relative imports
2024-07-19 09:19:36 +02:00
Chuck Driesler
8e3520fb67
chore(automate): track run duration in ms too ( #2518 )
...
* chore(automate): track run duration in ms too
* chore(automate): use `elapsed`
2024-07-18 17:23:10 +01:00
Alessandro Magionami
bca547df8b
chore(useremails): listUsers join user emails table
2024-07-18 17:43:53 +02:00
Alessandro Magionami
447b48a6c2
chore(server): remove relative imports
2024-07-18 16:07:16 +02:00
Alessandro Magionami
deb9af299f
chore(core): fix relative imports
2024-07-18 15:13:42 +02:00
Alessandro Magionami
4d84bb59c3
fix(useremails): email verification when creating user should be settable
2024-07-18 15:13:05 +02:00
Alessandro Magionami
f608d49591
feat(useremails): join user emails in getUsers repo function
2024-07-18 15:12:23 +02:00
Alessandro Magionami
62fd3f4e00
chore(useremails): migration to backfill user emails
2024-07-18 15:11:08 +02:00
Alessandro Magionami
55ae532bfa
Merge branch 'main' of github.com:specklesystems/speckle-server into alessandro/web-1171-change-the-users-repository-to-update-the-verified-field-in
2024-07-16 17:35:08 +02:00
Alessandro Magionami
8c7ed4448e
chore(core): minor changes to tests
2024-07-16 14:17:40 +02:00
Chuck Driesler
8a8536b358
fix(workspaces): correctly initialize and import workspaces core module ( #2486 )
2024-07-15 16:13:17 +02:00
Alessandro Magionami
cc74f0f2a8
chore(user-emails): code review changes
2024-07-15 14:13:29 +02:00
Alessandro Magionami
42f97349ea
Merge branch 'main' of github.com:specklesystems/speckle-server into alessandro/web-1171-change-the-users-repository-to-update-the-verified-field-in
2024-07-12 17:24:55 +02:00
Alessandro Magionami
030101208a
chore(user-emails): move user emails to core module
2024-07-12 17:24:40 +02:00
Gergő Jedlicska
ee6e5e22b1
gergo/eventBus ( #2498 )
...
* feat(eventBus): WIP event bus typescript wizardy
* feat(eventBus): final eventbus setup with all the typescript foo
* fix(workspaces): fix workspace core imports
* test(workspaces): fix expected events name
* test(workspaces): fix tests
2024-07-12 15:35:40 +02:00
Alessandro Magionami
3353b9bbc1
Merge branch 'main' of github.com:specklesystems/speckle-server into alessandro/web-1171-change-the-users-repository-to-update-the-verified-field-in
2024-07-11 14:35:38 +02:00
Kristaps Fabians Geikins
ee5ae8af62
fix(fe2): accept invite before onboarding after sign up ( #2491 )
...
* explicitly ordering global middlewares
* various subscription fixes & WIP project invite middleware
* SSR invite accept & toast notifs seem to work
* backend support for mixpanel
* mixpanel be logic -> shared
* minor fix
* finissh
* lint fix
* minor comment adjustments
* better adblock handling
2024-07-11 11:45:11 +03:00
Chuck Driesler
790d97383c
feat(workspaces): project creation emit domain event
...
* feat(workspaces): drop createdByUserId from the dataschema
* feat(workspaces): repositories WIP
* merge
* protect against removing last admin in workspace
* quick impl and stub tests
* add tests
* services
* unit tests for role services
* feat(workspaces): authorize project creation if workspace specified
* feat(workspaces): emit project created event
* fix(workspaces): protect against adding a project to a workspace if module not enabled
* fix(workspaces): oops broke tests during merge
---------
Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com >
2024-07-10 16:13:41 +01:00
Alessandro Magionami
82ab5a53ac
chore(user-emails): fix tests
2024-07-10 13:02:07 +02:00
Alessandro Magionami
295b6d0621
Merge branch 'main' of github.com:specklesystems/speckle-server into alessandro/web-1171-change-the-users-repository-to-update-the-verified-field-in
2024-07-10 12:12:00 +02:00
Alessandro Magionami
bb964cd457
feat(user-emails): mark user email as verified
2024-07-10 12:11:22 +02:00
Kristaps Fabians Geikins
0b2ca9a515
feat: add missing FE1 fields to the FE2 GQL schema ( #2471 )
...
* WIP version create
* commitCreate migrated
* minor cleanup
* commitReceived migrated
* added Project.object
* Project.comment introduced
* moving away old API usages in FE1
* ProjectMutations.batchDelete
* project pending access requests
* WIP project access req tests
* project access req tests done
* ModelByName test
* version mutation tests
* project.object tests
* batch delete tests
* minor improvements to redirect logging
2024-07-10 11:33:53 +02:00
Alessandro Magionami
dab5b7b9de
chore(user-emails): use test helpers
2024-07-10 09:52:19 +02:00
Chuck Driesler
e703bb7415
WEB-1140 manage user workspace membership services ( #2460 )
...
* feat(workspaces): drop createdByUserId from the dataschema
* feat(workspaces): repositories WIP
* merge
* protect against removing last admin in workspace
* quick impl and stub tests
* add tests
* services
* unit tests for role services
* fix(workspaces): maybe tests work like this
* fix(workspaces): dry
* fix(workspaces): initialize tests better
* fix(workspaces): so true
* fix(workspaces): right
* fix(workspaces): self nit
* fix(workspaces): better repository structure
* fix(workspaces): repair tests, use `example.org`
* fix(workspaces): add tests for new repo functions, repair other tests
* fix(workspaces): better distinction between service-level guarantees and repo-level guarantees
* fix(workspaces): review comments and stencil tests
* fix(workspaces): add tests
* fix(workspaces): tests work
---------
Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com >
2024-07-09 18:26:59 +02:00
Alessandro Magionami
01a527eabc
feat(core): change user update to also create user-email
2024-07-09 13:54:06 +02:00
Alessandro Magionami
377c7d8c8e
feat(core): update user creation to also create user-email
2024-07-09 13:50:55 +02:00
Alessandro Magionami
c6d076253d
chore(user-emails): create update and delete functions in repository
2024-07-09 13:46:02 +02:00
Alessandro Magionami
3288382337
chore(core): create test helpers
2024-07-09 13:45:18 +02:00
Alessandro Magionami
a9e6dc5834
feat(user-emails): create user emails table and type ( #2470 )
...
* feat(user-emails): create user emails table and type
* chore(user-emails): add delete cascade
* chore(user-emails): fix tests
* chore(user-emails): add unique constraint for email and userId
* chore(user-emails): use random email in tests
* chore(user-emails): add todo to remove user-email in test
* chore(user-emails): code review changes
* chore(user-emails): use random passwords for tests
* chore(user-emails): fix test and code review changes
2024-07-08 17:27:59 +02:00
Kristaps Fabians Geikins
95184b6883
chore(server): marking all old (non-FE2) GQL schema fields as deprecated ( #2435 )
...
* some fe2 copy changes + everything upp to automate deprecated
* blobstorage & comments & branches/commits
* all core assets reviewed
* server invites
* webhooks
* minor copy update
* updating copy
2024-07-08 14:09:55 +02:00
Gergő Jedlicska
28ce7c757c
feat(workspaces): add repository function implementations
...
Co-authored-by: Charles Driesler <chuck@speckle.systems >
2024-07-04 13:46:48 +01:00
Kristaps Fabians Geikins
74c17cd099
fix(server): only changing gql http status code on rate limiting ( #2466 )
2024-07-02 17:44:22 +03:00
Chuck Driesler
7b3f1d20ec
fix(workspaces): construct acl query based on table name ( #2464 )
2024-07-02 14:58:27 +01:00
Kristaps Fabians Geikins
7d79c056db
fix(server): 401, 403, 429 & 500 status codes for GQL error responses ( #2463 )
2024-07-02 16:54:25 +03:00
Kristaps Fabians Geikins
d944b99172
fix(server): unexpected INTERNAL_SERVER_ERROR error codes for expected error cases ( #2461 )
2024-07-02 12:44:36 +03:00
Gergő Jedlicska
307983c94c
feat(workspacesCore): initial module migration
2024-06-28 20:14:40 +02:00