Skip to content

Commit

Permalink
handle the case where full_refresh is None (#1735)
Browse files Browse the repository at this point in the history
  • Loading branch information
haritamar authored Oct 31, 2024
1 parent 183e169 commit 9c66df0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions elementary/monitor/fetchers/alerts/schema/alert_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,12 @@ def format_alert(
elementary_database_and_schema=elementary_database_and_schema,
)

@validator("full_refresh", pre=True, always=True)
def validate_full_refresh(cls, full_refresh: Optional[bool]) -> bool:
if full_refresh is None:
return False
return full_refresh


class SourceFreshnessAlertDataSchema(BaseAlertDataSchema):
source_freshness_execution_id: str
Expand Down

0 comments on commit 9c66df0

Please sign in to comment.