Skip to content

feat: Add disabling logic to mandate storage option by the API [INS-5159] #8548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Apr 10, 2025

Conversation

pavkout
Copy link
Contributor

@pavkout pavkout commented Mar 31, 2025

The electron application should only enable what is allowed set by the API.

Closes INS-5159

@pavkout pavkout self-assigned this Mar 31, 2025
@pavkout pavkout requested a review from a team March 31, 2025 08:18
@pavkout pavkout force-pushed the feature/ins-5159 branch 3 times, most recently from c4f0d02 to a9786a7 Compare April 4, 2025 14:46
@pavkout pavkout force-pushed the feature/ins-5159 branch from 4517a7f to 82d5eb2 Compare April 8, 2025 22:42
pavkout added 17 commits April 10, 2025 20:32
…nation logic and add isSwitchingStorageType function
…selection and improve project modal submission logic
@pavkout pavkout merged commit 5156631 into Kong:develop Apr 10, 2025
9 checks passed
cwangsmv pushed a commit that referenced this pull request Apr 21, 2025
] (#8548)

* Modify types and create new default values for storage rules

* Refactor project storage type handling to use StorageRules and add a function for storage type labels

* Refactor ProjectDropdown to use StorageRules and update project storage type handling

* Refactor NewWorkspaceModal to use StorageRules for storage handling

* Refactor ProjectModal to use StorageRules for storage type handling and update related logic

* Refactor WorkspaceSettingsModal to use StorageRules for organization storage handling

* Refactor ProjectRoute to use StorageRules for storage handling and update related logic

* Refactor import route to utilize organization storage rules and improve cloud sync logic

* Refactor sync logic in import route to utilize storage rules for cloud synchronization

* Refactor ProjectModal and ProjectRoute to improve storage type messaging clarity

* Refactor getDefaultProjectStorageType to enhance storage type determination logic and add isSwitchingStorageType function

* Refactor fetchAndCacheOrganizationStorageRule to simplify default parameter assignment

* Refactor storageRule to include cloud sync, Git sync, and local vault options

* Refactor ProjectModal to update project data based on storage rules

* Refactor ProjectModal to manage storage type state directly and improve data handling

* Refactor dashboard interactions tests to use first() for project row selection and improve project modal submission logic

* Fix inconsistency check for Git projects in ProjectDropdown component
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants