-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import export improvements #521
Conversation
forgot to commit some changes
fix: pipeline.xml doesn't export jarDirectory in template
…ces that use the configuration of its template In system the pipeline is imported to, DPU template with matching name was found, but they have different configuration. Two different import strategies are available: 1. to use the DPU template of the system it is imported to and lose the original configuration (the pipeline may not work the way as in the original system) 2. to replace the DPU instance configuration so it will work exactly as in the system it is imported from
Will review today |
Major issue: Imported pipelines are different then the exported pipelines UV A has DPU templates T1 and T1.1, which is child of T1. UV A has pipeline P with DPU X, which is an instance of DPU template T1.1. (3rd level), which is instance of DPU template T1 (2nd level). UV B has DPU the same set of DPUs. If I export pipeline P from UV A and import to UV B, the imported pipeline will have DPU Y, which is instance of T1 directly. So basically export and import changes DATA and also the work done by pipeline designer on UV A is simply lost by importing to UV B (the imported pipeline is using different DPU templates). As I discussed with @mvi-eea-sk , he was doing the matching of 3rd level DPU templates anyway (for the case when DPU template config is checked), so this should be used for all templates. Solution: DPU instances of 3rd lvl templates (with unchecked "Use template configuration") are also mapped to 3rd lvl templates in the target system. When importing, it is simply checked that the 3rd level template is in the target system. If not, it cannot be imported and the missing DPU is among missing DPUs (in the import dialog). The 3rd lvl template on the target system is matched by the name and type (JAR file). IT is NOT checked that the configuration of the target system's 3rd level template is the same as the configuration of the source system's 3rd level template, because the imported DPU instance anyway uses its instance configuration. |
When I try to import a pipeline This is really confusing. I would expect that in this case, I DO NOT get any big error message, but, there will be information that certain DPU template missing in the system (better would be to inform that required version of certain DPU template is missing), which is more or less shown in the lower table (see below). Instead of the big and confusing warning message, there should be some red text below the table with missing DPU templates saying "Import is not possible due to missing DPU templates". |
One further note: Is it really so difficult to implement "installing DPU templates that are not present in the system when importing pipeline from zip"? It is really confusing to be start by importing pipeline, then closing the dialog, switching to dpu templates, importing dpu templates, then re-import pipelines. It seems to me that the only thing which must be developed is one button on pipeline import dialog, which calls "dpuTemplate.import()". Or am I not correct? It should work in this way:
|
@mvi-eea-sk Please call me on Monday - morning. |
TODO @tomas-knap Labels for import strategy |
…edViews/Core into feature/#356_import_export
I checked the previous bugs above and these are solved |
…, update of SK localization
@tomas-knap layout adjusted
|
Conflicts: commons-app/src/main/java/cz/cuni/mff/xrg/odcs/commons/app/pipeline/transfer/ImportService.java frontend/src/main/java/cz/cuni/mff/xrg/odcs/frontend/gui/dialog/PipelineImport.java frontend/src/main/resources/frontend-messages.properties frontend/src/main/resources/frontend-messages_sk.properties
Pipeline import from zip file
Implemented features / changes:
Import strategies for 3rd lvl DPU templates with matching name but different configuration:
Minor fixes:
NOT implemented yet:
Note: