Add license leeway - #485
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
🚧 Files skipped from review as they are similar to previous changes (4)
WalkthroughThe change adds a nine-day license expiration grace period. Backend license responses now include expiration and grace-period-end timestamps. Frontend license status logic distinguishes active, grace-period, expired, and seat-limit violation states. Vault views display updated Estimated code review effort: 3 (Moderate) | ~25 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@backend/src/main/java/org/cryptomator/hub/license/LicenseHolder.java`:
- Around line 317-327: Update LicenseHolder.getLeewayEndsAt() to return null
when no expiration exists, while preserving the current leeway calculation for
expiring licenses. Update isExpired() to return false for non-expiring licenses,
and add test coverage validating both behaviors.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: b1f6ecf5-3fed-4a45-9138-9b9610a417d7
📒 Files selected for processing (12)
CHANGELOG.mdbackend/src/main/java/org/cryptomator/hub/api/LicenseResource.javabackend/src/main/java/org/cryptomator/hub/license/LicenseHolder.javabackend/src/test/java/org/cryptomator/hub/api/LicenseResourceTest.javabackend/src/test/java/org/cryptomator/hub/license/LicenseHolderTest.javafrontend/src/common/backend.tsfrontend/src/components/LicenseAlert.vuefrontend/src/components/VaultDetails.vuefrontend/src/components/VaultList.vuefrontend/src/components/emergencyaccess/EmergencyAccessVaultList.vuefrontend/src/i18n/en-US.jsonfrontend/test/common/backend.spec.ts
overheadhunter
left a comment
There was a problem hiding this comment.
Mostly fine. A little api refinement in frontend.
Also, should we call this "leeway" (which suggests to be bidirectional, i.e. exp ± leeway)? Or rather something like grace period?
|
Agree, renamed leeway to grace period in 33e23e9. |
overheadhunter
left a comment
There was a problem hiding this comment.
Looks good, but please wait with merging until we talked about the duration.
We still have this banner, in case the licence finally expires
but a grace period was added