Open aarondr77 opened 1 year ago
This was reported by M.B and then confirmed here and on an enterprise JupyterHub this week.
We should investigate if the same issue occurs on pivot tables, concat, and other sheet creating events.
This is 95% just a race condition about when the step id of a valid step gets saved. I think we can easily fix this by saving the step ID before the step completes, and then popping it if it generates an error.
https://github.com/mito-ds/mito/assets/18709905/613759c3-020c-49d1-b1d2-cc12e15da6aa
Note that this is at least somewhat separate from Mito internal state management as this occurs on a fresh Mitosheet.
We should start by profiling this to see where the operation is running. Possible solutions are: