Skip to content

Commit d707c82

Browse files
authored
Merge pull request #832 from naphelps/2.153.0
Removed deployment existence checks on managed deployment assignments to agreement bots.
2 parents f468364 + 468063a commit d707c82

9 files changed

Lines changed: 262 additions & 271 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
66

7+
## [2.153.0](https://github.com/open-horizon/exchange-api/pull/832) - 2025-10-28
8+
- Removed deployment existence checks on managed deployment assignments to agreement bots.
9+
- Added additional authorization checks to managed deployment policy assignments.
10+
- pekko-http-jackson 3.2.2 -> 3.5.0
11+
712
## [2.152.0](https://github.com/open-horizon/exchange-api/pull/830) - 2025-10-21
813
- Reworked most of the managed deployment routes under Agreement Bots.
914
- Improved debug logging

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ lazy val root = (project in file("."))
5050

5151
// Sbt uses Ivy for dependency resolution, so it supports its version syntax: http://ant.apache.org/ivy/history/latest-milestone/ivyfile/dependency.html#revision
5252
libraryDependencies ++= Seq(
53-
"com.github.pjfanning" %% "pekko-http-jackson" % "[3.2.2,)",
53+
"com.github.pjfanning" %% "pekko-http-jackson" % "[3.5.0]",
5454
"org.apache.pekko" %% "pekko-http" % pekkoHttpVersion.value,
5555
"org.apache.pekko" %% "pekko-http-xml" % pekkoHttpVersion.value,
5656
// "org.apache.pekko" %% "pekko-http-caching" % pekkoHttpVersion.value,

docs/openapi-3-developer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "Apache License Version 2.0",
99
"url": "https://www.apache.org/licenses/LICENSE-2.0"
1010
},
11-
"version": "2.152.0"
11+
"version": "2.153.0"
1212
},
1313
"externalDocs": {
1414
"description": "Open-horizon ExchangeAPI",

src/main/resources/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.152.0
1+
2.153.0

src/main/scala/org/openhorizon/exchangeapi/route/agreementbot/PostAgbotBusinessPolRequest.scala

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ import org.openhorizon.exchangeapi.table.agreementbot.deploymentpolicy.{AgbotBus
44
import org.openhorizon.exchangeapi.utility.{ApiTime, ExchMsg}
55

66
/** Input format for POST /orgs/{organization}/agbots/{id}/businesspols */
7-
final case class PostAgbotBusinessPolRequest(businessPolOrgid: String, businessPol: String, nodeOrgid: Option[String]) {
8-
require(businessPolOrgid!=null && businessPol!=null)
9-
def toAgbotBusinessPol: AgbotBusinessPol =
10-
AgbotBusinessPol(businessPolOrgid = businessPolOrgid, businessPol = businessPol, lastUpdated = ApiTime.nowUTC, nodeOrgid = nodeOrgid.getOrElse(businessPolOrgid))
11-
12-
def toAgbotBusinessPolRow(agbotId: String, busPolId: String): AgbotBusinessPolRow = AgbotBusinessPolRow(busPolId, agbotId, businessPolOrgid, businessPol, nodeOrgid.getOrElse(businessPolOrgid), ApiTime.nowUTC)
7+
final case class PostAgbotBusinessPolRequest(businessPolOrgid: String,
8+
businessPol: String,
9+
nodeOrgid: Option[String]) {
10+
require(businessPolOrgid != null && businessPol != null)
11+
1312
def formId: String = businessPolOrgid + "_" + businessPol + "_" + nodeOrgid.getOrElse(businessPolOrgid)
1413
def getAnyProblem: Option[String] = {
1514
val nodeOrg: String = nodeOrgid.getOrElse(businessPolOrgid)

src/main/scala/org/openhorizon/exchangeapi/route/agreementbot/deploymentpattern/DeploymentPattern.scala

Lines changed: 12 additions & 48 deletions
Large diffs are not rendered by default.

src/main/scala/org/openhorizon/exchangeapi/route/agreementbot/deploymentpattern/DeploymentPatterns.scala

Lines changed: 25 additions & 71 deletions
Large diffs are not rendered by default.

src/main/scala/org/openhorizon/exchangeapi/route/agreementbot/deploymentpolicy/DeploymentPolicies.scala

Lines changed: 104 additions & 60 deletions
Large diffs are not rendered by default.

src/test/scala/org/openhorizon/exchangeapi/AgbotsSuite.scala

Lines changed: 108 additions & 83 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)