You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we can probably be able to create the workspace here in the import listener, just for the first entity
or we can just intercept the /api/import early and create the workspace and then delegate to the normal /api/import behavior
the problem in both cases will be to propagate the workspace created to the client, right now there is no way, we can not also redirect directly to the new workspace because the import result can contain metadata/errors that the client is expected to handle and if we just redirect such data is lost.
the best way to handle this will be on client side (studio), we will need some kind of async hook/listener that is invoked before we call the Import button that executes the /api/import request, there we will just create the workspace with normal Studio.playground.save(), update the studio url and just continue with normal code execution flow of the import.
It is quite annoying to always create a blank workspace and then import. It could maybe automatic somehow.
The text was updated successfully, but these errors were encountered: