Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @openfn/cli

## 1.28.2

### Patch Changes

- `project deploy`: Fix an issue where the version history returned by the Provisioner can be incorrect, resulting in constant incorrect divergence warnings

## 1.28.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openfn/cli",
"version": "1.28.1",
"version": "1.28.2",
"description": "CLI devtools for the OpenFn toolchain",
"engines": {
"node": ">=18",
Expand Down
14 changes: 12 additions & 2 deletions packages/cli/src/projects/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,16 +329,26 @@ export async function handler(options: DeployOptions, logger: Logger) {

logger.info('Sending project to app...');

const { data: result } = await deployProject(
/*const { data: result } =*/ await deployProject(
endpoint,
config.apiKey,
state,
logger
);

// TMP because of a provisioner bug, fetch the project back down
// rather than just using the returned value
// (the history will be incorrect)
// https://github.com/OpenFn/lightning/issues/4455
const { data: result } = await fetchProject(
endpoint,
config.apiKey,
state.id
);

const finalProject = await Project.from(
'state',
result,
result as any,
{
endpoint: endpoint,
alias,
Expand Down