Remove deprecated (#2800)

* ActionFields.DETAILSTATUS removed and replaces with STATUS (so status is with changed semantic - not active but real status)
* MgmtAction.detailStatus removed and replaced with status (so status is with changed semantic - not active but real status)
* MgmtTargetTagRestApi.assignTargetsPut removed - use POST method
* ActionStatusFields.REPORTEDAT deprecation removed - it is a synonym of CREATEDAT but is part of timestamp/reported aspect while createdat is part of creted at/by
* MgmtDistributionSetRequestBodyPost.os/runtime/application is removed

and

* ActionStatusFields.TIMESTAMPT added

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2025-11-13 13:39:03 +02:00
committed by GitHub
parent 2c8118bf52
commit 62139055b0
30 changed files with 481 additions and 756 deletions

View File

@@ -37,8 +37,8 @@ import org.eclipse.hawkbit.mgmt.json.model.distributionset.MgmtActionType;
"lastModifiedBy" : "bumlux",
"lastModifiedAt" : 1682408571265,
"type" : "update",
"active" : false,
"status" : "finished",
"detailStatus" : "finished",
"rollout" : 1,
"rolloutName" : "rollout",
"_links" : {
@@ -74,35 +74,15 @@ public class MgmtAction extends MgmtBaseEntity {
* API definition for action in canceling.
*/
public static final String ACTION_CANCEL = "cancel";
/**
* API definition for action completed.
*
* @deprecated since 0.10.0 will be removed together with status field
*/
@Deprecated(since = "0.10.0", forRemoval = true)
public static final String ACTION_FINISHED = "finished";
/**
* API definition for action still active.
*
* @deprecated since 0.10.0 will be removed together with status field
*/
@Deprecated(since = "0.10.0", forRemoval = true)
public static final String ACTION_PENDING = "pending";
@Schema(description = "ID of the action", example = "7")
private Long id;
@Schema(description = "Type of action", example = "update")
private String type;
/**
* @deprecated since 0.10.0 - use {@link #active} instead of {@link #status}
*/
@Deprecated(since = "0.10.0")
@Schema(description = "Status of action, use active", example = "finished", deprecated = true)
private String status;
@Schema(description = "Status of action")
@Schema(description = "If acton is active")
private boolean active;
@Schema(description = "Detailed status of action", example = "finished")
private String detailStatus;
@Schema(description = "Status of action")
private String status;
@Schema(example = "1691065903238")
private Long forceTime;
private MgmtActionType forceType;
@@ -117,8 +97,7 @@ public class MgmtAction extends MgmtBaseEntity {
@Schema(description = "The name of the rollout this action was created for", example = "rollout")
private String rolloutName;
@Schema(description = "(Optional) Code provided as part of the last status update that was sent by the device.",
example = "200")
@Schema(description = "(Optional) Code provided as part of the last status update that was sent by the device.", example = "200")
private Integer lastStatusCode;
@Schema(description = "If created by external system this field contains the external reference for the action")

View File

@@ -32,17 +32,6 @@ import org.eclipse.hawkbit.mgmt.json.model.softwaremodule.MgmtSoftwareModuleAssi
@JsonIgnoreProperties(ignoreUnknown = true)
public class MgmtDistributionSetRequestBodyPost extends MgmtDistributionSetRequestBodyPut {
// deprecated format from the times where os, application and runtime where statically defined
@Schema(hidden = true)
private MgmtSoftwareModuleAssignment os;
@Schema(hidden = true)
private MgmtSoftwareModuleAssignment runtime;
@Schema(hidden = true)
private MgmtSoftwareModuleAssignment application;
// deprecated format - END
private List<MgmtSoftwareModuleAssignment> modules;
@Schema(description = "The type of the distribution set", example = "test_default_ds_type")

View File

@@ -331,18 +331,6 @@ public interface MgmtTargetTagRestApi {
@RequestBody List<String> controllerIds,
@RequestParam(value = "onNotFoundPolicy", required = false, defaultValue = "FAIL") OnNotFoundPolicy onNotFoundPolicy);
/**
* @deprecated since 0.9.0, use {@link #assignTargets(Long, List, OnNotFoundPolicy)} (POST) instead.
*/
@Deprecated(forRemoval = true, since = "0.9.0")
@PutMapping(
value = MgmtRestConstants.TARGET_TAG_V1_REQUEST_MAPPING + MgmtRestConstants.TARGET_TAG_TARGETS_REQUEST_MAPPING,
consumes = { MediaTypes.HAL_JSON_VALUE, MediaType.APPLICATION_JSON_VALUE })
ResponseEntity<Void> assignTargetsPut(
@PathVariable("targetTagId") Long targetTagId,
@RequestBody List<String> controllerIds,
@RequestParam(value = "onNotFoundPolicy", required = false, defaultValue = "FAIL") OnNotFoundPolicy onNotFoundPolicy);
/**
* Handles the DELETE request to unassign one target from the given tag id.
*