Skip to content

Commit f964e1c

Browse files
committed
feat: add version to web_backend/config response (#16480)
1 parent 84f003b commit f964e1c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

airbyte-api/server-api/src/main/openapi/config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16950,9 +16950,11 @@ components:
1695016950
WebappConfigResponse:
1695116951
type: object
1695216952
required:
16953-
- airbyteVersion
16953+
- version
1695416954
- edition
1695516955
properties:
16956+
version:
16957+
type: string
1695616958
edition:
1695716959
type: string
1695816960
datadogApplicationId:

airbyte-server/src/main/kotlin/io/airbyte/server/apis/controllers/WebBackendApiController.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ open class WebBackendApiController(
181181
@ExecuteOn(AirbyteTaskExecutors.IO)
182182
override fun getWebappConfig(): WebappConfigResponse =
183183
WebappConfigResponse().apply {
184+
version = webappConfig.version
184185
edition = webappConfig.edition
185186
datadogApplicationId = webappConfig.webApp["datadog-application-id"]
186187
datadogClientToken = webappConfig.webApp["datadog-client-token"]
@@ -204,6 +205,7 @@ open class WebBackendApiController(
204205
*/
205206
@ConfigurationProperties("airbyte")
206207
data class WebappConfig(
208+
@Value("\${AIRBYTE_VERSION}") val version: String,
207209
@Value("\${AIRBYTE_EDITION}") val edition: String,
208210
val webApp: Map<String, String>,
209211
)

0 commit comments

Comments
 (0)