intelops / genpod

GenPod.dev UI
Other
0 stars 4 forks source link

Project Data Lost sometimes #68

Closed pavan-intelops closed 8 months ago

pavan-intelops commented 8 months ago

Project data is being lost sometimes because of early polling and delayed fetch.

Steps on how and why is it happening:

  1. if the project polling starts before the fetch of project an empty project is polled.
  2. When the empty project is polled to back-end the project in database is overridden with empty nodes and edges

Possible Fix:

  1. (Quick way) Do NOT poll unless the fetch is happened.
  2. (Best Way) to have separate route to clear the project and if there is an update request with empty nodes and edges app-server simply rejects the request
pavan-intelops commented 8 months ago

the issue is fixed by delaying the components rendering until the zustand state is hydrated