Skip to content

fix: hlx6 browse details (last-modified-by + AEM status path)#1047

Open
chrischrischris wants to merge 2 commits into
mainfrom
lastmod
Open

fix: hlx6 browse details (last-modified-by + AEM status path)#1047
chrischrischris wants to merge 2 commits into
mainfrom
lastmod

Conversation

@chrischrischris

Copy link
Copy Markdown
Contributor

What

Two fixes to the browse view "additional details" panel (da-list-item) for Helix 6 sites.

1. Last Modified By never resolves on hlx6 sites

updateDAStatus parsed the legacy version-list shape (/versionsource urls + users array). hlx6 .versions records are ULID-based and carry no users, so the call threw and left Last Modified By stuck on "Checking".

  • For hlx6, read x-last-modified-by from a HEAD on the document (via source.getMetadata) and normalize it the same way as the legacy path.
  • Also count hlx6 version records directly so the Version count is correct (the legacy /versionsource filter yielded 0 on hlx6).
  • The hlx5/legacy path is unchanged.

2. AEM status requested with .html extension

updateAEMStatus passed the full path (including .html) to status.get, but AEM resolves HTML pages by their extensionless path. Strip .html for html items, matching the idiom already used in da-list.js.

Testing

  • Added unit tests for the hlx6 last-modified-by path (header read + anonymous fallback) and the extensionless AEM status path (html stripped, non-html untouched).
  • Full da-list-item suite: 42 passed, 0 failed; eslint clean.
  • Verified manually on the branch.

🤖 Generated with Claude Code

chrischrischris and others added 2 commits June 24, 2026 13:09
hlx6 version records no longer carry last-modified info and use ULID-based
entries instead of /versionsource urls, so the legacy parsing in
updateDAStatus threw and left "Last Modified By" stuck on "Checking".

For hlx6, read x-last-modified-by from a HEAD on the document (via
source.getMetadata) and count the version records directly. The hlx5 path
is unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
updateAEMStatus passed the full path (including .html) to status.get, but
AEM resolves HTML pages by their extensionless path. Strip the .html
extension for html items, matching the idiom already used in da-list.js.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@aem-code-sync

aem-code-sync Bot commented Jun 24, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-sync branch
Commits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant