Skip to content

Commit

Permalink
Include kind in edition response model
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansick committed May 21, 2024
1 parent 2381e3a commit 5e573c1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions keeper/v2api/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from keeper.editiontracking import EditionTrackingModes
from keeper.exceptions import ValidationError
from keeper.models import OrganizationLayoutMode
from keeper.models import EditionKind, OrganizationLayoutMode
from keeper.utils import (
format_utc_datetime,
validate_path_slug,
Expand Down Expand Up @@ -119,7 +119,6 @@ def from_organization(cls, org: Organization) -> OrganizationResponse:


class LayoutEnum(str, Enum):

subdomain = "subdomain"

path = "path"
Expand Down Expand Up @@ -576,6 +575,9 @@ class EditionResponse(BaseModel):
mode: str
"""The edition tracking mode."""

kind: EditionKind
"""The edition kind."""

@classmethod
def from_edition(
cls,
Expand Down Expand Up @@ -609,6 +611,7 @@ def from_edition(
"date_rebuilt": edition.date_rebuilt,
"date_ended": edition.date_ended,
"mode": edition.mode_name,
"kind": edition.kind,
"tracked_ref": tracked_ref,
"pending_rebuild": edition.pending_rebuild,
"surrogate_key": edition.surrogate_key,
Expand Down

0 comments on commit 5e573c1

Please sign in to comment.