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

Fix attribute update when <dialog> isn't present #455

Merged
merged 3 commits into from
Aug 8, 2022

Conversation

chapulina
Copy link
Contributor

🦟 Bug fix

Summary

This fixes a situation when a file doesn't have a <dialog> element yet, and we need to create one to update its value.

I also increased the Dialog's test coverage to 100% and pre-deprecated a function that's no longer needed.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • 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 and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸

@chapulina chapulina added OOBE 📦✨ Out-of-box experience QA Quality assurance. labels Aug 5, 2022
@chapulina chapulina requested a review from mayman99 August 5, 2022 16:03
@github-actions github-actions bot added the 🏰 citadel Ignition Citadel label Aug 5, 2022
Signed-off-by: Louise Poubel <[email protected]>
@codecov
Copy link

codecov bot commented Aug 5, 2022

Codecov Report

Merging #455 (053c6d2) into ign-gui3 (33bbf41) will increase coverage by 0.48%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##           ign-gui3     #455      +/-   ##
============================================
+ Coverage     67.81%   68.30%   +0.48%     
============================================
  Files            29       29              
  Lines          3281     3278       -3     
============================================
+ Hits           2225     2239      +14     
+ Misses         1056     1039      -17     
Impacted Files Coverage Δ
src/Dialog.cc 100.00% <100.00%> (+26.98%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Signed-off-by: Louise Poubel <[email protected]>
@chapulina chapulina added the bug Something isn't working label Aug 5, 2022
src/Dialog.cc Show resolved Hide resolved
Copy link
Contributor

@mayman99 mayman99 left a comment

Choose a reason for hiding this comment

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

lgtm!
the only two downsides to the new impl is that we can only write bool attributes and we only write one by one, we can update it if such use cases arises then imho

@chapulina chapulina merged commit 6758eb0 into ign-gui3 Aug 8, 2022
@chapulina chapulina deleted the chapulina/3/dialog_update branch August 8, 2022 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🏰 citadel Ignition Citadel OOBE 📦✨ Out-of-box experience QA Quality assurance.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants