Skip to content

Commit

Permalink
chore(Queries): change new graph setting name [YTFRONT-4682]
Browse files Browse the repository at this point in the history
  • Loading branch information
SimbiozizV committed Feb 6, 2025
1 parent ddb125c commit a6972a1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/ui/src/shared/constants/settings-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export type Stage = string;
interface QueryTrackerSettings {
'global::queryTracker::queriesListSidebarVisibilityMode': boolean;
'global::queryTracker::history::Columns': string[];
'global::queryTracker::queryTrackerNewGraphType': boolean;
'global::queryTracker::useNewGraphView': boolean;
}

interface ChytSettings {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/shared/constants/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const LAST_VISITED_PAGE = createNestedNS(SettingName.LOCAL.LAST_VISITED_PAGE, ME
const OPERATION_PRESETS = createNestedNS('presets', OPERATION);
const ACCOUNTS = createNestedNS('accounts', GLOBAL);
const SCHEDULING = createNestedNS('scheduling', GLOBAL);
const QUERY_TRACKER = createNestedNS('query-tracker', GLOBAL);
const QUERY_TRACKER = createNestedNS('queryTracker', GLOBAL);
const CHYT = createNestedNS('chyt', GLOBAL);

export const NAMESPACES = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ function useSettings(cluster: string, isAdmin: boolean): Array<SettingsPage> {
'Use new graph progress',
'top',
<BooleanSettingItem
settingKey="global::queryTracker::queryTrackerNewGraphType"
settingKey="global::queryTracker::useNewGraphView"
description="Enable experimental graph vew for Progress tab of a query"
oneLine
/>,
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/ui/store/selectors/settings/settings-ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const getSettingsRegularUserUI = createSelector(makeGetSetting, (getSetti
});

export const getSettingsQueryTrackerNewGraphType = createSelector(getSettingsData, (data) => {
return data['global::queryTracker::queryTrackerNewGraphType'] || false;
return data['global::queryTracker::useNewGraphView'] || false;
});

export const getSettingsSchedulingExpandStaticConfiguration = createSelector(
Expand Down

0 comments on commit a6972a1

Please sign in to comment.