Skip to content

Commit 2c49bd7

Browse files
committed
fix(backend): remove query comments
Signed-off-by: Fatih Acar <[email protected]>
1 parent 054fb15 commit 2c49bd7

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ async def query_init(self, db: InfrahubDatabase, **kwargs: Any) -> None: # noqa
141141
%(select_subqueries_str)s
142142
}
143143
CALL (potential_path) {
144-
WITH potential_path // workaround for neo4j not allowing WHERE in a WITH of a subquery
144+
WITH potential_path
145145
// only the branches and times we care about
146146
WHERE all(
147147
r IN relationships(potential_path) WHERE (
@@ -173,7 +173,7 @@ async def query_init(self, db: InfrahubDatabase, **kwargs: Any) -> None: # noqa
173173
}
174174
CALL (current_path) {
175175
// only active paths
176-
WITH current_path // workaround for neo4j not allowing WHERE in a WITH of a subquery
176+
WITH current_path
177177
WHERE all(r IN relationships(current_path) WHERE r.status = "active")
178178
RETURN current_path as active_path
179179
}

0 commit comments

Comments
 (0)