]> Git — Sourcephile - gargantext.git/blob - devops/misc/check-repo-cycles.jq
Merge branch 'dev-charts-update-economy' of ssh://gitlab.iscpif.fr:20022/gargantext...
[gargantext.git] / devops / misc / check-repo-cycles.jq
1 .state |
2 map_values(
3 map_values(
4 . as $m |
5 map_values(
6 select( # We keep only records with errors
7 .root and # We need .root
8 (
9 $m[.root].root != null or # A root should have no root itself
10 .parent != .root and # We need .parent different .root
11 $m[.parent].root != .root # The parent's root should the same root.
12 )
13 )
14 ) | select(length > 0) # we keep only records with errors
15 ) | select(length > 0) # we keep only records with errors
16 )