Skip to content

Commit

Permalink
Fine tune priority values for visualisation resolvers so Grid would b…
Browse files Browse the repository at this point in the history
…e preffered over BarChart (#893)
  • Loading branch information
adrianmroz-allegro authored Apr 11, 2022
1 parent e3528bc commit 9c251d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/visualization-manifests/bar-chart/bar-chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const rulesEvaluator = visualizationDependentEvaluatorBuilder
return Resolve.automatic(5 + continuousBoost, { splits: newSplits });
}

return Resolve.ready(isSelectedVisualization ? 10 : 7 + continuousBoost);
return Resolve.ready(isSelectedVisualization ? 10 : 6 + continuousBoost);
})

.otherwise(({ dataCube }) => {
Expand Down
2 changes: 1 addition & 1 deletion src/common/visualization-manifests/grid/grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const rulesEvaluator = visualizationDependentEvaluatorBuilder
const newSplits = splits.replace(firstSplit, fixedFirstSplit);

if (splits.equals(newSplits)) {
return Resolve.ready(isSelectedVisualization ? 10 : 4);
return Resolve.ready(isSelectedVisualization ? 10 : 6);
}
return Resolve.automatic(6, { splits: newSplits });
})
Expand Down

0 comments on commit 9c251d5

Please sign in to comment.