Skip to content

feat(pipelines): follow the workspace country currency by default - #1575

Merged
viethung0o0 merged 3 commits into
mainfrom
feat/pipeline-currency-setting
Oct 28, 2026
Merged

viethung0o0 merged 3 commits into
mainfrom
feat/pipeline-currency-setting

Conversation

@viethung0o0

@viethung0o0 viethung0o0 commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • A new pipeline uses the currency of the workspace's Target Country, or USD when no country is set.
  • Each pipeline can still pick its own currency in Settings → General; "follow workspace" shows which country and currency it resolves to.
  • Changing the workspace country updates open boards right away.
  • Public API: currency stays the effective currency, currencyOverride is new, and pipelines.update accepts currency: null to follow the workspace again. The CLI can send --currency null.
  • Events, webhooks and {{pipelines.*}} variables use the effective currency. Values are never converted.
  • Existing pipelines keep their saved currency, so no board changes on deploy.

Deploy

  • One migration (currency becomes nullable); apply it before the new code.
  • Replace builder and worker together; old code cannot read a pipeline without a currency, so do not roll back once new pipelines exist.

Verification

  • pnpm lint, i18n check and schema drift check
  • check-types for utils, database, business, variables, cli, worker and builder
  • Unit tests for utils, database, business, cli and builder; database-backed tests for pipeline repositories and services
  • Checked in the browser: follow/override/reset in pipeline settings, the follow option showing the resolved country and currency (or USD with no country), and open boards updating live when the workspace country changes, including boards with their own currency

@github-actions github-actions Bot added the feature New feature or request label Oct 28, 2026
@viethung0o0
viethung0o0 marked this pull request as ready for review October 28, 2026 07:03
@viethung0o0
viethung0o0 merged commit 7b57f2b into main Oct 28, 2026
14 checks passed
hello-jackytruong referenced this pull request in hello-jackytruong/ChatWorkAI Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants