OpenFn / OpenFn/lightning

Hitting save in the JobEditor resets the state of the selected dataclip.

Open
#3,241 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug
Selected dataclip in the input tab of JobEditor gets reset after a save

Version number v2.12.2 (1.4.37)

I have reproduced this locally on main:

  • Yes
  • No

To Reproduce Steps to reproduce the behavior:

  1. Open the Job Editor.
  2. Select a dataclip from the inputs tab.
  3. Save your progress in the jobEditor
  4. You'll notice your selected dataclip gets unselected.

Expected behavior
We expect the state of the selected dataclip to remain as selected when a save happens

Screenshots If applicable, add screenshots to help explain your problem.

Before Save After Save

Image

Image

Additional context

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.

Research direction

Start by reproducing the issue in the JobEditor: select a dataclip in the inputs tab, save, and confirm whether the selection is cleared. Trace the JobEditor save flow and selected-dataclip state, then add coverage for saving while a dataclip is selected. Done means the selection remains unchanged after saving.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.