Menu

#19 purge/remove: not deleting workflow-file anymore

2.0
closed
Peter B.
2025-11-19
2025-11-19
Peter B.
No

The purge function to remove a signature from the workflow (Admin > Remove Entry) didn't remove the workflow-file (workflow-xml) anymore after switching to JSON capture requests.

All other things were deleted, but the workflow-file stays in the "todo" folder.

Discussion

  • Peter B.

    Peter B. - 2025-11-19
    • Milestone: 1.0 --> 2.0
     
  • Peter B.

    Peter B. - 2025-11-19
    • status: open --> closed
     
  • Peter B.

    Peter B. - 2025-11-19

    Fixed in revision 561.

    The reason was that "$delete_targets" list in MthkTask::purge_data() method resolved the "CAPTURE_REQUEST" filename patterns for the workflow files:

    $this->get_filename('CAPTURE_REQUEST', 'CAPTURE_REQUEST', 'TASK/TO_DO'),

    this worked in the past, because capture_request and workflow_files were /both/ '.v_ingest'.

    The correct code is now:

    $this->get_filename('WORKFLOW_FILE', 'WORKFLOW_FILE', 'TASK/TO_DO'),

     

Log in to post a comment.

MongoDB Logo MongoDB