Skip to content
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

PSSE. copy of the imported PSSE model to make the updates and export #2946

Merged
merged 9 commits into from
May 22, 2024

Conversation

marqueslanauja
Copy link
Contributor

@marqueslanauja marqueslanauja commented Mar 21, 2024

…copy)

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)

Does this PR already have an issue describing the problem?

What kind of change does this PR introduce?

Feature

What is the current behavior?

The original psse records are updated before exporting them.

What is the new behavior (if this is a feature change)?
Original psse records are always preserved. A partial copy, only the updated record groups are copied, is made before updating them.

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

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

Other information:

…copy)

Signed-off-by: José Antonio Marqués <marquesja@aia.es>
@zamarrenolm
Copy link
Member

I think it would be better to deep copy all the record groups when preparing the updated data, instead of deep copy some of them and keeping references for others. If later we have to make updates in a record group that is only saved as a reference we have to remember to make the deep copy first.

@marqueslanauja
Copy link
Contributor Author

I think it would be better to deep copy all the record groups when preparing the updated data, instead of deep copy some of them and keeping references for others. If later we have to make updates in a record group that is only saved as a reference we have to remember to make the deep copy first.

We can think about it.

@marqueslanauja marqueslanauja marked this pull request as ready for review May 10, 2024 09:42
@geofjamg
Copy link
Member

I think it would be better to deep copy all the record groups when preparing the updated data, instead of deep copy some of them and keeping references for others. If later we have to make updates in a record group that is only saved as a reference we have to remember to make the deep copy first.

We can think about it.

This is true that it would be maybe more robust to deep copy everything but let's do it later in another PR.

Copy link

@geofjamg geofjamg merged commit 8babc95 into main May 22, 2024
6 checks passed
@geofjamg geofjamg deleted the psse_copy branch May 22, 2024 07:49
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