OpenFn / OpenFn/lightning

Only include required project fields when pulling state.json via the provisioner

Open
#3,044 0 comments 0 reactions 1 assignee View on GitHub

@josephjclark is already working on this.

Since Apr 29, 2025.

bug
Dominant language
Elixir
Stars
296
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
50

Description

Describe the bug
At the moment, when you pull a state.json file via GET /api/provision/:id, the server will include all fields in the Project schema including concurrency, scheduled_deletion, retention_policy.

This contradicts the api for POST /api/provision/:id because it only allows the name and description only to be updated.

We should only return the fields that the user can modify in the state.json (including the id)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.