Semi automatic Rollouts with fine groups definition (#337)
* Rollout Mgmt API accepts now extended Group definition. Filling Reollout Groups with Targets is now a scheduled task. Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com> * Fire RolloutGroupCreated event and fix db migration. Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com> * Fill groups now excludes targets in own group Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com> * Starting of Rollouts as scheduled task Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com> * Finished implementation of new Rollout starting proccess Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com> * Reset last check on status change and fixed unused imports Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com> * Code quality improvements Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com> * Reworked start of scheduled Actions. Improved code quality. Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com>
This commit is contained in:
committed by
Michael Hirsch
parent
66b6983406
commit
b6834e9ee2
@@ -164,7 +164,12 @@ public enum SpServerError {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
SP_ROLLOUT_ILLEGAL_STATE("hawkbit.server.error.rollout.illegalstate", "The rollout is currently in the wrong state for the current operation");
|
||||
SP_ROLLOUT_ILLEGAL_STATE("hawkbit.server.error.rollout.illegalstate", "The rollout is in the wrong state for the requested operation"),
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
SP_ROLLOUT_VERIFICATION_FAILED("hawkbit.server.error.rollout.verificationFailed", "The rollout configuration could not be verified successfully");
|
||||
|
||||
private final String key;
|
||||
private final String message;
|
||||
@@ -172,7 +177,7 @@ public enum SpServerError {
|
||||
/*
|
||||
* Repository side Error codes
|
||||
*/
|
||||
private SpServerError(final String errorKey, final String message) {
|
||||
SpServerError(final String errorKey, final String message) {
|
||||
key = errorKey;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
@@ -32,6 +32,14 @@ public enum TargetFields implements FieldNameProvider {
|
||||
* The description field.
|
||||
*/
|
||||
DESCRIPTION("description"),
|
||||
/**
|
||||
* The createdAt field.
|
||||
*/
|
||||
CREATEDAT("createdAt"),
|
||||
/**
|
||||
* The createdAt field.
|
||||
*/
|
||||
LASTMODIFIEDAT("lastModifiedAt"),
|
||||
/**
|
||||
* The controllerId field.
|
||||
*/
|
||||
@@ -75,19 +83,19 @@ public enum TargetFields implements FieldNameProvider {
|
||||
private List<String> subEntityAttribues;
|
||||
private boolean mapField;
|
||||
|
||||
private TargetFields(final String fieldName) {
|
||||
TargetFields(final String fieldName) {
|
||||
this(fieldName, false, Collections.emptyList());
|
||||
}
|
||||
|
||||
private TargetFields(final String fieldName, final boolean isMapField) {
|
||||
TargetFields(final String fieldName, final boolean isMapField) {
|
||||
this(fieldName, isMapField, Collections.emptyList());
|
||||
}
|
||||
|
||||
private TargetFields(final String fieldName, final String... subEntityAttribues) {
|
||||
TargetFields(final String fieldName, final String... subEntityAttribues) {
|
||||
this(fieldName, false, Arrays.asList(subEntityAttribues));
|
||||
}
|
||||
|
||||
private TargetFields(final String fieldName, final boolean mapField, final List<String> subEntityAttribues) {
|
||||
TargetFields(final String fieldName, final boolean mapField, final List<String> subEntityAttribues) {
|
||||
this.fieldName = fieldName;
|
||||
this.mapField = mapField;
|
||||
this.subEntityAttribues = subEntityAttribues;
|
||||
|
||||
Reference in New Issue
Block a user