-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move const vaiables to
const-vars.ts
(#2728)
**Changes:** This PR refactors the handling of constant variables related to unlimited max containers per session and unlimited max concurrent sessions. The main changes include: 1. Created a new file `const-vars.ts` to centralize these constants. 2. Moved `UNLIMITED_MAX_CONTAINERS_PER_SESSIONS` and `UNLIMITED_MAX_CONCURRENT_SESSIONS` from `KeypairResourcePolicySettingModal.tsx` to `const-vars.ts`. 3. Updated import statements in affected files to use the new centralized constants. **Rationale:** Centralizing these constants improves code maintainability and reduces duplication. It allows for easier updates if these values need to change in the future and ensures consistency across the application. **Impact:** This change does not affect functionality but improves code organization and maintainability. Developers working on the project will now have a single source of truth for these constants.
- Loading branch information
Showing
4 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export const UNLIMITED_MAX_CONTAINERS_PER_SESSIONS = 1000000; | ||
export const UNLIMITED_MAX_CONCURRENT_SESSIONS = 1000000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters