Skip to content

Commit 2ba08a7

Browse files
chore: FIT-124: Remove feature flag fflag_fix_front_optic_1418_cache_members_manager_apis_short (#7553)
Co-authored-by: Yousif Yassi <[email protected]>
1 parent 6bc10a4 commit 2ba08a7

File tree

2 files changed

+1
-7
lines changed
  • web/libs

2 files changed

+1
-7
lines changed

web/libs/core/src/lib/utils/feature-flags/flags.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,3 @@ export const FF_ADJUSTABLE_SPANS = "fflag_feat_front_leap_1973_adjustable_spans_
8787
* Enables the theme toggle in the UI
8888
*/
8989
export const FF_THEME_TOGGLE = "fflag_feat_front_optic_1217_theme_toggle_short";
90-
91-
/**
92-
* Cache members manager APIs
93-
*/
94-
export const FF_MEMBERS_MANAGER_API_CACHE = "fflag_fix_front_optic_1418_cache_members_manager_apis_short";

web/libs/datamanager/src/utils/api-proxy/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import { formDataToJPO, parseJson } from "../helpers";
1313
import statusCodes from "./status-codes.json";
1414
import { queryClient, shouldBypassCache } from "@humansignal/core/lib/utils/query-client";
15-
import { FF_MEMBERS_MANAGER_API_CACHE, isFF } from "@humansignal/core/lib/utils/feature-flags";
1615

1716
/**
1817
* @typedef {Dict<string, EndpointConfig>} Endpoints
@@ -291,7 +290,7 @@ export class APIProxy {
291290
};
292291

293292
// Use TanStack Query cache for GET requests only if queryCacheParams is present
294-
if (isFF(FF_MEMBERS_MANAGER_API_CACHE) && requestMethod === "GET" && queryCacheParams) {
293+
if (requestMethod === "GET" && queryCacheParams) {
295294
const cacheKey = [queryCacheParams.keyPrefix, paramsForRequest];
296295
return queryClient.fetchQuery({
297296
queryKey: cacheKey,

0 commit comments

Comments
 (0)