fix: address review comments on offline license no-egress - #41419
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (12)
WalkthroughOffline-license detection is centralized on ChangesOffline license consolidation
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feat/offline-license-no-egress #41419 +/- ##
==================================================================
+ Coverage 68.35% 68.36% +0.01%
==================================================================
Files 3970 3970
Lines 154925 154925
Branches 27843 27832 -11
==================================================================
+ Hits 105904 105922 +18
+ Misses 44271 44253 -18
Partials 4750 4750
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Proposed changes (including videos or screenshots)
Addresses review comments on #41148:
hasOfflineLicense()wrapper — callers now useLicense.hasOfflineLicense()directly.assertNotOfflineLicense()stays since it carries real behavior (throws for interactive cloud flows). Unit test mocks updated to stub@rocket.chat/licenseinstead of the local module.server/main.tsper suggestion.License.onInstallfires once per license application (and immediately when a license is already applied), so the once-per-activation flag closure and the extra validate/invalidate/remove registrations are gone.Issue(s)
Review follow-up for #41148
Steps to test or reproduce
Apply an offline license and confirm the startup log line appears once; cloud/push egress suppression is unchanged.
userLogoutandregisterPreIntentWorkspaceWizardunit tests pass.Further comments
No behavior change except the startup log now triggers on license install instead of every validation cycle (less noise, same signal).
Summary by CodeRabbit
Bug Fixes
Tests