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
{{ message }}
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.
Maybe related to #33 & #327 because these require paralleling.
Is your feature request related to a problem? Please describe.
If the user is starting any blocking action like creating a project, delete project or reinstalling dependencies. There is no way to cancel the task or continue working and the user is forced to wait for the completion.
Cancel is sometimes necessary if you detect that you want to finish something before actually doing that task or if the blocking task is triggered accidentially.
Describe the solution you'd like
I think we split this into to solutions we can tackle this:
Cancel the blocking action. After a warning we need to do additional handling but we need to discuss how to do it:
Should we restore the project to the state before the task occured (e.g. deleting aborted could leave some files)
Leave the project broken (e.g. partially deleted project) - I'd prefer the restoring
Paralleling tasks so the user can click on the backdrop and continue work. This is somewhat more complicated as it involves some parts we don't have right now:
Backdrop click can start task to run in background with a notification that it's still running
Notification system to display a message that a background task finished
Pending tasks list so the user can see which tasks are running
Blocking heavy tasks (Reinstall / CreateNewProkect): Don't allow two heavy tasks in parallel e.g. two project creations could slow down system performance but the user could definetly install a dependency or start a dependency in parallel to a new project creation
Additional context
We could almost split this in two tasks but I combined it into one issue as the goal is similar - allow the user to continue to work.
I would start with cancel task and later with the paralleling as the canceling is also required for paralleling.
Blocking tasks details to handling after cancel:
Reinstall - aborting should be no problem as the next reinstall will overwrite node_modules folder but tracking of abort required as it could break scripts because of a missing dependency. Showing the Missing dependency message would be OK here
CreateNewProject - remove partially created project from disk with rimrafAsync after abort
Delete project - restore project or leave the project broken? Restoring would be possible if we can trigger a restore from trash then we don't have to manually create a backup copy.
Note
I think the paralleling issue is too large to discuss here in every detail and if we really want this feature we should move it to a separate issue. Just add what you think about it with-out going into the details.
Is it worth to add or is cancelling enough as it's way easier to implement?
The text was updated successfully, but these errors were encountered:
Maybe related to #33 & #327 because these require paralleling.
Is your feature request related to a problem? Please describe.
If the user is starting any blocking action like creating a project, delete project or reinstalling dependencies. There is no way to cancel the task or continue working and the user is forced to wait for the completion.
Cancel is sometimes necessary if you detect that you want to finish something before actually doing that task or if the blocking task is triggered accidentially.
Describe the solution you'd like
I think we split this into to solutions we can tackle this:
Cancel the blocking action. After a warning we need to do additional handling but we need to discuss how to do it:
Paralleling tasks so the user can click on the backdrop and continue work. This is somewhat more complicated as it involves some parts we don't have right now:
Additional context
We could almost split this in two tasks but I combined it into one issue as the goal is similar - allow the user to continue to work.
I would start with cancel task and later with the paralleling as the canceling is also required for paralleling.
Blocking tasks details to handling after cancel:
node_modules
folder but tracking of abort required as it could breakscripts
because of a missing dependency. Showing theMissing dependency message
would be OK hererimrafAsync
after abortNote
I think the paralleling issue is too large to discuss here in every detail and if we really want this feature we should move it to a separate issue. Just add what you think about it with-out going into the details.
Is it worth to add or is cancelling enough as it's way easier to implement?
The text was updated successfully, but these errors were encountered: