-
Notifications
You must be signed in to change notification settings - Fork 0
import study #202
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
Open
ghazwarhili
wants to merge
33
commits into
main
Choose a base branch
from
export-import-study
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
import study #202
Changes from 28 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
afacd2b
fix
ghazwarhili 48fe04b
Merge branch 'main' into export-import-study
ghazwarhili d846b9a
clean code
ghazwarhili 97c48d3
Merge branch 'main' into export-import-study
ghazwarhili 4e89ced
clean code
ghazwarhili af818e8
clean code
ghazwarhili c6e2f3e
add TU
ghazwarhili 046507e
Merge branch 'main' into export-import-study
ghazwarhili c7a06f8
add stub for directory service
ghazwarhili 92204b4
add stub for cases-alert-threshold
ghazwarhili 4547f1f
fix sonar coverage issues
ghazwarhili 7c917c3
fix sonar issue
ghazwarhili 1370512
fix import
ghazwarhili 59e411b
enhance and clean code
ghazwarhili f0143af
Merge branch 'main' into export-import-study
ghazwarhili 185e8c8
resolve conflicts
ghazwarhili e4136a8
add node type
ghazwarhili 28faa63
fix duplicated param
ghazwarhili 27d5681
Merge branch 'main' into export-import-study
ghazwarhili 446d425
code review remarks
ghazwarhili e90d641
merge main
ghazwarhili d932a79
fix import workflow
ghazwarhili 72a21e0
clean endpoint
ghazwarhili 14f47b2
enhance TU
ghazwarhili 1b566e8
sonar issues fix
ghazwarhili 6b678dd
fix sonar issues
ghazwarhili 1a02fb5
import study pamaters
ghazwarhili bf1bee9
Revert "import study pamaters"
ghazwarhili ef2f631
code review part 1
ghazwarhili 94a6997
fix code review
ghazwarhili ba0b85d
fix tu
ghazwarhili 48afd93
clean code
ghazwarhili 65686ae
code review part 1
ghazwarhili File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/main/java/org/gridsuite/explore/server/dto/CaseInfos.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| /** | ||
| * Copyright (c) 2026, RTE (http://www.rte-france.com) | ||
| * This Source Code Form is subject to the terms of the Mozilla Public | ||
| * License, v. 2.0. If a copy of the MPL was not distributed with this | ||
| * file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
| */ | ||
| package org.gridsuite.explore.server.dto; | ||
|
|
||
| import java.util.UUID; | ||
|
|
||
| /** | ||
| * @author Ghazwa Rehili <ghazwa.rehili at rte-france.com> | ||
| */ | ||
| public record CaseInfos( | ||
| UUID caseUuid, | ||
| UUID originalCaseUuid, | ||
| String caseName, | ||
| String caseFormat | ||
| ) { | ||
| } |
22 changes: 22 additions & 0 deletions
22
src/main/java/org/gridsuite/explore/server/dto/NodeTreeExportInfos.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| /** | ||
| * Copyright (c) 2026, RTE (http://www.rte-france.com) | ||
| * This Source Code Form is subject to the terms of the Mozilla Public | ||
| * License, v. 2.0. If a copy of the MPL was not distributed with this | ||
| * file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
| */ | ||
| package org.gridsuite.explore.server.dto; | ||
|
|
||
| import java.util.List; | ||
| import java.util.UUID; | ||
|
|
||
| /** | ||
| * @author Ghazwa Rehili <ghazwa.rehili at rte-france.com> | ||
| */ | ||
| public record NodeTreeExportInfos( | ||
| String name, | ||
| String type, | ||
| UUID modificationGroupUuid, | ||
| String nodeType, | ||
| List<NodeTreeExportInfos> children | ||
| ) { | ||
| } |
21 changes: 21 additions & 0 deletions
21
src/main/java/org/gridsuite/explore/server/dto/RootNetworkExportInfos.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| /** | ||
| * Copyright (c) 2026, RTE (http://www.rte-france.com) | ||
| * This Source Code Form is subject to the terms of the Mozilla Public | ||
| * License, v. 2.0. If a copy of the MPL was not distributed with this | ||
| * file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
| */ | ||
| package org.gridsuite.explore.server.dto; | ||
|
|
||
| import java.util.Map; | ||
|
|
||
| /** | ||
| * @author Ghazwa Rehili <ghazwa.rehili at rte-france.com> | ||
| */ | ||
| public record RootNetworkExportInfos( | ||
| String name, | ||
| String tag, | ||
| Integer index, | ||
| CaseInfos caseInfos, | ||
| Map<String, Object> importParameters | ||
| ) { | ||
| } |
20 changes: 20 additions & 0 deletions
20
src/main/java/org/gridsuite/explore/server/dto/TreeExportInfos.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| /** | ||
| * Copyright (c) 2026, RTE (http://www.rte-france.com) | ||
| * This Source Code Form is subject to the terms of the Mozilla Public | ||
| * License, v. 2.0. If a copy of the MPL was not distributed with this | ||
| * file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
| */ | ||
| package org.gridsuite.explore.server.dto; | ||
|
|
||
| import java.util.List; | ||
| import java.util.UUID; | ||
|
|
||
| /** | ||
| * @author Ghazwa Rehili <ghazwa.rehili at rte-france.com> | ||
| */ | ||
| public record TreeExportInfos( | ||
| UUID studyUuid, | ||
| List<RootNetworkExportInfos> rootNetworks, | ||
| NodeTreeExportInfos nodeTree | ||
| ) { | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.