Skip to content

Commit

Permalink
Merge pull request #1511 from DependencyTrack/issue-1428-remove-depre…
Browse files Browse the repository at this point in the history
…cated-code

Remove deprecated code + update documentation
  • Loading branch information
nscuro authored Sep 18, 2024
2 parents 1f88fdd + 9c6a0c6 commit 8a064f2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/
package org.dependencytrack.persistence.model;

import com.fasterxml.jackson.annotation.JsonSetter;
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
import io.quarkus.runtime.annotations.RegisterForReflection;
import jakarta.persistence.Column;
Expand Down Expand Up @@ -349,20 +348,6 @@ public void setSubTitle(String subTitle) {
this.subTitle = subTitle;
}

/**
* Setter for keeping the REST API backwards-compatible.
* Will be removed in v5.
*
* @param cwe The {@link Cwe} to set
* @deprecated Use {@link #setCwes(List)} instead
*/
@JsonSetter("cwe")
public void setCwe(final Cwe cwe) {
if (cwe != null) {
setCwes(List.of(cwe.getCweId()));
}
}

public List<Integer> getCwes() {
return cwes;
}
Expand Down
6 changes: 6 additions & 0 deletions docs/getting-started/changes-over-v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ and vulnerability analysis is performed by services separately from the API serv

## Breaking Changes

* All deprecated endpoints mentioned below were removed:
* POST `/api/v1/policy/{policyUuid}/tag/{tagName}`
* DELETE `/api/v1/policy/{policyUuid}/tag/{tagName}`
* GET `/api/v1/tag/{policyUuid}`
* GET `/api/v1/bom/token/{uuid}`

### Notifications

* `subject` objects passed to notification templates are now objects generated from [Protobuf] definitions.
Expand Down
6 changes: 6 additions & 0 deletions docs/getting-started/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ Refer to the [kafka configuration reference] for details. Example of name change
|:-----------------------------------------------------------|:----------------------------------------------------|
| `alpine.kafka.processor.vuln.scan.result.processing.order` | `kafka.processor.vuln.scan.result.processing.order` |

* All deprecated endpoints mentioned below were removed:
* POST `/api/v1/policy/{policyUuid}/tag/{tagName}`
* DELETE `/api/v1/policy/{policyUuid}/tag/{tagName}`
* GET `/api/v1/tag/{policyUuid}`
* GET `/api/v1/bom/token/{uuid}`

[apiserver/#840]: https://github.com/DependencyTrack/hyades-apiserver/pull/840
[apiserver/#888]: https://github.com/DependencyTrack/hyades-apiserver/pull/888
[apiserver/#904]: https://github.com/DependencyTrack/hyades-apiserver/pull/904
Expand Down

0 comments on commit 8a064f2

Please sign in to comment.