Commit Graph

65 Commits

Author SHA1 Message Date
Chuck Driesler 86c113b29b feat(regions): move project automations (#3925)
* feat(regions): repo functions for copying project branches and commits

* chore(regions): wire up move to resolver

* chore(regions): successful basic test of project region change

* fix(regions): sabrina carpenter please please please

* fix(regions): repair multiregion test setup

* chore(regions): appease ts

* chore(multiregion): update test multiregion config

* chore(multiregion): fix test docker config and test

* chore(multiregion): use transaction

* chore(multiregion): maybe this will work

* fix(multiregion): drop subs synchronously

* chore(multiregion): desperate test logs

* chore(multiregion): somehow that worked?

* chore(multiregion): add load-bearing log statement

* chore(multiregion): move services

* fix(multiregion): test drop waits

* chore(regions): fix import

* chore(regions): make test a bit more thorough for good measure

* fix(regions): move project objects

* chore(regions): add tests for object move

* feat(regions): move project automations

* chore(regions): add tests for moving automations

* chore(regions): more tests for moving automate data

* fix(regions): speed up inserts

* fix(regions): simplify postgres usage

* chore(regions): repair build

* fix(regions): improve queries

* chore(regions): again
2025-02-18 15:48:00 +00:00
Chuck Driesler f2ce7d8f17 chore(automate): track usage of test automations (#3992)
* chore(automate): track usage of test automations

* fix(automate): consolidate mixpanel event
2025-02-18 11:37:56 +00:00
Iain Sproat c59e6043bb fix(server/errors): derive errors from BaseError (#3918) 2025-01-30 18:15:56 +01:00
Chuck Driesler 4cbeeef0d0 Automate API Circuit breaker (#3914)
* fix(automate): invokeSafeJsonRequest

* fix(automate): correct fallback values
2025-01-30 15:26:12 +00:00
Kristaps Fabians Geikins 8df7eb714b chore(server): getting rid of module-scoped eventBuses - batch #5 - automations & runs [final] (#3818)
* chore(server): getting rid of module-scoped eventBuses - batch #4 - comments

* chore(server): getting rid of module-scoped eventBuses - batch #5 - automations

* chore(server): getting rid of module-scoped eventBuses - batch #5 - automation runs
2025-01-15 11:00:33 +02:00
Chuck Driesler 02be49f71f fix(automate): redirect github auth flow to workspace if possible (#3632)
* fix(automate): redirect to workspace after auth if possible

* fix(automate): include session in github auth flow

* chore(automate): update props after merge

* fix(automate): pick => fragment

* fix(automate): use fragments correctly
2024-12-06 08:24:23 +00:00
Iain Sproat cdf9c4858a refactor(env vars): rename AUTOMATE_ENCRTYPTION_KEYS_PATH with ENCRYPTION_KEYS_PATH (#3616) 2024-12-04 10:29:35 +00:00
Chuck Driesler 4e37a0eae7 chore(automate): drop specklecon templates (#3587) 2024-12-02 10:15:03 +00:00
Chuck Driesler e312110933 Automate Public Beta (#3472)
* feat(automate): query active user functions

* fix(automate): show automations to non-stream-owners

* feat(automate): associate function with workspace

* fix(automate): split functions page between user and example functions

* fix(automate): ugh

* fix(functions): use correct query type in different places

* fix(automate): workspace functions page

* feat(automate): query specific categories of functions

* fix(automate): checkpoint

* fix(workspaces): successful queries w local env

* fix(automate): createFunctionWithoutVersion

* fix(automate): successful associate function with workspace

* fix(automate): query and return workspaces on functions

* fix(automate): show current function workspace

* fix(automate): query functions in automation create dialog

* fix(automate): audit non-owner automation access

* refactor(automate): logs api can get the projectId from the path

* fix(automate): multiregion gql resolvers

* fix(automate): multiregion event listeners

* fix(automate): drop automationCount

* fix(automate): multiregion run status

* fix(automate): correctness

* fix(automate): successful usage of multiregion results

* fix(automate): actually finish event listeners

* chore(automate): fix tests fix tests

* fix(automate): fix tests but make it multiregion flavor

* fix(automate): logs endpoint

* fix(automate): inject projectid correctly

* fix(automate): drop user-source functions

* fix(automate): owners edit, others can view

* fix(automate): simplify queries, auto workspace association

* chore(automate): appease

* chore(automate): fix function types

* fix(automate): get to workspace functions from empty state

* chore(automate): death to all slugs

* fix(automate): no create automation from function

* fix(automate): hide workspace change, tweak role access

---------

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2024-11-29 17:33:14 +01:00
Chuck Driesler fd5f316af0 fix(automate): automate module multi region (#3531)
* refactor(automate): logs api can get the projectId from the path

* fix(automate): multiregion gql resolvers

* fix(automate): multiregion event listeners

* fix(automate): drop automationCount

* fix(automate): multiregion run status

* fix(automate): correctness

* fix(automate): actually finish event listeners

* chore(automate): fix tests fix tests

* fix(automate): fix tests but make it multiregion flavor

* fix(automate): logs endpoint

* chore(automate): globalDb to db

* fix(automate): inject projectid correctly

* fix(automate): debug log fetch failure

* chore(automate): fix tests for new message

---------

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2024-11-27 15:26:09 +00:00
Chuck Driesler 566bec59a5 Revert "fix(automate): drop specklecon function templates (#3503)" (#3504)
This reverts commit adeb529826.
2024-11-16 19:57:04 +00:00
Chuck Driesler adeb529826 fix(automate): drop specklecon function templates (#3503) 2024-11-16 13:06:51 +00:00
Chuck Driesler be08246d4d SpeckleCon Templates (#3497)
* fix(specklecon): add specklecon function templates

* fix(specklecon): more templates

* Update executionEngine.ts

* Update functionManagement.ts
2024-11-14 14:47:51 +00:00
Chuck Driesler 4159a2277a fix(specklecon): add specklecon function templates (#3491) 2024-11-13 16:13:02 +01:00
Chuck Driesler e4a005f5da fix(automate): fix possible auth error (#3470) 2024-11-08 16:59:48 +00:00
Kristaps Fabians Geikins 8abc801bae chore(server): core IoC #71 - createAppTokenFactory 2024-10-16 16:59:54 +03:00
Kristaps Fabians Geikins c7c897d08f chore(server): core IoC #54 - deleting getUserById (duplicate) 2024-10-15 10:57:20 +03:00
Kristaps Fabians Geikins 1cb27e6fdd chore(server): core IoC #51 - getUser(s)Factory 2024-10-14 17:24:11 +03:00
Kristaps Fabians Geikins 6cb5022ac4 chore(server): IoC 35 - updateStreamRoleAndNotify 2024-10-09 16:31:20 +03:00
Kristaps Fabians Geikins 972af78fce chore(server): core IoC 13 - getCommit(s)Factory 2024-09-27 14:02:29 +03:00
Kristaps Fabians Geikins b2459e84e9 chore(server): core IoC 5 - getBranchLatestCommitsFactory 2024-09-26 15:48:07 +03:00
Kristaps Fabians Geikins 168a22a9ac chore(server): core IoC 3 - getBranch(es)byIdFactory 2024-09-26 14:43:55 +03:00
Kristaps Fabians Geikins 7f222cdc0f chore(server): automate IoC 14 - dataloaders 2024-09-20 16:00:05 +03:00
Kristaps Fabians Geikins b47338b50c chore(server): automate IoC 12 - createTestAutomationRunFactory 2024-09-20 15:41:09 +03:00
Kristaps Fabians Geikins 0368f9b792 fixx 2024-09-20 15:31:34 +03:00
Kristaps Fabians Geikins ad41264764 chore(server): automate IoC 11 - manuallyTriggerAutomationFactory 2024-09-20 15:29:23 +03:00
Kristaps Fabians Geikins 9fe2033051 chore(server): automate IoC 10 - onModelVersionCreateFactory 2024-09-20 15:19:15 +03:00
Kristaps Fabians Geikins ba198afe7d lint fix 2024-09-20 15:00:25 +03:00
Kristaps Fabians Geikins 20292cc5c1 chore(server): automate IoC 9 - setupRunFinishedTrackingFactory 2024-09-20 14:58:03 +03:00
Kristaps Fabians Geikins aede93d72c rename 2024-09-20 14:57:31 +03:00
Kristaps Fabians Geikins 17d7a49011 chore(server): automate IoC 8 - subscriptions service 2024-09-20 14:08:17 +03:00
Kristaps Fabians Geikins 6121893fe9 chore(server): automate IoC 7 - reportFunctionRunStatusFactory 2024-09-20 13:55:11 +03:00
Kristaps Fabians Geikins aad7128296 chore(server): automate IoC 6 - functionManagement cleanup 2024-09-20 13:42:29 +03:00
Kristaps Fabians Geikins 1ab0db422e chore(server): automate IoC 5.5 - encryption service cleanup 2024-09-20 13:39:08 +03:00
Kristaps Fabians Geikins 566d1f1977 chore(server): automatie IoC 5 - getAutomationsStatusFactory 2024-09-20 13:33:50 +03:00
Kristaps Fabians Geikins 7bc2481c43 chore(server): automatie IoC 4 - createAutomationRevisionFactory 2024-09-20 13:28:54 +03:00
Kristaps Fabians Geikins 307b688ce5 minor adjustment 2024-09-20 13:22:57 +03:00
Kristaps Fabians Geikins 7c365bf56e chore(server): automate IoC 3 - validateAndUpdateAutomationFactory 2024-09-20 13:21:37 +03:00
Kristaps Fabians Geikins 70f03fe1b3 minor adjustment 2024-09-20 13:19:14 +03:00
Kristaps Fabians Geikins 6791b36289 chore(server): automate IoC 2 - createTestAutomationFactory 2024-09-20 13:18:16 +03:00
Kristaps Fabians Geikins 80265890a0 minor adjustment 2024-09-20 13:17:46 +03:00
Kristaps Fabians Geikins 8a64e24eff chore(server): automate IoC 1 - createAutomationFactory 2024-09-20 12:42:28 +03:00
Gergő Jedlicska 5d0b3508b3 fix(automate): fix on model version create error log (#2713) 2024-08-20 16:32:11 +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
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
Kristaps Fabians Geikins 689bb4e941 feat: function update flow re-introduced (#2410) 2024-06-20 12:24:15 +03:00
Kristaps Fabians Geikins eff46485c4 feat(server): generalized automate auth code handshake mechanism (#2360)
* feat(server): generalized automate auth code handshake mechanism

* amend API requests to match with changes in https://github.com/specklesystems/speckle-automate/pull/758

* fix test

* integration fix

* deleting auth code on verification

---------

Co-authored-by: Iain Sproat <68657+iainsproat@users.noreply.github.com>
2024-06-17 17:12:17 +03:00
Gergő Jedlicska cac54f8522 feat: optionally add userId to automate backend tracking (#2362)
* feat: optionally add userId to automate backend tracking

* fix: test should reference a version in triggeringId

* fix: use empty object ref for  testing
2024-06-13 14:26:54 +02:00
Kristaps Fabians Geikins 83d8035dc2 chore: upgrade to eslint 9 (#2348)
* root + server

* frontend

* frontend-2

* dui3

* dui3

* tailwind theme

* ui-components

* preview service

* viewer

* viewer-sandbox

* fileimport-service

* webhook service

* objectloader

* shared

* ui-components-nuxt

* WIP full config

* WIP full linter

* eslint projectwide util

* minor fix

* removing redundant ci

* clean up test errors

* fixed prettier formatting

* CI improvements

* TSC lint fix

* 'buildBatch' needs to be async since some batch types (like Text) require it. Removed a disabled liniting rule from ObjLoader

* removed unnecessary void

---------

Co-authored-by: AlexandruPopovici <alexandrupopoviciioan@gmail.com>
2024-06-12 14:38:02 +03:00
Gergő Jedlicska 9efe5ef489 fix: do not allow same status override (#2346) 2024-06-07 19:48:45 +02:00