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

Allow assignment of multiple distribution sets to a target via Mgmt-API #886

Merged

Conversation

StefanKlt
Copy link
Contributor

Enable the /rest/v1/targets/{targetId}/assignedDS POST endpoint to also accept lists of distribution sets.
When 'multi assignments' is enabled it is now possible to assign multiple distribution sets to a single target with one request.

@laverman
Copy link
Contributor

laverman commented Sep 5, 2019

@StefanKlt please verify the commit history and double check the signed-offs.

@schabdo schabdo added this to the 0.3.0M6 milestone Sep 5, 2019
Signed-off-by: Stefan Klotz <[email protected]>
Signed-off-by: Stefan Klotz <[email protected]>
Signed-off-by: Stefan Klotz <[email protected]>
Signed-off-by: Stefan Klotz <[email protected]>
Signed-off-by: Stefan Klotz <[email protected]>
Signed-off-by: Stefan Klotz <[email protected]>
@StefanKlt StefanKlt force-pushed the feature_multiassignment_via_mgmt branch from ef2089b to ef69a06 Compare September 6, 2019 11:59
@hawkbit-bot
Copy link

SonarQube analysis reported 2 issues

  • MINOR 2 minor

Watch the comments in this conversation to review them.

MIGRATION.md Outdated Show resolved Hide resolved
Copy link
Contributor

@stefbehl stefbehl left a comment

Choose a reason for hiding this comment

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

Thanks, looks good. Pls see my findings below...

online assignment. fix PR findings.

Signed-off-by: Stefan Klotz <[email protected]>
Copy link
Contributor

@stefbehl stefbehl left a comment

Choose a reason for hiding this comment

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

Hi Stefan, looks good. Thank you!

@stefbehl stefbehl merged commit 8687510 into eclipse-hawkbit:master Sep 17, 2019
@stefbehl stefbehl deleted the feature_multiassignment_via_mgmt branch September 17, 2019 12:20
@schabdo schabdo changed the title Assign multiple distribution sets to a target via mgmt api Allow assignment of multiple distribution sets to a target via Mgmt-API Jan 16, 2020
AmmarBikic pushed a commit to bosch-io/hawkbit that referenced this pull request Oct 2, 2020
…awkbit#886)

* Add multiassignment to mgmt api target endpoint
* Remove single assignment ds to targets offline
* Fix tests
* Add quota for maxResultingActionsPerManualAssignment
* Fix assignment with same target or distribution set multiple times in one request
* Log UI error
* Add tests
* Enable single assignment requests with multiple DSs and types
* Remove redundant target to DS assignment methods
* Add tests, fix assignment
* Fix possible nullpointer during target assignment request
* Update api docu
* Clean up deployment management code
* Enforce MaxActions quota for offline assignment
* Fix review findings
* Rename property, add migration into
* Add builder for DeploymentRequest
* Change offline assignment method to accept an assignment list, like online assignment
* Fix PR findings

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

Successfully merging this pull request may close these issues.

5 participants