daisy / pipeline-ui

A user interface for the DAISY Pipeline 2
MIT License
5 stars 2 forks source link

Always show a warning when the application is quit and non-empty jobs are present #127

Closed bertfrees closed 4 months ago

bertfrees commented 1 year ago

Especially when the application is quit by closing the window (with the "Close the application" setting active), but also when it quit another way, a warning would be appropriate. The reasoning is that it may always happen that the user quits the application by accident. Most applications will show a warning before quitting if by quitting you will loose data.

When the "Close the application" setting is combined with "Close all non-running jobs", closing the window already results in warnings, but not when it is combined with "Keep all jobs opened".

bertfrees commented 1 year ago

With the version that Marisa sent me last Saturday, this issue is not fixed yet. Cases where the application still quits without a warning are:

marisademeglio commented 10 months ago

I checked the different scenarios described in this thread and I always get a warning so this looks fixed to me.

bertfrees commented 8 months ago

I now always get a "Jobs are going to be removed from the application" warning when I quit the application, even if no jobs are present. As a user I wish to not get this warning when it is not needed, e.g. because I already closed all jobs. It is confusing and annoying.

Note that if only finished jobs are present, I would like to get the warning, as is currently the case, but with a "don't warn me again" option, as suggested in https://github.com/daisy/pipeline-ui/issues/128.

bertfrees commented 4 months ago

Could this be planned for an upcoming milestone? If it's not too much work, perhaps even the current milestone?

NPavie commented 4 months ago

hi @bertfrees , i did a quick round on that : I think i was not correctly filtering the jobs to "protect" from removal so i reworked / rephrased it as this.

If i understand, we want the user to be warned about possibly loosing data in case of jobs that have any data put in it, being either

So that the warning should be displayed in presence of any

NPavie commented 4 months ago

(for the don't warn me again checkbox, that can be added with an additionnal setting to be specified if its more granular than just "always warn about non empty jobs on closing the application" )

bertfrees commented 4 months ago

@NPavie Thanks!

If i understand, we want the user to be warned about possibly loosing data in case of jobs that have any data put in it

Correct! That was the idea.

Regarding the "don't warn me again" checkbox: I think in addition to not showing a warning when it is not needed (which is really annoying for the user), an option to don't warn again could be useful too because some users will find the warnings annoying anyway.

An additional setting might indeed be useful too. If possible, I think it would be preferrable to combine it with the two other settings.

bertfrees commented 4 months ago

@NPavie OK much better, thanks.

bertfrees commented 4 months ago

@marisademeglio Yes, can be closed.