add script to update cases with empty metadata in database#44
Open
basseche wants to merge 7 commits into
Open
Conversation
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
etiennehomer
requested changes
Jun 12, 2025
| response = requests.put(constant.MIGRATE_V214_TAP_CHANGER_STEPS.format(networkId=network_id, variantNum=variant_num)) | ||
| response.raise_for_status() | ||
|
|
||
| def get_cases_empty_metadata(): |
Contributor
There was a problem hiding this comment.
to be moved to cases.py
| from functions.plateform.plateform import check_server_status | ||
| from functions.plateform.plateform import get_plateform_info | ||
| from functions.networks.networks import get_cases_empty_metadata | ||
| from functions.networks.networks import migrate_cases_updateMetadata |
| print("\n") | ||
| print("===> powsybl-case-server seems OK ! The script can proceed") | ||
| print("\n") | ||
| casesUuid = get_cases_empty_metadata() |
| casesUuid = get_cases_empty_metadata() | ||
| print("table content : ") | ||
| print(str(casesUuid)) | ||
| ## print("For a total of " + str(len(casesUuid)) + " casesUuid") |
Contributor
There was a problem hiding this comment.
You should make this log work and uncomment
|
|
||
| # TODO add command parameter to set this DEV | ||
| DEV = False | ||
| DEV = True |
Co-authored-by: etiennehomer <etiennehomer@gmail.com>
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



No description provided.