-
Notifications
You must be signed in to change notification settings - Fork 191
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
Allow assignment of multiple distribution sets to a target via Mgmt-API #886
Conversation
@StefanKlt please verify the commit history and double check the signed-offs. |
...ory/hawkbit-repository-api/src/main/java/org/eclipse/hawkbit/repository/QuotaManagement.java
Outdated
Show resolved
Hide resolved
...ava/org/eclipse/hawkbit/mgmt/json/model/distributionset/MgmtTargetAssignmentRequestBody.java
Show resolved
Hide resolved
...rest/hawkbit-mgmt-api/src/main/java/org/eclipse/hawkbit/mgmt/rest/api/MgmtTargetRestApi.java
Show resolved
Hide resolved
...repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/JpaDeploymentManagement.java
Outdated
Show resolved
Hide resolved
...repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/JpaDeploymentManagement.java
Outdated
Show resolved
Hide resolved
hawkbit-rest/hawkbit-rest-docs/src/main/asciidoc/targets-api-guide.adoc
Outdated
Show resolved
Hide resolved
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]>
one request 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]>
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]>
ef2089b
to
ef69a06
Compare
...awkbit-repository-api/src/main/java/org/eclipse/hawkbit/repository/DeploymentManagement.java
Show resolved
Hide resolved
...awkbit-repository-api/src/main/java/org/eclipse/hawkbit/repository/DeploymentManagement.java
Outdated
Show resolved
Hide resolved
...main/java/org/eclipse/hawkbit/repository/exception/MultiassignmentIsNotEnabledException.java
Outdated
Show resolved
Hide resolved
...bit-repository-api/src/main/java/org/eclipse/hawkbit/repository/model/DeploymentRequest.java
Show resolved
Hide resolved
...-repository-api/src/main/java/org/eclipse/hawkbit/repository/model/TargetWithActionType.java
Show resolved
Hide resolved
...repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/JpaDeploymentManagement.java
Outdated
Show resolved
Hide resolved
...mt-resource/src/test/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtTargetResourceTest.java
Outdated
Show resolved
Hide resolved
...ce/src/test/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtDistributionSetResourceTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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...
Signed-off-by: Stefan Klotz <[email protected]>
online assignment. fix PR findings. Signed-off-by: Stefan Klotz <[email protected]>
There was a problem hiding this 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!
…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]>
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.