Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(automate): automate module multi region #3531

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

cdriesler
Copy link
Member

@cdriesler cdriesler commented Nov 20, 2024

Description & motivation

  • Move (almost all) automate module endpoints to multiregion logic

Changes:

  • rest, gql, and event listeners
  • pending:
    • how to count automations a function is used in (requires counting in all regions) (or just deleting this capability?)
      • deleted lol
    • how to find project based on function run id (status reporting from automate)

Confirmed triggers work, automations can be queried, and functions/reconciler can report results with the user-facing api changes.

Copy link

linear bot commented Nov 20, 2024

@cdriesler cdriesler marked this pull request as ready for review November 21, 2024 19:17
@@ -21,27 +19,30 @@ import { Application } from 'express'

export default (app: Application) => {
app.get(
'/api/automate/automations/:automationId/runs/:runId/logs',
'/api/v1/projects/:projectId/automations/:automationId/runs/:runId/logs',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it fine breaking this API?

Copy link
Contributor

@gjedlicska gjedlicska Nov 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, its only the frontend, that uses this api and that should have been updated in this pr right @cdriesler?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes has been adjusted to reflect this 👍

@@ -22,7 +22,7 @@
"build:clean": "rimraf ./dist && yarn build",
"dev:clean": "yarn build:clean && yarn dev",
"dev:server:test": "cross-env DISABLE_NOTIFICATIONS_CONSUMPTION=true NODE_ENV=test LOG_LEVEL=silent LOG_PRETTY=true node ./bin/ts-www",
"test": "cross-env NODE_ENV=test LOG_LEVEL=silent LOG_PRETTY=true mocha",
"test": "cross-env NODE_ENV=test LOG_PRETTY=true mocha",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you remove the LOG_LEVEL=silent?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants