feat: LLMO-2805 Stage config addition api changes#1847
Open
jindaliiita wants to merge 11 commits intomainfrom
Open
feat: LLMO-2805 Stage config addition api changes#1847jindaliiita wants to merge 11 commits intomainfrom
jindaliiita wants to merge 11 commits intomainfrom
Conversation
Contributor
Author
|
Dependent on adobe/spacecat-shared#1370 |
|
This PR will trigger a minor release when merged. |
- Update createOrUpdateStageEdgeConfig to pass isStageDomain: true in metadata - Remove prerender from options, now handled by Tokowaka client layer - Update tests to expect isStageDomain in metadata parameter This aligns with the spacecat-shared changes to keep staging domain logic in the Tokowaka client layer instead of the servlet/API service layer. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
nit23uec
approved these changes
Feb 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for staging domains in the LLMO edge optimizer. Customers can register staging environments (e.g. staging.lovesac.com) for production sites so edge optimization and prerender can run on stage before production.
What's Changed
New Endpoint: POST /sites/{siteId}/llmo/edge-optimize-config/stage
Registers one or more staging domains for a production LLMO site. For each domain:
Response: Returns stageConfigs, an array of full S3 metaconfig objects per stage site (domain, id, apiKeys, tokowakaEnabled, prerender, etc.).
Request Format:
Retrieving Staging Domains
Staging domains can be read via GET /sites/{siteId} under config.edgeOptimizeConfig.stagingDomains.
Implementation Details
Please ensure your pull request adheres to the following guidelines:
describe here the problem you're solving.
If the PR is changing the API specification:
yet. Ideally, return a 501 status code with a message explaining the feature is not implemented yet.
If the PR is changing the API implementation or an entity exposed through the API:
If the PR is introducing a new audit type:
Related Issues
Thanks for contributing!