Skip to content

Commit

Permalink
metadata-service[orchestrator]: fix missing isReleaseCandidate field (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
alafanechere authored Sep 5, 2024
1 parent 458e96e commit 3b79bd7
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ class ConnectorRegistryReleases(BaseModel):
class Config:
extra = Extra.forbid

isReleaseCandidate: Optional[bool] = Field(None, description="Whether the current version is a release candidate.")
releaseCandidates: Optional[ConnectorReleaseCandidates] = None
rolloutConfiguration: Optional[RolloutConfiguration] = None
breakingChanges: Optional[ConnectorBreakingChanges] = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ class ConnectorRegistryReleases(BaseModel):
class Config:
extra = Extra.forbid

isReleaseCandidate: Optional[bool] = Field(None, description="Whether the current version is a release candidate.")
releaseCandidates: Optional[ConnectorReleaseCandidates] = None
rolloutConfiguration: Optional[RolloutConfiguration] = None
breakingChanges: Optional[ConnectorBreakingChanges] = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ class ConnectorRegistryReleases(BaseModel):
class Config:
extra = Extra.forbid

isReleaseCandidate: Optional[bool] = Field(None, description="Whether the current version is a release candidate.")
releaseCandidates: Optional[ConnectorReleaseCandidates] = None
rolloutConfiguration: Optional[RolloutConfiguration] = None
breakingChanges: Optional[ConnectorBreakingChanges] = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ class ConnectorRegistryReleases(BaseModel):
class Config:
extra = Extra.forbid

isReleaseCandidate: Optional[bool] = Field(None, description="Whether the current version is a release candidate.")
releaseCandidates: Optional[ConnectorReleaseCandidates] = None
rolloutConfiguration: Optional[RolloutConfiguration] = None
breakingChanges: Optional[ConnectorBreakingChanges] = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ description: Contains information about different types of releases for a connec
type: object
additionalProperties: false
properties:
isReleaseCandidate:
type: boolean
description: Whether the current version is a release candidate.
releaseCandidates:
$ref: "#/definitions/ConnectorReleaseCandidates"
rolloutConfiguration:
Expand Down
2 changes: 1 addition & 1 deletion airbyte-ci/connectors/metadata_service/lib/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "metadata-service"
version = "0.14.0"
version = "0.14.1"
description = ""
authors = ["Ben Church <ben@airbyte.io>"]
readme = "README.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def apply_connector_releases(metadata: dict) -> Optional[pd.DataFrame]:

if metadata.get("releases", {}).get("rolloutConfiguration"):
final_registry_releases["rolloutConfiguration"] = metadata["releases"]["rolloutConfiguration"]
final_registry_releases["isReleaseCandidate"] = metadata.get("releases", {}).get("isReleaseCandidate", False)
return final_registry_releases


Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "orchestrator"
version = "0.5.0"
version = "0.5.1"
description = ""
authors = ["Ben Church <ben@airbyte.io>"]
readme = "README.md"
Expand Down

0 comments on commit 3b79bd7

Please sign in to comment.