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

Non-existing targets are not added to assignment count #919

Merged
merged 17 commits into from
Jan 13, 2020

Conversation

sebastian-firsching
Copy link
Contributor

@sebastian-firsching sebastian-firsching commented Dec 4, 2019

When assigning multiple targets to a distribution set, not existing targets are silently ignored. The already assigned count was not calculated correctly in this case. This pull request is a fix for this calculation.

Sebastian Firsching added 5 commits December 2, 2019 14:59
Signed-off-by: Sebastian Firsching <[email protected]>
Signed-off-by: Sebastian Firsching <[email protected]>
Signed-off-by: Sebastian Firsching <[email protected]>
@schabdo schabdo added this to the 0.3.0M6 milestone Dec 4, 2019
Sebastian Firsching added 2 commits December 5, 2019 12:53
Signed-off-by: Sebastian Firsching <[email protected]>
Signed-off-by: Sebastian Firsching <[email protected]>
Copy link
Contributor

@bogdan-bondar bogdan-bondar left a comment

Choose a reason for hiding this comment

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

Please review

Sebastian Firsching added 10 commits December 12, 2019 10:17
Signed-off-by: Sebastian Firsching <[email protected]>
Signed-off-by: Sebastian Firsching <[email protected]>
Signed-off-by: Sebastian Firsching <[email protected]>
Signed-off-by: Sebastian Firsching <[email protected]>
Signed-off-by: Sebastian Firsching <[email protected]>
Signed-off-by: Sebastian Firsching <[email protected]>
Signed-off-by: Sebastian Firsching <[email protected]>
Signed-off-by: Sebastian Firsching <[email protected]>
Copy link
Contributor

@bogdan-bondar bogdan-bondar left a comment

Choose a reason for hiding this comment

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

Looks Good!

@schabdo schabdo merged commit 8d3ba68 into eclipse-hawkbit:master Jan 13, 2020
@schabdo schabdo deleted the fix_already_assigned_targets branch January 13, 2020 11:42
@schabdo schabdo added the bug label Jan 16, 2020
@schabdo schabdo changed the title Fix already assigned targets Non-existing targets are not added to assignment count Jan 16, 2020
AmmarBikic pushed a commit to bosch-io/hawkbit that referenced this pull request Oct 2, 2020
* Dont count not existing targets as already assigned to DS

Signed-off-by: Sebastian Firsching <[email protected]>

* Add test for deploymentManagement

Signed-off-by: Sebastian Firsching <[email protected]>

* Delete 404 error message from docs when target is not found

Signed-off-by: Sebastian Firsching <[email protected]>

* Add text to implementation notes

Signed-off-by: Sebastian Firsching <[email protected]>

* Add assertions to test

Signed-off-by: Sebastian Firsching <[email protected]>

* Add expected behaviour to test description

Signed-off-by: Sebastian Firsching <[email protected]>

* Refactor deploymentMgmtTest

Signed-off-by: Sebastian Firsching <[email protected]>

* Filter out non-existing controllerIds

Signed-off-by: Sebastian Firsching <[email protected]>

* Extend test descriptions

Signed-off-by: Sebastian Firsching <[email protected]>

* Refactor createTargets method

Signed-off-by: Sebastian Firsching <[email protected]>

* Add createTargetAndJsonArray method

Signed-off-by: Sebastian Firsching <[email protected]>

* Correct expected test result

Signed-off-by: Sebastian Firsching <[email protected]>

* Adapt rest docs

Signed-off-by: Sebastian Firsching <[email protected]>

* Correct test

Signed-off-by: Sebastian Firsching <[email protected]>

* Only count targets that exist for total and adapt test

Signed-off-by: Sebastian Firsching <[email protected]>

* Use only existign targetWithActionTypes for assignment

Signed-off-by: Sebastian Firsching <[email protected]>

* Rename targetIds to providedTargetIds

Signed-off-by: Sebastian Firsching <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants