Project

General

Profile

Actions

Bug #4431

open

Export Archive actions should share code where possible

Added by Derik Barseghian over 14 years ago. Updated over 14 years ago.

Status:
New
Priority:
Normal
Category:
core
Target version:
Start date:
09/30/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4431

Description

There should be a class with common gui-free export functionality that resides in core (or the like), that files like ExportArchiveAction and ExportRunsToKAR (in provenance suite) can both utilize. Right now we have duplicate code so reporting and workflow-run-manager can have a gui-free version of export with ExportRunsToKAR.

Actions #1

Updated by Aaron Aaron over 14 years ago

Because the WorkflowRun KAR is generated without using the ExportArchiveAction functionality from the gui, it is impossible to rename a workflow without first saving it as a Workflow KAR.

For example: Start a new workflow, run it, right click on the run, save to archive. The workflow saved in the archive is "Unnamed#" and there is no way for the user to rename the workflow before it is saved.

The fix for this is to extend the ExportArchiveAction class from WorkflowRunManager. However, the ExportArchiveAction may need some changes in order to accommodate the special needs of saving the WorkflowRun KAR, such as ignoring semantic type querying and retrieving the new name entered by the user before actually saving the KAR (so the provenance store and WorkflowRuns can be updated with that name before saving).

This is all good functionality to have in the common interface and may prove useful to others who want to use it in similar fashion. It is worth doing and will prevent further code duplication and divergence.

Actions #2

Updated by Redmine Admin about 11 years ago

Original Bugzilla ID was 4431

Actions

Also available in: Atom PDF