-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
fix: enable snapshots #9920
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
fix: enable snapshots #9920
Conversation
📝 WalkthroughWalkthroughThe pull request introduces changes to the logic governing the visibility of the snapshots tab in the Vue component Changes
Possibly related PRs
Suggested labels
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
packages/nc-gui/components/dashboard/settings/base/index.vue (1)
41-41: Consider adding user feedback for insufficient permissionsThe permission check is correctly implemented, but consider enhancing user experience by showing a tooltip or message when a user without permissions attempts to access snapshots.
v-if="isEeUI && hasPermissionForSnapshots" +v-tooltip="!hasPermissionForSnapshots ? $t('messages.noPermission') : ''"
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (2)
packages/nc-gui/components/dashboard/settings/base/index.vue(2 hunks)packages/nc-gui/composables/useBetaFeatureToggle.ts(0 hunks)
💤 Files with no reviewable changes (1)
- packages/nc-gui/composables/useBetaFeatureToggle.ts
🔇 Additional comments (1)
packages/nc-gui/components/dashboard/settings/base/index.vue (1)
11-11: Verify the impact of removing feature flag check
The removal of the feature flag check for base snapshots aligns with the PR objective but warrants verification of existing user impact.
Let's check for any other dependencies on this feature flag:
✅ Verification successful
Based on the search results, we can see that hasPermissionForSnapshots is only used within the same file (packages/nc-gui/components/dashboard/settings/base/index.vue) and there are no other references to base_snapshots feature flag in the codebase. The permission check through hasPermissionForSnapshots is still maintained, which ensures proper access control.
Removal of feature flag is safe
The removal of the feature flag for base snapshots is safe as:
- No other components depend on this feature flag
- Security is maintained through
hasPermissionForSnapshotscheck - The change aligns with the PR objective to enable base snapshots
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Search for any remaining references to base_snapshots feature flag
rg -i "base_snapshots" --type vue --type ts
Length of output: 71
Script:
#!/bin/bash
# Search for any remaining references to base_snapshots feature flag using ripgrep
# Note: Using general search without file type filters since the previous attempt failed
rg -i "base_snapshots"
Length of output: 22
Script:
#!/bin/bash
# Search for files containing 'snapshots' to understand the feature's implementation
rg -i "hasPermissionForSnapshots"
Length of output: 552
Script:
#!/bin/bash
# Find all Vue and TypeScript files that might contain feature flag references
fd -e vue -e ts
Length of output: 96713
Change Summary
Enable base Snapshots
Change type