-
Notifications
You must be signed in to change notification settings - Fork 15
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
fix: prevent adding sibling to top level hardware item #986
Conversation
Co-authored-by: Sourcery AI <>
Codecov Report
@@ Coverage Diff @@
## master #986 +/- ##
=======================================
Coverage 94.86% 94.86%
=======================================
Files 158 158
Lines 5274 5274
Branches 515 515
=======================================
Hits 5003 5003
Misses 234 234
Partials 37 37
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
Sourcery Code Quality Report❌ Merging this PR will decrease code quality in the affected files by 1.26%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Help us improve this quality report! |
SonarCloud Quality Gate failed.
|
Does this PR introduce a breaking change?
Describe the purpose of this pull request.
To prevent user from adding a sibling to the top level hardware item (system).
Describe how this was implemented.
Added check for parent ID. Parent ID = 0 indicates top level hardware item. Now raises information dialog and returns. Also added similar check to methods to insert sibling and part to check that user is not trying to add a sibling or part to a part.
Describe any particular area(s) reviewers should focus on.
None
Provide any other pertinent information.
Closes #959
Pull Request Checklist
Code Style
Static Checks
this PR.
Tests
Chores
decorating the code block. These # ISSUE: comments are automatically
converted to issues on successful merge. Alternatively, you can manually
raise an issue for each problem area you identify.