Skip to content

Commit

Permalink
order by action_id for consistent result ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-h-wang committed Dec 11, 2024
1 parent ad2e0fb commit 49ce495
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prime-router/src/main/kotlin/history/db/ReportGraph.kt
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class ReportGraph(
.leftJoin(REPORT_LINEAGE)
.on(REPORT_FILE.REPORT_ID.eq(REPORT_LINEAGE.CHILD_REPORT_ID))
.where(REPORT_LINEAGE.PARENT_REPORT_ID.isNull())
.orderBy(REPORT_FILE.REPORT_ID.asc())
.orderBy(REPORT_FILE.ACTION_ID.asc())
.fetchOneInto(Item::class.java)
return rootItem
}
Expand Down Expand Up @@ -478,6 +478,7 @@ class ReportGraph(
.leftJoin(REPORT_LINEAGE)
.on(REPORT_FILE.REPORT_ID.eq(REPORT_LINEAGE.CHILD_REPORT_ID))
.where(REPORT_LINEAGE.PARENT_REPORT_ID.isNull())
.orderBy(REPORT_FILE.ACTION_ID.asc())

/**
* Accepts a list of ids and walks down the report lineage graph
Expand Down

0 comments on commit 49ce495

Please sign in to comment.