Commit Graph

376 Commits

Author SHA1 Message Date
Chuck Driesler e6e65a2f7d feat(sso): list sso associations by user email (#3420)
* feat(workspaces): add workspace sso feature flag

* feat(workspaceSso): wip validate sso

* feat(workspaces): validate and add sso provider to the workspace with user sso sessions

* feat(workspaces): validate and add sso provider to the workspace with user sso sessions

* WIP

* fix(sso): restructure to handle all branches at end of flow

* fix(sso): add and validate emails used for sso

* fix(sso): park progress

* chore(workspaces): review sso login/valdate

* fix(sso): adjust validate url

* chore(sso): auth header puzzle

* fix(sso): happy-path config

* chore(gql): gqlgen

* fix(sso): almost almost

* fix(sso): auth endpoint

* a lil more terse

* fix(sso): light at the end of the tunnel

* fix(sso): improve catch block error messages

* fix(sso): session lifespan => validUntil

* fix(sso): I think we've got it

* feat(sso): limited workspace values for public sso login

* fix(sso): use factory functions

* fix(sso): til decrypt is single-use

* fix(sso): correct usage of access codes

* fix(sso): use finalize middleware in all routes

* chore(sso): cheeky tweak

* fix(sso): move some types around

* fix(sso): stencil final shape I'm sleepy

* fix(sso): more factories more factories

* fix(sso): on to final boss of factories

* fix(sso): needs a haircut but she works

* fix(sso): init rest w function, not side-effects

* fix(sso): /authn => /sso

* chore(sso): errors

* chore(sso): test test test

* chore(sso): test all the corners

* feat(sso): list workspace sso memberships

* chore(sso): tests, expose in rest

* fix(sso): expose search via gql

---------

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
Co-authored-by: Mike Tasset <mike.tasset@gmail.com>
2024-11-01 11:27:12 +01:00
Kristaps Fabians Geikins 5df716bf1c feat: add & list server regions (#3423)
* WIP create modal

* babababa

* create dialog looks ok

* FE largely there

* workss

* cleanup

* fixed up test plumbing to avoid deadlocks and simplify GQL calls

* test fix

* added all tests

* CI fix
2024-10-31 16:08:50 +01:00
Kristaps Fabians Geikins 55d0d10103 Merge pull request #3406 from specklesystems/fabians/multi-region-base
feat(server): multi region module base w/ a test (mocked) mutation
2024-10-30 10:25:04 +00:00
Kristaps Fabians Geikins 610808fc15 feat(server): multi region module base w/ a test (mocked) mutation 2024-10-29 14:07:35 +02:00
Gergő Jedlicska 3184855aa7 gergo/checkoutGqlResolver (#3405)
* feat(gatekeeper): add all plan statuses

* chore(gatekeeper): gqlgen
2024-10-28 18:10:31 +01:00
Alessandro Magionami c9ef276343 Merge pull request #3399 from specklesystems/fabians/quick-js-to-ts-4
chore(server): quick js to ts #4 - remaining commits resolvers (thats it!)
2024-10-28 15:18:16 +01:00
Alessandro Magionami 11c13796c2 Merge pull request #3393 from specklesystems/fabians/gendo-ioc-5
chore(server): gendo IoC #5 - getVersionRenderRequestFactory
2024-10-28 15:17:56 +01:00
Kristaps Fabians Geikins 9783537ea9 Merge branch 'main' into fabians/quick-js-to-ts-4 2024-10-25 15:19:29 +03:00
Kristaps Fabians Geikins 6cf31becad commitDeleted 2024-10-25 15:16:31 +03:00
Kristaps Fabians Geikins cbbf9b6ad4 commitUpdated 2024-10-25 15:03:15 +03:00
Kristaps Fabians Geikins a3604331c4 commitCreated 2024-10-25 14:21:58 +03:00
Kristaps Fabians Geikins f690f1016a branchDeleted 2024-10-25 13:57:58 +03:00
Kristaps Fabians Geikins 64d2888506 branchUpdated sub 2024-10-25 13:55:26 +03:00
Kristaps Fabians Geikins cedc1beb6c branchCreated sub 2024-10-25 13:50:01 +03:00
Gergő Jedlicska af3857a209 gergo/web 2038 billing graphql api (#3379)
* feat(gatekeeper): add gatekeeper module feature flag

* feat(gatekeeper): add workspace pricing table domain

* feat(gatekeeper): add checkout session creation

* feat(gatekeeper): verify stripe signature

* wip(gatekeeper): checkout callbacks

* feat(gatekeeper): add unlimited and academia plan types

* refactor(envHelper): getStringFromEnv helper

* chore(gatekeeper): add future todos

* feat(gatekeeper): add productId to the subscription domain

* feat(gatekeeper): add in memory repositories

* feat(gatekeeper): add more errors

* feat(gatekeeper): complete checkout session service

* feat(gatekeeper): add stripe client implementation

* feat(gatekeeper): add checkout session completion webhook callback path

* feat(gendo): fix not needing env vars if gendo module is not enabled

* feat(gatekeeper): require a license for billing

* chore(gatekeeper): cleanup before testing

* feat(gatekeeper): subscriptionData parsing model

* ci: add billing integration and gatekeeper modules to test config

* test(gatekeeper): add checkout service tests

* feat(gatekeeper): make completeCheckout callback idempotent properly

* feat(gatekeeper): move to knex based repositories

* test(gatekeeper): billing repository tests

* feat(gatekeeper): add yearly billing cycle toggle

* feat(ci): add stripe integration context to test job

* feat(billingPage): conditionally render the checkout CTAs

* fix(gatekeeper): remove flaky test condition

* feat(helm): add billing integration feature flag

* WIP billing gql api

* feat(gatekeeper): cancel checkout session api

* feat(gatekeeper): handle existing checkout sessions, when trying to create a new one

* feat(gatekeeper): add workspace plans gql api

* feat(gatekeeper): handle cancelation and subscription updates

* fix(gatekeeper): scope initialization

* fix(gatekeeper): eliminate stripe client import sideeffect

* fix(gatekeeper): eliminate stripe client import sideeffect 2

* fix(mainConstants): fitler gatekeeper scopes with feature flag
2024-10-25 10:46:09 +02:00
Kristaps Fabians Geikins 4a29e5f650 chore(server): gendo IoC #5 - getVersionRenderRequestFactory 2024-10-24 17:01:09 +03:00
Kristaps Fabians Geikins 6d53308fd8 chore(server): gendo IoC #1 - prep/cleanup before getting started 2024-10-24 15:39:41 +03:00
Chuck Driesler dc9519f141 fix(workspaces): emit slug with discoverable workspaces (#3361)
* fix(workspaces): emit slug with discoverable workspaces

* chore(workspaces): gql lint
2024-10-23 09:50:08 +01:00
Alessandro Magionami f073faf7b0 Merge pull request #3370 from specklesystems/fabians/core-ioc-102
chore(server): core IoC #102 - adminProjectListFactory
2024-10-23 09:34:31 +02:00
Alessandro Magionami 2cf9bee7e4 Merge pull request #3366 from specklesystems/alessandro/web-943-add-branch-deleted-activity
Activitystream IoC 4 addBranchDeletedActivity
2024-10-23 09:33:30 +02:00
Kristaps Fabians Geikins 30371332d3 chore(server): core IoC #102 - adminProjectListFactory 2024-10-22 12:04:35 +03:00
Kristaps Fabians Geikins 049205e0cd chore(server): core IoC #101 - adminInviteListFactory 2024-10-22 11:57:36 +03:00
Kristaps Fabians Geikins 39f83d3e23 chore(server): core IoC #100 - legacyGetPaginatedStreamCommitsFactory rename 2024-10-22 11:41:42 +03:00
Kristaps Fabians Geikins f5213a12b7 chore(server): core IoC #99 - batchDeleteCommitsFactory 2024-10-22 11:39:09 +03:00
Kristaps Fabians Geikins c90521f8d0 Merge pull request #3365 from specklesystems/alessandro/web-943-add-branch-updated-activity
Activitystream IoC 3 addBranchUpdatedActivity
2024-10-22 09:09:56 +01:00
Kristaps Fabians Geikins 88c714392c Merge pull request #3364 from specklesystems/alessandro/web-943-add-branch-created-activity
Activitystream IoC 2 addBranchCreatedActivity
2024-10-22 09:09:30 +01:00
Alessandro Magionami b701a3361c chore(activitystream): addBranchDeletedActivity refactor multiregion 2024-10-22 10:07:24 +02:00
Alessandro Magionami 282af83bd8 chore(activitystream): addBranchUpdatedActivity refactor multiregion 2024-10-22 09:53:36 +02:00
Alessandro Magionami a2e9693a6a chore(activitystream): addBranchCreatedActivity refactor multiregion 2024-10-22 09:52:47 +02:00
Kristaps Fabians Geikins dee1479a7c chore(server): core IoC #95 - getObjectChildrenQueryFactory 2024-10-21 17:21:49 +03:00
Alessandro Magionami 73decee881 Merge pull request #3341 from specklesystems/fabians/core-ioc-94
chore(server): core IoC #94 - getObjectChildrenFactory
2024-10-21 10:45:45 +02:00
Alessandro Magionami ccbc536aa9 Merge pull request #3335 from specklesystems/fabians/core-ioc-91
chore(server): core IoC #91 - createObjectsFactory
2024-10-21 10:42:11 +02:00
Alessandro Magionami c7424e0475 Merge pull request #3326 from specklesystems/fabians/core-ioc-87
chore(server): core IoC #87 - getPaginatedStreamBranchesFactory
2024-10-21 09:44:31 +02:00
Alessandro Magionami 0867df6cb9 Merge pull request #3323 from specklesystems/fabians/core-ioc-85
chore(server): core IoC #85 - legacyGetPaginatedStreamCommits
2024-10-21 09:42:29 +02:00
Gergő Jedlicska 8cba7eb6f7 gergo/web 1968 add features list (#3332)
* feat(gatekeeper): add gatekeeper module feature flag

* feat(gatekeeper): add workspace pricing table domain

* feat(gatekeeper): add checkout session creation

* feat(gatekeeper): verify stripe signature

* wip(gatekeeper): checkout callbacks

* feat(gatekeeper): add unlimited and academia plan types

* refactor(envHelper): getStringFromEnv helper

* chore(gatekeeper): add future todos

* feat(gatekeeper): add productId to the subscription domain

* feat(gatekeeper): add in memory repositories

* feat(gatekeeper): add more errors

* feat(gatekeeper): complete checkout session service

* feat(gatekeeper): add stripe client implementation

* feat(gatekeeper): add checkout session completion webhook callback path

* feat(gendo): fix not needing env vars if gendo module is not enabled

* feat(gatekeeper): require a license for billing

* chore(gatekeeper): cleanup before testing

* feat(gatekeeper): subscriptionData parsing model

* ci: add billing integration and gatekeeper modules to test config

* test(gatekeeper): add checkout service tests

* feat(gatekeeper): make completeCheckout callback idempotent properly

* feat(gatekeeper): move to knex based repositories

* test(gatekeeper): billing repository tests

* feat(gatekeeper): add yearly billing cycle toggle

* feat(ci): add stripe integration context to test job

* feat(billingPage): conditionally render the checkout CTAs

* fix(gatekeeper): remove flaky test condition

* feat(helm): add billing integration feature flag
2024-10-20 15:40:31 +02:00
Kristaps Fabians Geikins 70897b0b72 optimization 2024-10-18 17:12:16 +03:00
Kristaps Fabians Geikins 7617c94622 chore(server): core IoC #94 - getObjectChildrenFactory 2024-10-18 17:08:09 +03:00
Kristaps Fabians Geikins eea31a2e93 chore(server): core IoC #91 - createObjectsFactory 2024-10-18 16:14:01 +03:00
Kristaps Fabians Geikins c0ab867e05 chore(server): core IoC #87 - getPaginatedStreamBranchesFactory 2024-10-18 16:12:58 +03:00
Kristaps Fabians Geikins 37a7ccf0b3 Merge branch 'main' into fabians/core-ioc-85 2024-10-18 16:12:21 +03:00
Kristaps Fabians Geikins 5016fad919 feat(server): make Project.version query throw if version not found (#3336) 2024-10-18 15:32:58 +03:00
Kristaps Fabians Geikins 8bd5980889 chore(server): core IoC #85 - legacyGetPaginatedStreamCommits 2024-10-17 14:22:10 +03:00
Kristaps Fabians Geikins 98f045662e chore(server): core IoC #84 - legacyGetPaginatedUserCommits(Page|TotalCount)Factory 2024-10-17 14:09:13 +03:00
Kristaps Fabians Geikins afcf1f7c26 chore(server): core IoC #83 - (most) commits resolvers to TS 2024-10-17 13:39:34 +03:00
Kristaps Fabians Geikins 0d2fb7db9b chore(server): core IoC #82 - (most) branches resolvers to TS 2024-10-17 13:24:33 +03:00
Kristaps Fabians Geikins 93d0ffd31b chore(server): core IoC #81 - server resolvers to TS (#3319) 2024-10-17 13:23:06 +03:00
Kristaps Fabians Geikins c18a704542 chore(server): core IoC #80 - getPublicScopesFactory 2024-10-17 12:56:17 +03:00
Kristaps Fabians Geikins fe148fe075 chore(server): core IoC #79 - updateServerInfoFactory 2024-10-17 12:47:49 +03:00
Kristaps Fabians Geikins f27f289dc6 chore(server): core IoC #78 - getServerInfoFactory 2024-10-17 12:37:43 +03:00
Kristaps Fabians Geikins 1d006beb47 chore(server): core IoC #77 - apitoken resolvers to TS 2024-10-16 17:56:46 +03:00