Skip to content

Commit 3a5a543

Browse files
committed
fix(backend): get_many regression on big result sets
Due to a missing order by in NodeListGetInfoQuery, we may end up with a smaller result set than expected due to duplicate rows. Signed-off-by: Fatih Acar <[email protected]>
1 parent b825be9 commit 3a5a543

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/infrahub/core/query/node.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,7 @@ async def query_init(self, db: InfrahubDatabase, **kwargs: Any) -> None: # noqa
988988
)
989989
self.params.update(branch_params)
990990
self.params["ids"] = self.ids
991+
self.order_by = ["n.uuid"]
991992

992993
query = """
993994
MATCH p = (root:Root)<-[:IS_PART_OF]-(n:Node)

0 commit comments

Comments
 (0)