-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
metadata-service[lib]: introduce a
rolloutConfiguration
field to th…
…e metadata model (#44504) ## What Closes airbytehq/airbyte-internal-issues#9249 ## How * Add a `RolloutConfiguration.yaml` model * Reference it in the connector metadata model under the `releases` field. * Introduce a `isReleaseCandidate` field in under `releases` * Re-generated pydantic models
- Loading branch information
1 parent
367f706
commit f58652b
Showing
11 changed files
with
147 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...connectors/metadata_service/lib/metadata_service/models/generated/RolloutConfiguration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# generated by datamodel-codegen: | ||
# filename: RolloutConfiguration.yaml | ||
|
||
from __future__ import annotations | ||
|
||
from typing import Optional | ||
|
||
from pydantic import BaseModel, Extra, Field, conint | ||
|
||
|
||
class RolloutConfiguration(BaseModel): | ||
class Config: | ||
extra = Extra.forbid | ||
|
||
initialPercentage: Optional[conint(ge=0, le=100)] = Field( | ||
0, description="The percentage of users that should receive the new version initially." | ||
) | ||
maxPercentage: Optional[conint(ge=0, le=100)] = Field( | ||
50, description="The percentage of users who should receive the release candidate during the test phase before full rollout." | ||
) | ||
advanceDelayMinutes: Optional[conint(ge=10)] = Field( | ||
10, description="The number of minutes to wait before advancing the rollout percentage." | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...-ci/connectors/metadata_service/lib/metadata_service/models/src/RolloutConfiguration.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
"$schema": http://json-schema.org/draft-07/schema# | ||
"$id": https://github.com/airbytehq/airbyte/airbyte-ci/connectors/metadata_service/lib/metadata_service/models/src/RolloutConfiguration.yaml | ||
title: RolloutConfiguration | ||
description: configuration for the rollout of a connector | ||
type: object | ||
additionalProperties: false | ||
properties: | ||
initialPercentage: | ||
type: integer | ||
minimum: 0 | ||
maximum: 100 | ||
default: 0 | ||
description: The percentage of users that should receive the new version initially. | ||
maxPercentage: | ||
type: integer | ||
minimum: 0 | ||
maximum: 100 | ||
default: 50 | ||
description: The percentage of users who should receive the release candidate during the test phase before full rollout. | ||
advanceDelayMinutes: | ||
type: integer | ||
minimum: 10 | ||
default: 10 | ||
description: The number of minutes to wait before advancing the rollout percentage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters