Repository navigation
feat: bridge legacy reads and saves for migrated sites - #344
Merged
Merged
Conversation
Keep legacy DA clients usable after HLX6 cutover. Require DA ACLs and caller-token HLX6 permissions. Reject unsupported operations instead of writing stale storage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Build org listings from config so they no longer depend on HLX6. Forward preconditions only for source reads/saves; reject redirects. Guard malformed save Locations and map string upload types. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Merge DA sites with GET /{org}/source/ and configured migrated sites.
Fall back to DA plus configured sites when HLX6 listing fails.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Drop Helix 6 naming from client-facing error messages. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The HLX6 org source listing already includes migrated sites. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
ReviewOverall the design is sound: DA ACLs and the caller's token are both required, failed or uncertain writes are never retried, and nothing falls back to writing in DA storage. Lint passes and the unit tests pass (686). Should fix
Minor (reproduced with local probe tests)
Nit
|
List only bridged HLX6 sites in org listings, with a 3s timeout. Dedupe org entries by path; keep save JSON on upstream 204. Guard unparseable save Locations; infer untyped upload types. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
Thanks @bosschaert, all addressed in a1155ac:
Each has a regression test (689 passing, |
bosschaert
approved these changes
Nov 23, 2026
Contributor
|
Maybe look at the Build / Test Deploy failure 😄 |
adobe-bot
pushed a commit
that referenced
this pull request
Nov 24, 2026
# [1.17.0](v1.16.5...v1.17.0) (2026-11-24) ### Features * bridge legacy reads and saves for migrated sites ([#344](#344)) ([c96cb13](c96cb13))
Collaborator
|
🎉 This PR is included in version 1.17.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
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
Replace the migrated-site 410 gate with a synchronous compatibility adapter for the supported DA read/save contracts. This lets existing Library references and simple source/config clients continue using legacy DA URLs after HLX6 cutover.
Supported scope
GET /{org}/source/entries that are inHLX6_MIGRATED_SITES, caller token, 3s timeout), filtered by DA ACLs, without repeating them on later DA pages. If the HLX6 listing fails, the DA listing is still returned.config/editor/da.json.datafields are limited to.html,.jsonand.svg; upstream redirects return 502.Safety and limitations
HLX6_MIGRATED_SITESare bridged: DA stops serving them from its own storage and proxies supported operations to api.aem.live.HLX6_DUAL_WRITESis unchanged (a site listed there keeps normal DA behavior, even if also listed as migrated).Validation
npm test -- --reporter dot: 689 passing; existing coverage thresholds passed.npm run lint: passed.Rollout
A companion da-content PR routes migrated content through the daadmin binding before direct-R2 allowlists/asset opt-outs. Deploy this da-admin bridge first and synchronize both migration variables on the two workers using dashboard configuration.
Companion PR: adobe/da-content#34. Deploy da-admin first.