Skip to content

Commit

Permalink
handle the case where full_refresh is None
Browse files Browse the repository at this point in the history
  • Loading branch information
haritamar committed Oct 30, 2024
1 parent 0f4a215 commit 1d2dfbd
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 1d2dfbd

Please sign in to comment.