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

[SofaGraphComponent] ADD alias usage detection #702

Merged
merged 12 commits into from
Jul 11, 2018

Conversation

guparan
Copy link
Contributor

@guparan guparan commented Jun 22, 2018

This STC#5 sprint pull-request cleans the whole Scene Checking API.
It also adds a new SceneCheck that warns for alias uses: SceneCheckUsingAlias

It's a first step concerning #677 👍


This PR:

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

Reviewers will merge only if all these checks are true.

@guparan guparan added enhancement About a possible enhancement pr: status to review To notify reviewers to review this pull-request pr: clean Cleaning the code STC#5 labels Jun 22, 2018
@damienmarchal
Copy link
Contributor

Thanks @guparan for this work, I will try it.

@guparan
Copy link
Contributor Author

guparan commented Jun 25, 2018

[ci-build]

@damienmarchal
Copy link
Contributor

I have tried it in runSofa2 and it work like a charm and is actually a very useful warning (maybe we should add a line saying: "to remove this warning message you need to ...."

Copy link
Contributor

@damienmarchal damienmarchal left a comment

Choose a reason for hiding this comment

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

Nice cleaning work and new feature. Nothing to say.

if( deprecatedComponents.find( o->getClassName() ) != deprecatedComponents.end() )
{
msg_deprecated(o) << deprecatedComponents.at(o->getClassName()).getMessage();
msg_deprecated(this->getName()) << deprecatedComponents.at(o->getClassName()).getMessage();
Copy link
Contributor

Choose a reason for hiding this comment

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

This change lead to un-readable message because the name of the component is not showned anymore.

# Conflicts:
#	modules/SofaGraphComponent/SceneCheckUsingAlias.h
@guparan guparan force-pushed the add_alias_usage_detection branch from 5867de1 to c991098 Compare July 2, 2018 12:44
@guparan guparan added pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request labels Jul 4, 2018
@guparan
Copy link
Contributor Author

guparan commented Jul 10, 2018

[ci-build][with-scene-tests]

1 similar comment
@epernod
Copy link
Contributor

epernod commented Jul 10, 2018

[ci-build][with-scene-tests]

@guparan guparan merged commit 55b0bc4 into sofa-framework:master Jul 11, 2018
@guparan guparan added this to the v18.06 milestone Jul 12, 2018
@guparan guparan deleted the add_alias_usage_detection branch October 1, 2018 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement About a possible enhancement pr: clean Cleaning the code pr: status ready Approved a pull-request, ready to be squashed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants