Conversation
|
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
Commits
|
244be09 to
2d48b8f
Compare
2d48b8f to
e8d11b1
Compare
7e6fc69 to
e7f5a1f
Compare
e7f5a1f to
b01d794
Compare
b01d794 to
b78d755
Compare
b78d755 to
26e45d7
Compare
26e45d7 to
a169d61
Compare
|
This pull request is not passing all required checks. Please see this discussion for information on how to get all checks passing. Inconsistent checks can be manually retried. If a test absolutely can not pass for a good reason, please add a comment with an explanation to the PR. |
narcis-radu
left a comment
There was a problem hiding this comment.
Hey @joaquinrivero! I strongly believe the direction is incorrect, and I want to make you are aware of the existing concerns and guardrails around this.
- The AEM sidekick should be used as is, without replacing functionality.
- The "Publish" button has an existing workflow, where authors are requested to confirm before the actual publishing happens. We should not alter the behaviour.
- Authors should never be blocked to publish content. The only exception is around specific configuration, where anyone outside a group is blocked from publishing.
Concerns around functionality
- The solution might not always work on DA
- If for any reason the code is not working properly, authors will not be able to publish.
My recommendation is to leverage existing guardrail tools like Preflight. The tool will run in the background and proactively notify authors if there are any critical errors that need to be checked before publishing the page.
|
Definitely a +1 on this, it's a very complex matter (bulk tools, DA, Sidekick) - most of which we don't own the code for. I assume this would break once the Sidekick sees any sort of changes, likely conflicts with other features such as the milo publish permissions which look for the publish button. I don't think it's a rabbit hole we should go down into, but look for alternatives. The preflight platform seems like the better candidate, notify authors and we log the interactions. If an author does something disregarding recommendations of the tool, we can follow up by logging those pages (@skholkhojaev is currently working on a dashboard for displaying and flagging faulty pages) |
|
@narcis-radu @mokimo To clarify: we're not blocking anyone from publishing. The "Ignore & Publish" escape hatch is intentional and stays. The goal is to make the risk explicit — authors must consciously bypass the warning rather than unknowingly push broken content live. That said, now that we're actively migrating everyone to M@S, I think we need to go a step further: pre-flight should be mandatory for pages with merch content, not just advisory. The April 7 CSO is a direct example of what happens when a staged/preview-only fragment quietly ends up in a live manifest — the check should catch that before publish, not after. Flag any unpublished/preview-only fragments on pages with merch content as a pre-publish requirement |
tools/mas-publish-guardrails/) that replaces the built-in Publish button on preview/live — scans page formas.adobe.com/studio.htmllinks, checks each fragment UUID againsthttps://www.adobe.com/mas/io/fragment, and either auto-publishes via AEM admin API or surfaces an overlay listing unpublished fragments with Close, Re-check, and Ignore & Publish actions:type: sheetandmulti-sheet) and regular HTML pages viaextractFromJson/extractFromText<sk-theme color="…">elementResolves: MWPW-191951 — [CSO remediation] Fallbacks/error prevention.
Deployment (for production merge)
Add this plugin to the Milo Sidekick config at
https://admin.hlx.page/sidekick/adobecom/milo/main/config.json, and setexcludePaths: ["/**"]on the built-inpublishplugin so only the new "Publish" shows up:{ "id": "mas-publish-guardrails", "title": "Publish", "environments": ["preview", "live"], "isPalette": true, "passReferrer": true, "passConfig": true, "url": "/tools/mas-publish-guardrails/index.html", "paletteRect": "width:1px;height:1px;position:fixed;top:-9999px;left:-9999px;opacity:0;" }Reviewing without merging
Sidekick resolves relative
urlvalues against the project's main host (main--milo--adobecom.aem.page), so to test this PR end-to-end you need to override the config locally with an absolute branch URL via Chrome DevTools → Sources → Overrides:In DevTools, open Sources → Overrides, enable "Local overrides", and pick a folder.
Open
https://admin.hlx.page/sidekick/adobecom/milo/main/config.jsonin a tab. In DevTools → Network, right-click the response and choose Save for overrides.In the saved file, set
excludePaths: ["/**"]on the built-inpublishplugin, and paste the config below (already pointing to this branch — no edits needed):{ "id": "mas-publish-guardrails", "title": "Publish", "environments": ["preview", "live"], "isPalette": true, "passReferrer": true, "passConfig": true, "url": "https://mwpw-191951--milo--adobecom.aem.page/tools/mas-publish-guardrails/index.html", "paletteRect": "width:1px;height:1px;position:fixed;top:-9999px;left:-9999px;opacity:0;" }Reload the test page — the custom Publish now runs from this branch.
Test URLs:
Test plan: