-
Notifications
You must be signed in to change notification settings - Fork 2
Export network explorer #902
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
base: main
Are you sure you want to change the base?
Conversation
… rework-export-network-file
… rework-export-network-file
… rework-export-network-file
28c9be9 to
5e920ec
Compare
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
| } | ||
|
|
||
| public UUID exportNetwork(UUID networkUuid, UUID studyUuid, String variantId, String fileName, String format, String userId, String parametersJson) { | ||
| public UUID exportNetwork(UUID networkUuid, UUID studyUuid, String variantId, String filename, NodeExportInfos exportInfos, String format, String userId, String parametersJson) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move filename to NodeExportInfos ?
It will also fix your problems of too many parameters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
6ac474f to
82df1f8
Compare
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
82df1f8 to
88a1c24
Compare
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
|
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
| this(elementUuid, elementName, type, owner, subdirectoriesCount, description, null, null); | ||
| } | ||
|
|
||
| // DTO in directory-server has others properties : creationDate, lastModificationDate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To remove. It's accepted in gridsuite to duplicate dtos between servers
| studyService.assertRootNodeOrBuiltNode(studyUuid, nodeUuid, rootNetworkUuid); | ||
| UUID exportUuid = studyService.exportNetwork(studyUuid, nodeUuid, rootNetworkUuid, fileName, format, userId, parametersJson); | ||
| UUID parentDirectoryUuid = parentDirectoryUuidStr != null ? UUID.fromString(parentDirectoryUuidStr) : null; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove empty row
| UUID caseUuid = caseService.createCase(exportFolder + DELIMITER + exportUuid + DELIMITER + nodeExport.fileName() + ZIP_EXTENSION, "application/zip"); | ||
| directoryService.createElement(nodeExport.directoryUuid(), nodeExport.description(), caseUuid, nodeExport.fileName(), DirectoryService.CASE, userId); | ||
| } catch (Exception e) { | ||
| errorMessage = e.getMessage(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong error management. You should use the new system a93f6ef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this error will be sent in the notification
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but i can change if you wish to throw a studyException
| UUID exportUuid = networkConversionService.exportNetwork(networkUuid, studyUuid, variantId, fileName, format, userId, parametersJson); | ||
|
|
||
| if (exportInfos.exportToExplorer() && directoryService.elementExists(exportInfos.directoryUuid(), exportInfos.fileName(), DirectoryService.CASE)) { | ||
| throw new StudyException(ELEMENT_ALREADY_EXISTS); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The snackbar is weird on front's side. Maybe the front code is to be adjusted ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i 've put a translation in commons-ui
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
58a722b to
7e490c3
Compare
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>



PR Summary