mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 03:58:14 +00:00
(improvement)(headless) When the drill-down dimension inherited from the model is removed from the model's settings, it will no longer be displayed in the drill-down dimension of the metric (#751)
Co-authored-by: jolunoluo
This commit is contained in:
@@ -360,7 +360,12 @@ public class MetricServiceImpl implements MetricService {
|
|||||||
}
|
}
|
||||||
if (metricResp.getRelateDimension() != null
|
if (metricResp.getRelateDimension() != null
|
||||||
&& !CollectionUtils.isEmpty(metricResp.getRelateDimension().getDrillDownDimensions())) {
|
&& !CollectionUtils.isEmpty(metricResp.getRelateDimension().getDrillDownDimensions())) {
|
||||||
drillDownDimensions.addAll(metricResp.getRelateDimension().getDrillDownDimensions());
|
for (DrillDownDimension drillDownDimension : metricResp.getRelateDimension().getDrillDownDimensions()) {
|
||||||
|
if (drillDownDimension.isInheritedFromModel() && !drillDownDimension.isNecessary()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
drillDownDimensions.add(drillDownDimension);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ModelResp modelResp = modelService.getModel(metricResp.getModelId());
|
ModelResp modelResp = modelService.getModel(metricResp.getModelId());
|
||||||
if (modelResp.getDrillDownDimensions() == null) {
|
if (modelResp.getDrillDownDimensions() == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user