Skip to content

add script to update cases with empty metadata in database#44

Open
basseche wants to merge 7 commits into
mainfrom
Migration_Cases_MetaData
Open

add script to update cases with empty metadata in database#44
basseche wants to merge 7 commits into
mainfrom
Migration_Cases_MetaData

Conversation

@basseche
Copy link
Copy Markdown

@basseche basseche commented Jun 5, 2025

No description provided.

Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
@basseche basseche self-assigned this Jun 5, 2025
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
Comment thread scripts/functions/networks/networks.py Outdated
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():
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be moved to cases.py

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Comment thread scripts/migrate_cases_empty_metadata.py Outdated
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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to remove

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Comment thread scripts/migrate_cases_empty_metadata.py Outdated
print("\n")
print("===> powsybl-case-server seems OK ! The script can proceed")
print("\n")
casesUuid = get_cases_empty_metadata()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

caseUuids

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Comment thread scripts/constant.py Outdated
Comment thread scripts/migrate_cases_empty_metadata.py Outdated
casesUuid = get_cases_empty_metadata()
print("table content : ")
print(str(casesUuid))
## print("For a total of " + str(len(casesUuid)) + " casesUuid")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should make this log work and uncomment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Comment thread scripts/constant.py Outdated

# TODO add command parameter to set this DEV
DEV = False
DEV = True
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To revert

basseche and others added 4 commits June 13, 2025 10:57
Co-authored-by: etiennehomer <etiennehomer@gmail.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>
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants