Repository navigation
fix(loc): use Smartling file status instead of job percentComplete - #809
Open
markdaugherty wants to merge 6 commits into
Open
markdaugherty wants to merge 6 commits into
markdaugherty wants to merge 6 commits into
Conversation
markdaugherty
force-pushed
the
fix/smartling-file-status-progress
branch
from
October 6, 2026 18:59
0960b80 to
ba15cbc
Compare
markdaugherty
changed the base branch from
main
to
smartling-per-job-project-selection
October 6, 2026 18:59
markdaugherty
marked this pull request as ready for review
October 6, 2026 19:00
markdaugherty
force-pushed
the
fix/smartling-file-status-progress
branch
from
October 6, 2026 19:29
ba15cbc to
c559ee2
Compare
markdaugherty
force-pushed
the
fix/smartling-file-status-progress
branch
from
October 6, 2026 22:07
c559ee2 to
12de5ca
Compare
markdaugherty
force-pushed
the
fix/smartling-file-status-progress
branch
from
October 12, 2026 16:27
12de5ca to
6038e5e
Compare
markdaugherty
force-pushed
the
fix/smartling-file-status-progress
branch
from
October 19, 2026 23:17
6038e5e to
59cb678
Compare
markdaugherty
force-pushed
the
fix/smartling-file-status-progress
branch
from
October 20, 2026 13:28
59cb678 to
d63ad54
Compare
markdaugherty
force-pushed
the
fix/smartling-file-status-progress
branch
from
October 20, 2026 21:24
d63ad54 to
a4a4256
Compare
markdaugherty
force-pushed
the
fix/smartling-file-status-progress
branch
from
October 21, 2026 20:46
a4a4256 to
b2188c6
Compare
markdaugherty
force-pushed
the
fix/smartling-file-status-progress
branch
from
October 22, 2026 02:25
b2188c6 to
2b5dfdf
Compare
mhaack
force-pushed
the
fix/smartling-file-status-progress
branch
from
October 22, 2026 18:32
2b5dfdf to
b512aa4
Compare
markdaugherty
force-pushed
the
fix/smartling-file-status-progress
branch
from
October 22, 2026 20:55
b512aa4 to
bae69e4
Compare
markdaugherty
force-pushed
the
fix/smartling-file-status-progress
branch
2 times, most recently
from
October 26, 2026 13:57
1252de4 to
d212898
Compare
markdaugherty
force-pushed
the
fix/smartling-file-status-progress
branch
from
October 26, 2026 18:06
d212898 to
a79e08b
Compare
markdaugherty
force-pushed
the
fix/smartling-file-status-progress
branch
from
October 27, 2026 14:19
a79e08b to
ec0405c
Compare
mhaack
reviewed
Oct 27, 2026
| delete lang.translation.cancelPending; | ||
| lang.translation.translated = 0; | ||
| lang.translation.status = 'cancelled'; | ||
| continue; // eslint-disable-line no-continue |
Contributor
There was a problem hiding this comment.
Project-level file statuses can persist after a locale is removed from this job, so this can leave cancellation pending indefinitely or mark a cancelled language as translated and auto-save it. Please reconcile pending cancellations against job membership or the cancellation process endpoint instead.
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> # Conflicts: # nx/blocks/loc/connectors/smartling/index.js # test/loc/connectors/smartling/index.test.js
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> # Conflicts: # nx/blocks/loc/views/translate/translate.js
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
A language with a pending cancel whose locale no file lists any more is now marked cancelled. Replaces two stale tests that mocked the old job progress endpoint. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
markdaugherty
force-pushed
the
fix/smartling-file-status-progress
branch
from
October 27, 2026 19:58
ec0405c to
a3ad973
Compare
Project-level file status can persist after a locale is removed, so a pending cancel could stay pending forever or be marked translated. Persist the cancel processUid and resolve pending cancels through the job process endpoint instead. A 202 without a processUid is now treated as an error. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This branch was successfully deployed
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.
Stacked on feat(loc): add per-job Smartling project, auto-authorize, and workflow selection #766.
Poll
file/statusper file instead of the job/progressendpoint.Compute progress with Smartling's formula: floored, and unauthorized strings keep a locale below 100%.
Mark a locale
translatedonly 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.Note:
file/statusis per project andfileUri, not per job, so jobs that reuse afileUrishare counts.Add tests for the formula, unauthorized strings, multi-file progress, the mid-flight completion case, and the busy guard.
Persist the
processUidfrom a pending locale cancel and resolve it through the job process endpoint ingetStatusAll.Treat a cancel that returns 202 without a
processUidas an error.Remove the file-status inference that marked unlisted locales as cancelled.
Add tests for completed, failed, in-progress, and missing-
processUidcancels.