Skip to content

Commit 603fdf9

Browse files
Merge pull request #1611 from devtron-labs/use_v2_true_as_default
chore: remove versioning from app listing api
2 parents 4580258 + 23921d6 commit 603fdf9

File tree

4 files changed

+1
-11
lines changed

4 files changed

+1
-11
lines changed

.env

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ HIDE_GITOPS_OR_HELM_OPTION=true
2424
CONFIGURABLE_TIMEOUT=
2525
HIDE_APPLICATION_GROUPS=true
2626
REACT_APP_K8S_CLIENT=false
27-
USE_V2=false
2827
CLUSTER_TERMINAL_CONNECTION_POLLING_INTERVAL=7000
2928
CLUSTER_TERMINAL_CONNECTION_RETRY_COUNT=7
3029
ENABLE_CHART_SEARCH_IN_HELM_DEPLOY=false

config.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
| SENTRY_PERFORMANCE_ENABLED | false | To send persormance sentry |
1616
| SENTRY_DSN | '' | SENTRY Data Source Name |
1717
| SENTRY_TRACES_SAMPLE_RATE | 0.2 | Rate at which data send to sentry.(min=0 max=1)|
18-
| USE_V2 | "true" | Use the v2 APIs |
1918
| ENABLE_RESTART_WORKLOAD | "false" | Show restart pods option in app details page |
2019
| ENABLE_BUILD_CONTEXT | "true" | Enable build context in Devtron UI |
2120
| FORCE_SECURITY_SCANNING | "false" | Force security scanning |

src/components/app/service.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,7 @@ let stageMap = {
2424
}
2525

2626
export const getAppList = (request, options?) => {
27-
let URL = Routes.APP_LIST
28-
if (window._env_.USE_V2) {
29-
URL += `/${Routes.APP_LIST_V2}`
30-
} else {
31-
URL += `/${Routes.APP_LIST_V1}`
32-
}
33-
return post(URL, request, options)
27+
return post(Routes.APP_LIST, request, options)
3428
}
3529

3630
export function getCITriggerInfo(params: { envId: number | string; ciArtifactId: number | string }) {

src/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ interface customEnv {
3434
CONFIGURABLE_TIMEOUT?: string
3535
HIDE_APPLICATION_GROUPS?: boolean
3636
K8S_CLIENT?: boolean
37-
USE_V2?: boolean
3837
CLUSTER_TERMINAL_CONNECTION_POLLING_INTERVAL?: number
3938
CLUSTER_TERMINAL_CONNECTION_RETRY_COUNT?: number
4039
ENABLE_CHART_SEARCH_IN_HELM_DEPLOY?: boolean
@@ -140,7 +139,6 @@ if (!window || !window._env_) {
140139
HIDE_GITOPS_OR_HELM_OPTION: false,
141140
HIDE_APPLICATION_GROUPS: false,
142141
K8S_CLIENT: process.env.REACT_APP_K8S_CLIENT === 'true',
143-
USE_V2: true,
144142
CLUSTER_TERMINAL_CONNECTION_POLLING_INTERVAL: 7000,
145143
CLUSTER_TERMINAL_CONNECTION_RETRY_COUNT: 7,
146144
ENABLE_CHART_SEARCH_IN_HELM_DEPLOY: false,

0 commit comments

Comments
 (0)