Skip to content

Commit

Permalink
RIPE NCC has merged 0e9906354
Browse files Browse the repository at this point in the history
* Make it explicitly typed [64e364679]
* Return empty list for current announcement end-point [6d83f31a4]
* Update dependency io.sentry:sentry-bom to v7.15.0 [337163868]
  • Loading branch information
RPKI Team at RIPE NCC committed Oct 17, 2024
1 parent 9dfbaad commit 17e05b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dependencies {
implementation "org.thymeleaf:thymeleaf:3.1.2.RELEASE"
implementation "org.thymeleaf:thymeleaf-spring6:3.1.2.RELEASE"

implementation platform('io.sentry:sentry-bom:7.14.0')
implementation platform('io.sentry:sentry-bom:7.15.0')
implementation 'io.sentry:sentry-spring-boot-starter'
implementation 'io.sentry:sentry-logback'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ public AnnouncementService(BgpRisEntryViewService bgpRisEntryViewService,
@GetMapping
@Operation(summary = "Get all announcements, as well as not-announced ignored announcements for the CA", deprecated = true)
@Deprecated(since = "2024-07-17", forRemoval = true)
public ResponseEntity<?> getResourcesForCa(@PathVariable("caName") final CaName caName) {
public ResponseEntity<List<BgpAnnouncement>> getResourcesForCa(@PathVariable("caName") final CaName caName) {
log.info("Getting resources for CA: {}", caName);
var response = getAnnouncements(caName);
if (response instanceof AnnouncementResponse.Announcements as) {
return ok(as.announcements);
}
return ok(new AnnouncementResponse.Announcements(Collections.emptyList(), null));
return ok(Collections.emptyList());
}

@GetMapping("extended")
Expand Down

0 comments on commit 17e05b0

Please sign in to comment.