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

add cancel action API #11

Merged
merged 5 commits into from
Jun 29, 2021
Merged

add cancel action API #11

merged 5 commits into from
Jun 29, 2021

Conversation

gdesmott
Copy link
Contributor

We can now check if hawkbit returned a cancel action when polling and send feedback about it.

Guillaume Desmottes added 4 commits June 29, 2021 09:59
Will be used by the cancel API.
I'm about to add cancel feedback API so we need to distinguish both.
We can skip the optional 'progress' field if it has not been defined,
instead of setting it to Null.

Needed so we can re-use the existing code to send feedback about cancel
actions, which does not support 'progress'.
We can now check if hawkbit returned a cancel action when polling
and send feedback about it.
@codecov-commenter
Copy link

codecov-commenter commented Jun 29, 2021

Codecov Report

Merging #11 (7313bf2) into main (132209f) will increase coverage by 0.55%.
The diff coverage is 99.01%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #11      +/-   ##
==========================================
+ Coverage   96.56%   97.12%   +0.55%     
==========================================
  Files          10       11       +1     
  Lines        1194     1355     +161     
==========================================
+ Hits         1153     1316     +163     
+ Misses         41       39       -2     
Impacted Files Coverage Δ
hawkbit/src/ddi/feedback.rs 100.00% <ø> (ø)
hawkbit/src/ddi/poll.rs 92.64% <87.50%> (-0.69%) ⬇️
hawkbit/src/ddi/cancel_action.rs 96.55% <96.55%> (ø)
hawkbit/src/ddi/common.rs 100.00% <100.00%> (ø)
hawkbit/src/ddi/deployment_base.rs 92.52% <100.00%> (+0.76%) ⬆️
hawkbit/tests/tests.rs 99.20% <100.00%> (+0.06%) ⬆️
hawkbit_mock/src/ddi.rs 100.00% <100.00%> (ø)

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 132209f...7313bf2. Read the comment docs.

@sjoerdsimons
Copy link
Contributor

Overall looks fine to me; could you check the one failed test run though?

@gdesmott gdesmott merged commit aea5878 into collabora:main Jun 29, 2021
@gdesmott gdesmott deleted the cancel branch June 29, 2021 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants