Skip to content

fix(loc): use Smartling file status instead of job percentComplete - #809

Draft
markdaugherty wants to merge 3 commits into
mainfrom
fix/smartling-file-status-progress
Draft

markdaugherty wants to merge 3 commits into
mainfrom
fix/smartling-file-status-progress

Conversation

@markdaugherty

@markdaugherty markdaugherty commented Oct 2, 2026 •

Copy link
Copy Markdown
Member
  • Poll file/status per file instead of the job /progress endpoint.
  • Compute progress with Smartling's documented formula: floored, unauthorized strings keep a locale below 100%.
  • Mark a locale translated only when every file is at 100%; otherwise show the lowest per-file progress.
  • Remove the progress: null → 100% rule. A locale missing from the response counts as 0%.
  • Report an error when a status request fails or Smartling reports zero strings for a file.
  • Re-check terminal status after status requests return so a completed or cancelled language is not overwritten.
  • Skip overlapping status polls in handleGetStatus.
  • Add tests for the formula, unauthorized strings, multi-file progress, and the mid-flight completion case.

Job-scoped percentComplete ignores unauthorized strings and reports null
for locales it has no content for, so a locale could be marked translated
and downloaded while strings were still untranslated. Poll per-file
file/status and compute progress with Smartling's documented formula.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@aem-code-sync

aem-code-sync Bot commented Oct 2, 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

Mark Daugherty and others added 2 commits October 2, 2026 10:55
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Re-check terminal status after file status requests return so a language
that completed mid-flight is not overwritten, and skip overlapping status
polls in handleGetStatus.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
fix/smartling-file-status-progress — 0960b804 Deployed Oct 2, 2026 by aem-code-sync[bot]
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