Skip to content

Commit

Permalink
feat: add API pagination feature flag (#3417)
Browse files Browse the repository at this point in the history
  • Loading branch information
nunogois committed Mar 29, 2023
1 parent 4562727 commit 2a4ef56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/__snapshots__/create-config.test.ts.snap
Expand Up @@ -69,6 +69,7 @@ exports[`should create default config 1`] = `
"flags": {
"ENABLE_DARK_MODE_SUPPORT": false,
"anonymiseEventLog": false,
"apiPagination": false,
"bulkOperations": false,
"caseInsensitiveInOperators": false,
"cleanClientApi": false,
Expand Down Expand Up @@ -96,6 +97,7 @@ exports[`should create default config 1`] = `
"experiments": {
"ENABLE_DARK_MODE_SUPPORT": false,
"anonymiseEventLog": false,
"apiPagination": false,
"bulkOperations": false,
"caseInsensitiveInOperators": false,
"cleanClientApi": false,
Expand Down
4 changes: 4 additions & 0 deletions src/lib/types/experimental.ts
Expand Up @@ -81,6 +81,10 @@ const flags = {
process.env.UNLEASH_EXPERIMENTAL_OPTIMAL_304_DIFFER,
false,
),
apiPagination: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_API_PAGINATION,
false,
),
};

export const defaultExperimentalOptions: IExperimentalOptions = {
Expand Down

0 comments on commit 2a4ef56

Please sign in to comment.