mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-17 07:32:59 +00:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user