feat: add licenses.validate endpoint to preview a license before applying#40858
feat: add licenses.validate endpoint to preview a license before applying#40858rodrigok wants to merge 2 commits into
Conversation
…ying Adds a new `POST /api/v1/licenses.validate` REST endpoint that validates a Rocket.Chat license (V2 or V3 JWT) against the current workspace's validation structure without applying it, so the result can be previewed from the UI before the license is committed. - core-typings: new `LicenseValidationResult` type - license: `LicenseManager.validateLicenseForPreview()` runs the same validation pipeline used on apply (URL, periods, limits) without mutating state or emitting events; the shared `licenseValidationBehaviors` constant is reused by both the apply and preview paths to avoid duplication - rest-typings: `isLicensesValidateProps` schema + endpoint typing - meteor: `licenses.validate` route (edit-privileged-setting) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
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 |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
🦋 Changeset detectedLatest commit: 93bc1b7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #40858 +/- ##
===========================================
- Coverage 70.17% 70.17% -0.01%
===========================================
Files 3341 3341
Lines 123645 123572 -73
Branches 22050 22412 +362
===========================================
- Hits 86765 86711 -54
+ Misses 33539 33504 -35
- Partials 3341 3357 +16
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Adds a new
POST /api/v1/licenses.validateREST endpoint that validates a Rocket.Chat license (V2 or V3 JWT) against the current workspace's validation structure without applying it, so the result can be previewed from the UI before the license is committed.LicenseValidationResulttypeLicenseManager.validateLicenseForPreview()runs the same validation pipeline used on apply (URL, periods, limits) without mutating state or emitting events; the sharedlicenseValidationBehaviorsconstant is reused by both the apply and preview paths to avoid duplicationisLicensesValidatePropsschema + endpoint typinglicenses.validateroute (edit-privileged-setting)Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments
CORE-2104