Skip to content

Commit

Permalink
skip test dependencies in all level (#2714)
Browse files Browse the repository at this point in the history
* skip test dependencies in all level

* RN
  • Loading branch information
ilaner committed Jan 25, 2023
1 parent 52baa50 commit b111a77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
## Unreleased
* Fixed an issue in **prepare-content** command where large code lines were broken.
* Fixed an issue where git-*renamed_files* were not retrieved properly.
* Fixed an issue where test dependencies were calculated in all level dependencies calculation.
* Added a UUID to name mapper for **download** it replaces UUIDs with names on all downloaded files.

## 1.9.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_all_level_packs_dependencies(
MATCH path = (shortestPath((p1:{ContentType.PACK}{params_str})-[r:{RelationshipType.DEPENDS_ON}*..{MAX_DEPTH}]->(p2:{ContentType.PACK})))
WHERE id(p1) = pack_id AND id(p1) <> id(p2)
AND all(n IN nodes(path) WHERE "{marketplace}" IN n.marketplaces)
{"AND all(r IN relationships(path) WHERE r.mandatorily = true)" if mandatorily else ""}
AND all(r IN relationships(path) WHERE NOT r.is_test {"AND r.mandatorily = true)" if mandatorily else ""}
RETURN pack_id, collect(r) as relationships, collect(p2) AS dependencies
"""
result = run_query(tx, query, ids_list=list(ids_list))
Expand Down

0 comments on commit b111a77

Please sign in to comment.