This is an automated email from the ASF dual-hosted git repository. sbp pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tooling-atr-experiments.git
commit bd22f41f249626c6bbc2d9a718d5a9801435d0dd Author: Sean B. Palmer <s...@miscoranda.com> AuthorDate: Wed Feb 12 14:07:11 2025 +0200 Add enumerations for stages and phases to models --- atr/models.py | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/atr/models.py b/atr/models.py index 2a8616a..a01ec4d 100644 --- a/atr/models.py +++ b/atr/models.py @@ -118,10 +118,28 @@ class VoteEntry(BaseModel): end: datetime.datetime +class ReleaseStage(str, Enum): + BUILD = "build" + CANDIDATE = "candidate" + CURRENT = "current" + ARCHIVED = "archived" + + +class ReleasePhase(str, Enum): + EVALUATE_CLAIMS = "evaluate_claims" + DISTRIBUTE_TEST = "distribute_test" + VOTE = "vote" + DISTRIBUTE = "distribute" + ANNOUNCE = "announce" + RELEASED = "released" + FAILED = "failed" + ARCHIVED = "archived" + + class Release(SQLModel, table=True): storage_key: str = Field(primary_key=True) - stage: str - phase: str + stage: ReleaseStage + phase: ReleasePhase # Many-to-one: A release belongs to one PMC, a PMC can have multiple releases pmc_id: Optional[int] = Field(default=None, foreign_key="pmc.id") --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tooling.apache.org For additional commands, e-mail: dev-h...@tooling.apache.org