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

Add builders from existing objects #3130

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

bc-rte
Copy link
Contributor

@bc-rte bc-rte commented Sep 4, 2024

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?

This PR introduces adder initialized by copying an existing component.

What is the current behavior?

What is the new behavior (if this is a feature change)?

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)

the NetworkImpl::newLine method now has two parametric implementations with one parameter.
Users that used network.newLine(null) need to cast null network.newLine((String) null) in order to pass compilation

Other information:

This PR is inspired from previous work there.

@bc-rte bc-rte force-pushed the add_builders_from_existing_objects branch 2 times, most recently from 2a7fd64 to cd5ce9d Compare September 4, 2024 09:21
@bc-rte bc-rte requested a review from geofjamg September 6, 2024 13:50
@bc-rte bc-rte force-pushed the add_builders_from_existing_objects branch from 9645e84 to 4bfb458 Compare September 6, 2024 14:06
@bc-rte bc-rte requested a review from flo-dup September 9, 2024 11:39
Copy link
Contributor

@flo-dup flo-dup left a comment

Choose a reason for hiding this comment

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

The whole mechanism is ok, but the interfaces introduced to think it as a generic solution makes it obscure or too complex I think (and besides it's not completely covering the usecase I think).

@bc-rte bc-rte force-pushed the add_builders_from_existing_objects branch from b431abd to 56b0abe Compare September 12, 2024 15:40
Signed-off-by: CHIQUET Benoit <benoit.chiquet@rte-france.com>
@bc-rte bc-rte force-pushed the add_builders_from_existing_objects branch 2 times, most recently from 6a8e1fb to c57b1cf Compare September 16, 2024 08:57
Signed-off-by: CHIQUET Benoit <benoit.chiquet@rte-france.com>
Signed-off-by: CHIQUET Benoit <benoit.chiquet@rte-france.com>
Signed-off-by: CHIQUET Benoit <benoit.chiquet@rte-france.com>
@bc-rte bc-rte force-pushed the add_builders_from_existing_objects branch from c57b1cf to 4ebfc62 Compare September 16, 2024 09:15
…ity curve as template

Signed-off-by: CHIQUET Benoit <benoit.chiquet@rte-france.com>
@bc-rte bc-rte force-pushed the add_builders_from_existing_objects branch 2 times, most recently from 53da2eb to c903d96 Compare September 16, 2024 09:30
@bc-rte bc-rte changed the title WIP: Add builders from existing objects Add builders from existing objects Sep 16, 2024
@bc-rte bc-rte changed the title Add builders from existing objects WIP: Add builders from existing objects Sep 16, 2024
Signed-off-by: CHIQUET Benoit <benoit.chiquet@rte-france.com>
@bc-rte bc-rte force-pushed the add_builders_from_existing_objects branch from c903d96 to 347db8e Compare September 16, 2024 09:36
@bc-rte bc-rte changed the title WIP: Add builders from existing objects Add builders from existing objects Sep 16, 2024
Copy link

sonarcloud bot commented Sep 16, 2024

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