Skip to content

Conversation

@damienmarchal
Copy link
Contributor

PR 2419 restores the correct behavior of CGLinearSolver regarding the call-super-init
#2419

But as some of its data are tagged as Required, this rise an error message when the value
is not set by the user.

I'm not sure it is wise to set the required flag when data provides meaningful and usable default values.

I recommand removing it and more generally keep the isRequired only for data field that really have no possibility to have a default value (eg: the filename for a loader).


By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).

PR 2419 restores the correct behavior of CGLinearSolver regarding the call-super-init
sofa-framework#2419

But as some of its data are tagged as Required, this rise en error message when the value
is not set by the user.

I'm not sure it is wise to use the required flag when data provides meaningful and usable default values.
So I recommand removing it.
@damienmarchal damienmarchal added pr: fix Fix a bug pr: status to review To notify reviewers to review this pull-request labels Nov 22, 2021
@hugtalbot
Copy link
Contributor

I will work on an alternative proposal

@hugtalbot hugtalbot closed this Dec 3, 2021
@hugtalbot hugtalbot removed the pr: status to review To notify reviewers to review this pull-request label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: fix Fix a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants