feat: integrate update redirect with self onboarding#2027
Conversation
2c74e84 to
a3df8a2
Compare
|
This PR will trigger a minor release when merged. |
a739f8f to
df2211a
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
df2211a to
e7f85be
Compare
|
hi @jkf276 , Important Duplicate authoring/delivery type validation — plg-onboarding.js:432-440 queueIdentifyRedirectsAudit already validates authoring/delivery types internally (utils.js:1174-1186) and returns { ok: false } if they don't match. The outer validForRedirects check duplicates this logic, so the two can drift out of sync. The outer check does serve a purpose: distinguishing an intentional "skip" (site isn't CS) from an actual failure (site IS CS but the queue failed). If that's the intent, a comment explaining the distinction would help clarify why this is intentional duplication. Missing happy-path test — plg-onboarding.test.js:1435 The two new tests only cover the ok: false branches. There's no test asserting that queueIdentifyRedirectsAuditStub is actually called with the correct arguments for a valid CS site (the success path). The existing tests implicitly skip redirects (default authoringType: null, deliveryType: null), so a CS-site happy-path test is missing. steps object not updated — plg-onboarding.js:449 All other steps set a flag on steps (e.g., steps.configUpdated = true, steps.auditsEnabled = true) for auditability. The redirects step doesn't set steps.redirectsQueued. This makes it harder to diagnose what happened during onboarding from the stored state. (need to update spacecat shared as well there is map which needs to be updated) Minor [SiteModel.DELIVERY_TYPES.AEM_CS].includes(deliveryType) — creating a single-element array just to call .includes() is idiomatic but unnecessary; deliveryType === SiteModel.DELIVERY_TYPES.AEM_CS reads cleaner. Verdict |
e7f85be to
5eff857
Compare
|
Issues Important
Minor
// current (double call):
Verdict Approve with minor concerns. The logic is sound — onboarding correctly delegates to queueDeliveryConfigWriter which |
added the update-redirect step to the self/plg onboarding updated plg-onboarding.test.js for the additional audit.
added comments for outer and inner type check added steps.redirectQueue to plg onboarding added happy path testing simplified conditional statement fore readability added cdn integration added direct test for validateSiteForRedirects() removed duplicate call to getDeliveryConfig added clafifying comments for queueDeliveryConfigWriter() in plg-onboarding
5eff857 to
12b8a56
Compare
# [1.413.0](v1.412.0...v1.413.0) (2026-04-03) ### Features * integrate update redirect with self onboarding ([#2027](#2027)) ([2a72a95](2a72a95))
|
🎉 This PR is included in version 1.413.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
added the update-redirect and cdn-detect step to self/plg onboarding Please ensure your pull request adheres to the following guidelines: - [ ] make sure to link the related issues in this description. Or if there's no issue created, make sure you describe here the problem you're solving. - [ ] when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes If the PR is changing the API specification: - [ ] make sure you add a "Not implemented yet" note the endpoint description, if the implementation is not ready yet. Ideally, return a 501 status code with a message explaining the feature is not implemented yet. - [ ] make sure you add at least one example of the request and response. If the PR is changing the API implementation or an entity exposed through the API: - [ ] make sure you update the API specification and the examples to reflect the changes. If the PR is introducing a new audit type: - [ ] make sure you update the API specification with the type, schema of the audit result and an example ## Related Issues Thanks for contributing!
# [1.413.0](v1.412.0...v1.413.0) (2026-04-03) ### Features * integrate update redirect with self onboarding ([#2027](#2027)) ([2a72a95](2a72a95))
added the update-redirect step to the self/plg onboarding
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!