Skip to content

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

Merged
pavkout merged 17 commits into
Kong:developfrom
pavkout:feature/ins-5159
Apr 10, 2025
Merged

feat: Add disabling logic to mandate storage option by the API [INS-5159]#8548
pavkout merged 17 commits into
Kong:developfrom
pavkout:feature/ins-5159

Conversation

@pavkout

@pavkout pavkout commented Mar 31, 2025

Copy link
Copy Markdown
Contributor

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
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