OpenFn / OpenFn/lightning

Inspector: If the server goes offline, all edits will be lost (even after reconnect)

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

Nobody has claimed this yet.

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

Description

We have a few issues in the Inspector when Lightning goes offline.

  • The save button doesn't re-enable when the server comes back
  • Any changes made since the server went offline are lost

I've tested this on 2.11.2 and on the Xander/Farhan React refactor branch

Repro Steps

Start up a local server, open a Workflow and edit a Step, then kill your server.

You'll see an offline notification in the top-right corner of the app, and the save button will disable.

Edit the source.

Restart the server and the offline icon will vanish. But the save icon will remain disabled.

Hit ctrl + S to save. It'll probably say it was successful. But refresh the page and all changes will be lost

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 in the Inspector's offline/reconnect flow and reproduce the issue with a local server: edit a Step while the server is stopped, then restart it. Trace the offline notification and save-button state through reconnect, and verify that edits remain available and are persisted after Ctrl+S and a page refresh.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.