kitodo / kitodo-production

Kitodo.Production is a workflow management tool for mass digitization and is part of the Kitodo Digital Library Suite.
http://www.kitodo.org/software/kitodoproduction/
GNU General Public License v3.0
62 stars 63 forks source link

Modify KitodoScript action:deleteProcess to superordinate processes #5342

Open andre-hohmann opened 2 years ago

andre-hohmann commented 2 years ago

Is your feature request related to a problem? Please describe. According to #3728, the KitodoScript "deleteProcess" exists in Kitodo.Production 3.x. It is possible to apply the script of Kitodo.Production 2.x, but some processes are not deleted correctly. The following has been observed.

If one or more superordinate processes which contain linked subordinate processes are deleted with the script the following messages occur:

Furthermore, there are the following consequences:

  1. The process is not shown anymore in the process list, but not deleted in the index. Therefore, a new indexation is necessary.
  2. The remaining subordinate processes cannot be deleted anymore via the user interface (script or button).

To Reproduce Steps to reproduce the behavior:

  1. Select several unnecessary processes with at least one superordinate process which contains linked subordinate processes in the process list
  2. Click on 'Actions'
  3. Click on "Execute KitodoScript"
  4. Insert manually action:deleteProcess contentOnly:false in the text field 'Script'
  5. Click on 'Execute KitodoScript'
  6. See error message described above

Describe the solution you'd like If one or more superordinate processes with linked subordinate processes are deleted with the script, the following should be applied:

  1. The deletion of the superordinate process is aborted
  2. The messages occur:

If "usual" processes and superordinate processes with linked subordinate processes are deleted, the following should be applied:

  1. The "usual" processes are deleted as expected
  2. The deletion of the superordinate processes is aborted
  3. The messages occur:

Probably related issues

matthias-ronge commented 1 year ago

Labeled as bug because it breaks the search index.