[GRASS-dev] [GRASS GIS] #2801: wxGUI modeler: overwrite flag not saved when reopening module dialog

#2801: wxGUI modeler: overwrite flag not saved when reopening module dialog
------------------------------------+-------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.3
Component: wxGUI | Version: 7.0.1
Keywords: modeler overwrite flag | CPU: Unspecified
Platform: Unspecified |
------------------------------------+-------------------------
In the GUI modeler:

* add any module
* in the module dialogue check the overwrite flag checkbox
* close the module dialogue
* reopen the module dialogue

Result: the overwrite flag is not checked anymore. You have to explicitely
set the flag everytime you reopen a module dialogue. Very annoying...

I have this issue in 7.0.1 and cannot verify whether this is also an issue
in trunk because of #2800.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2801&gt;
GRASS GIS <https://grass.osgeo.org>

#2801: wxGUI modeler: overwrite flag not saved when reopening module dialog
--------------------------+------------------------------------
  Reporter: mlennert | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.3
Component: wxGUI | Version: 7.0.1
Resolution: | Keywords: modeler overwrite flag
       CPU: Unspecified | Platform: Unspecified
--------------------------+------------------------------------

Comment (by martinl):

There were two issues - wxGUI part fixed in r66941. Moreover
`G_recreate_command()` ignored global options (like `--overwrite`), this
issue is fixed r66940. After some testing I will backport both changes to
relbr70.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2801#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#2801: wxGUI modeler: overwrite flag not saved when reopening module dialog
--------------------------+------------------------------------
  Reporter: mlennert | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.3
Component: wxGUI | Version: 7.0.1
Resolution: | Keywords: modeler overwrite flag
       CPU: Unspecified | Platform: Unspecified
--------------------------+------------------------------------

Comment (by martinl):

Replying to [ticket:2801 mlennert]:

> Result: the overwrite flag is not checked anymore. You have to
explicitely set the flag everytime you reopen a module dialogue. Very
annoying...

Please note that you can set overwrite globally for model in `Model ->
Properties` (Graphical Modeler) or for whole GUI in `GUI Preferences ->
Modules` (Layer Manager).

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2801#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#2801: wxGUI modeler: overwrite flag not saved when reopening module dialog
--------------------------+------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: normal | Milestone: 7.0.3
Component: wxGUI | Version: 7.0.1
Resolution: | Keywords: modeler overwrite flag
       CPU: Unspecified | Platform: Unspecified
--------------------------+------------------------------------
Changes (by martinl):

* owner: grass-dev@… => martinl
* cc: grass-dev@… (added)
* status: new => assigned

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2801#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>

#2801: wxGUI modeler: overwrite flag not saved when reopening module dialog
--------------------------+------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: normal | Milestone: 7.0.3
Component: wxGUI | Version: 7.0.1
Resolution: | Keywords: modeler overwrite flag
       CPU: Unspecified | Platform: Unspecified
--------------------------+------------------------------------

Comment (by wenzeslaus):

Replying to [comment:2 martinl]:
> Replying to [ticket:2801 mlennert]:
>
> > Result: the overwrite flag is not checked anymore. You have to
explicitely set the flag everytime you reopen a module dialogue. Very
annoying...
>
> Please note that you can set overwrite globally for model in `Model ->
Properties` (Graphical Modeler) or for whole GUI in `GUI Preferences ->
Modules` (Layer Manager).

BTW, I think the global settings is a best practice and should be
preferred.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2801#comment:4&gt;
GRASS GIS <https://grass.osgeo.org>

#2801: wxGUI modeler: overwrite flag not saved when reopening module dialog
--------------------------+------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: normal | Milestone: 7.0.3
Component: wxGUI | Version: 7.0.1
Resolution: | Keywords: modeler overwrite flag
       CPU: Unspecified | Platform: Unspecified
--------------------------+------------------------------------

Comment (by mlennert):

