Skip to content

Commit 15751e2

Browse files
committed
full name in summary
1 parent 8e97187 commit 15751e2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

elementary/monitor/alerts/source_freshness_alert.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,12 @@ def data(self) -> Dict:
142142
freshness_description=self.freshness_description,
143143
)
144144

145+
def get_source_full_name(self) -> str:
146+
return f"{self.source_name}.{self.identifier}"
147+
145148
@property
146149
def concise_name(self) -> str:
147-
return f"source freshness alert - {self.source_name}.{self.identifier}"
150+
return f"source freshness alert - {self.get_source_full_name()}"
148151

149152
@property
150153
def error_message(self) -> str:
@@ -155,8 +158,8 @@ def error_message(self) -> str:
155158
@property
156159
def summary(self) -> str:
157160
if self.original_status == "runtime error":
158-
return f'Failed to calculate the source freshness of "{self.source_name}"'
159-
return f'Freshness exceeded the acceptable times on source "{self.source_name}"'
161+
return f'Failed to calculate the source freshness of "{self.get_source_full_name()}"'
162+
return f'Freshness exceeded the acceptable times on source "{self.get_source_full_name()}"'
160163

161164
def get_report_link(self) -> Optional[ReportLinkData]:
162165
return get_test_runs_link(self.report_url, self.source_freshness_execution_id)

0 commit comments

Comments
 (0)