Skip to content

Commit 8ce15d4

Browse files
fatih-acarwartraxx51
authored andcommitted
fix(backend): remove query comments
Signed-off-by: Fatih Acar <[email protected]>
1 parent 8369445 commit 8ce15d4

File tree

1 file changed

+2
-2
lines changed
  • backend/infrahub/core/validators/uniqueness

1 file changed

+2
-2
lines changed

backend/infrahub/core/validators/uniqueness/query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ async def query_init(self, db: InfrahubDatabase, **kwargs: Any) -> None: # noqa
162162
%(select_subqueries_str)s
163163
}
164164
CALL (potential_path) {
165-
WITH potential_path // workaround for neo4j not allowing WHERE in a WITH of a subquery
165+
WITH potential_path
166166
// only the branches and times we care about
167167
WHERE all(
168168
r IN relationships(potential_path) WHERE (
@@ -194,7 +194,7 @@ async def query_init(self, db: InfrahubDatabase, **kwargs: Any) -> None: # noqa
194194
}
195195
CALL (current_path) {
196196
// only active paths
197-
WITH current_path // workaround for neo4j not allowing WHERE in a WITH of a subquery
197+
WITH current_path
198198
WHERE all(r IN relationships(current_path) WHERE r.status = "active")
199199
RETURN current_path as active_path
200200
}

0 commit comments

Comments
 (0)