Replying to [comment:4 wenzeslaus]:
> Replying to [comment:2 martinl]:
> > Replying to [ticket:2801 mlennert]:
> >
> > > Result: the overwrite flag is not checked anymore. You have to
explicitely set the flag everytime you reopen a module dialogue. Very
annoying...
> >
> > Please note that you can set overwrite globally for model in `Model ->
Properties` (Graphical Modeler) or for whole GUI in `GUI Preferences ->
Modules` (Layer Manager).
>
> BTW, I think the global settings is a best practice and should be
preferred.

Are you speaking about the global setting in the modeler or for the whole
GUI ?

In both cases I strongly disagree. IMHO, automatic overwrite should not be
the default setting. It should always be a deliberate choice by the user.

Thank you for the fixes, Martin, I'll test as soon as possible.

Moritz

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2801#comment:5&gt;
GRASS GIS <https://grass.osgeo.org>

#2801: wxGUI modeler: overwrite flag not saved when reopening module dialog
--------------------------+------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: normal | Milestone: 7.0.3
Component: wxGUI | Version: 7.0.1
Resolution: | Keywords: modeler overwrite flag
       CPU: Unspecified | Platform: Unspecified
--------------------------+------------------------------------

Comment (by mlennert):

Replying to [comment:1 martinl]:
> There were two issues - wxGUI part fixed in r66941. Moreover
`G_recreate_command()` ignored global options (like `--overwrite`), this
issue is fixed r66940. After some testing I will backport both changes to
relbr70.

A quick test shows that both the modeler fix and the general lib fix seem
to work here.

Moritz

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2801#comment:6&gt;
GRASS GIS <https://grass.osgeo.org>

#2801: wxGUI modeler: overwrite flag not saved when reopening module dialog
--------------------------+------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: normal | Milestone: 7.0.3
Component: wxGUI | Version: 7.0.1
Resolution: | Keywords: modeler overwrite flag
       CPU: Unspecified | Platform: Unspecified
--------------------------+------------------------------------

Comment (by wenzeslaus):

Replying to [comment:5 mlennert]:
> Replying to [comment:4 wenzeslaus]:
> > Replying to [comment:2 martinl]:
> > > Replying to [ticket:2801 mlennert]:
> > >
> > > > Result: the overwrite flag is not checked anymore. You have to
explicitely set the flag everytime you reopen a module dialogue. Very
annoying...
> > >
> > > Please note that you can set overwrite globally for model in `Model
-> Properties` (Graphical Modeler) or for whole GUI in `GUI Preferences ->
Modules` (Layer Manager).
> >
> > BTW, I think the global settings is a best practice and should be
preferred.
>
> Are you speaking about the global setting in the modeler or for the
whole GUI ?
>
> In both cases I strongly disagree. IMHO, automatic overwrite should not
be the default setting. It should always be a deliberate choice by the
user.

`Model -> Properties` applies just to the current model (global for the
whole model), right? If the alternative is overwrite checked for every
individual module, then yes, I think it is better.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2801#comment:7&gt;
GRASS GIS <https://grass.osgeo.org>

#2801: wxGUI modeler: overwrite flag not saved when reopening module dialog
--------------------------+------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.3
Component: wxGUI | Version: 7.0.1
Resolution: fixed | Keywords: modeler overwrite flag
       CPU: Unspecified | Platform: Unspecified
--------------------------+------------------------------------
Changes (by martinl):

* status: assigned => closed
* resolution: => fixed

Comment:

Replying to [comment:1 martinl]:
> There were two issues - wxGUI part fixed in r66941. Moreover
`G_recreate_command()` ignored global options (like `--overwrite`), this
issue is fixed r66940. After some testing I will backport both changes to
relbr70.

Both issues backported (r67374 and r66981). Closing this ticket, feel free
to reopen if needed.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2801#comment:8&gt;
GRASS GIS <https://grass.osgeo.org>