@@ -275,7 +275,7 @@ def list_for_run(
275275 ProfileResult .column_name == cls .column_name ,
276276 ),
277277 )
278- .where (ProfilingRun .job_execution_id == job_execution_id , * clauses )
278+ .where (ProfilingRun .id == job_execution_id , * clauses )
279279 .order_by (cls ._priority_order (), cls .table_name , cls .column_name , cls .id )
280280 )
281281 return cls ._paginate (query , page = page , limit = limit , data_class = HygieneIssueListRow )
@@ -299,7 +299,7 @@ def search(
299299 cls .project_code .label ("project_code" ),
300300 HygieneIssueType .name .label ("issue_type_name" ),
301301 TableGroup .table_groups_name .label ("table_groups_name" ),
302- ProfilingRun .job_execution_id .label ("job_execution_id" ),
302+ ProfilingRun .id .label ("job_execution_id" ),
303303 JobExecution .started_at .label ("started_at" ),
304304 cls .schema_name .label ("schema_name" ),
305305 cls .table_name .label ("table_name" ),
@@ -314,7 +314,7 @@ def search(
314314 )
315315 .join (HygieneIssueType , HygieneIssueType .id == cls .type_id )
316316 .join (ProfilingRun , ProfilingRun .id == cls .profile_run_id )
317- .outerjoin (JobExecution , JobExecution .id == ProfilingRun .job_execution_id )
317+ .outerjoin (JobExecution , JobExecution .id == ProfilingRun .id )
318318 .join (TableGroup , TableGroup .id == cls .table_groups_id )
319319 .outerjoin (
320320 ProfileResult ,
@@ -358,7 +358,7 @@ def get_with_context(cls, issue_id: UUID, *clauses) -> HygieneIssueDetail | None
358358 cls .detail .label ("detail" ),
359359 HygieneIssueType .detail_redactable .label ("detail_redactable" ),
360360 ProfileResult .pii_flag .label ("pii_flag" ),
361- ProfilingRun .job_execution_id .label ("job_execution_id" ),
361+ ProfilingRun .id .label ("job_execution_id" ),
362362 JobExecution .started_at .label ("started_at" ),
363363 ProfileResult .general_type .label ("column_general_type" ),
364364 ProfileResult .db_data_type .label ("column_db_data_type" ),
@@ -368,7 +368,7 @@ def get_with_context(cls, issue_id: UUID, *clauses) -> HygieneIssueDetail | None
368368 )
369369 .join (HygieneIssueType , HygieneIssueType .id == cls .type_id )
370370 .join (ProfilingRun , ProfilingRun .id == cls .profile_run_id )
371- .outerjoin (JobExecution , JobExecution .id == ProfilingRun .job_execution_id )
371+ .outerjoin (JobExecution , JobExecution .id == ProfilingRun .id )
372372 .outerjoin (
373373 ProfileResult ,
374374 and_ (
0 commit comments