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

don't create components for entities that don't exist #927

Merged
merged 1 commit into from
Jul 23, 2021

Conversation

adlarkin
Copy link
Contributor

@adlarkin adlarkin commented Jul 23, 2021

Signed-off-by: Ashton Larkin [email protected]

🦟 Bug fix

Summary

Addresses an issue found in #913 where components would be created for entities that don't exist (see #913 for more information). I've also updated the diff_drive system plugin to make sure that it doesn't try to create components for entities that have been removed.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

@adlarkin adlarkin requested a review from iche033 July 23, 2021 01:01
@adlarkin adlarkin requested a review from chapulina as a code owner July 23, 2021 01:01
@github-actions github-actions bot added the 🏰 citadel Ignition Citadel label Jul 23, 2021
@codecov
Copy link

codecov bot commented Jul 23, 2021

Codecov Report

Merging #927 (91e0d27) into ign-gazebo3 (34ac465) will increase coverage by 0.04%.
The diff coverage is 81.81%.

Impacted file tree graph

@@               Coverage Diff               @@
##           ign-gazebo3     #927      +/-   ##
===============================================
+ Coverage        77.87%   77.92%   +0.04%     
===============================================
  Files              215      215              
  Lines            12080    12089       +9     
===============================================
+ Hits              9407     9420      +13     
+ Misses            2673     2669       -4     
Impacted Files Coverage Δ
src/systems/diff_drive/DiffDrive.cc 90.95% <66.66%> (-0.85%) ⬇️
src/EntityComponentManager.cc 84.50% <100.00%> (+0.14%) ⬆️
src/SimulationRunner.cc 94.42% <0.00%> (+1.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 34ac465...91e0d27. Read the comment docs.

Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

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

The fix here looks reasonable, but I think the problem in the diff drive is a symptom of a deeper problem: plugins aren't unloaded when a model is deleted: #113

@chapulina chapulina merged commit 46425e0 into ign-gazebo3 Jul 23, 2021
@chapulina chapulina deleted the adlarkin/removed_entity_createComp branch July 23, 2021 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏰 citadel Ignition Citadel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants