Skip to content

S3 cases migration#63

Merged
etiennehomer merged 12 commits intomainfrom
migration_python
Feb 12, 2025
Merged

S3 cases migration#63
etiennehomer merged 12 commits intomainfrom
migration_python

Conversation

@etiennehomer
Copy link
Collaborator

@etiennehomer etiennehomer commented Jan 29, 2025

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?
Add an endpoint for cases migration that allow to import a case with a given UUID

Does this PR introduce a new Powsybl Action implying to be implemented in simulators or pypowsybl?

  • Yes, the corresponding issue is here
  • No

What is the current behavior?
The server generates the case UUID.

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

etiennehomer and others added 6 commits January 28, 2025 18:06
Signed-off-by: Etienne Homer <etiennehomer@gmail.com>
Signed-off-by: Etienne Homer <etiennehomer@gmail.com>
Signed-off-by: Etienne <etiennehomer@gmai.com>
Signed-off-by: Etienne <etiennehomer@gmai.com>
Signed-off-by: Etienne Homer <etiennehomer@gmail.com>
Signed-off-by: Etienne Homer <etiennehomer@gmail.com>
LOGGER.debug("importCase request received with file = {}", file.getName());
UUID caseUuid = caseService.importCase(file, withExpiration, withIndexation);
UUID caseUuid = UUID.randomUUID();
caseService.importCase(file, withExpiration, withIndexation, caseUuid);
Copy link
Collaborator

Choose a reason for hiding this comment

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

so you are creating a randomuuid ? the db is not doing it automaticaly ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

ok I think I see instead of generating in service it is generated there

Copy link
Collaborator

@EtienneLt EtienneLt left a comment

Choose a reason for hiding this comment

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

test Ok

Signed-off-by: Etienne Homer <etiennehomer@gmail.com>
Signed-off-by: Etienne Homer <etiennehomer@gmail.com>
Signed-off-by: Etienne Homer <etiennehomer@gmail.com>
@sonarqubecloud
Copy link

@etiennehomer etiennehomer merged commit 654e70b into main Feb 12, 2025
5 checks passed
@etiennehomer etiennehomer deleted the migration_python branch February 12, 2025 13:42
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.

3 participants