[improvement][semantic-fe] Dictionary import for dimension values supported in Q&A visibility (#89)

* [improvement][semantic-fe] Add model alias setting & Add view permission restrictions to the model permission management tab.
[improvement][semantic-fe] Add permission control to the action buttons for the main domain; apply high sensitivity filtering to the authorization of metrics/dimensions.
[improvement][semantic-fe] Optimize the editing mode in the dimension/metric/datasource components to use the modelId stored in the database for data, instead of relying on the data from the state manager.

* [improvement][semantic-fe] Add time granularity setting in the data source configuration.

* [improvement][semantic-fe] Dictionary import for dimension values supported in Q&A visibility
This commit is contained in:
tristanliu
2023-09-14 12:14:02 +08:00
committed by GitHub
parent b6d984475c
commit 157c2999dc
10 changed files with 208 additions and 36 deletions

View File

@@ -397,14 +397,6 @@ export function traverseRoutes(routes, env: string, result: any[] = []) {
for (let i = 0; i < routes.length; i++) {
const route = routes[i];
if (
(route.envEnableList &&
(route.envEnableList.includes(env) || route.envEnableList.length === 0)) ||
!route.envEnableList
) {
result.push(route);
}
if (route.envRedirect) {
route.redirect = route.envRedirect[env];
}
@@ -418,6 +410,12 @@ export function traverseRoutes(routes, env: string, result: any[] = []) {
routes: filteredRoutes,
});
}
} else if (
(route.envEnableList &&
(route.envEnableList.includes(env) || route.envEnableList.length === 0)) ||
!route.envEnableList
) {
result.push(route);
}
}
return result;