Skip to content

release 1.41.6: app-space completion fix for reset tutorials - #2940

Merged
jung-thomas merged 4 commits into
mainfrom
DEV
Oct 26, 2026
Merged

jung-thomas merged 4 commits into
mainfrom
DEV

Conversation

@jung-thomas

Copy link
Copy Markdown
Contributor

Summary

DEV → main promotion for release 1.41.6 (blue-green PROD deploy to follow).

Net change over main is exactly:

Verified against PROD data for the reporter: ABAP resolves 4/4, CAP step 1 COMPLETED.

Test plan

  • Blue-green PROD deploy builds tutorials-ims_1.41.6.mtar; after swap, confirm app-space shows reset-then-recompleted tutorials as complete and unblocks track progress

…Records

getAppSpaceProgress + getEventProgress collapsed a user's TaskRecords to one
per (taskType, taskLegacyId) with a plain last-write-wins loop over an UNORDERED
query. A user who RESET a tutorial holds both a COMPLETED row and SUPERSEDED
row(s) for it (#600 has-ever-completed). Whichever the query returned last won
nondeterministically — when a SUPERSEDED/reset row landed last, a genuinely
completed tutorial rendered as not-done. Reported: app-space showing "2 of 4"
ABAP tutorials complete after the reporter had reset + re-completed them, while
other (never-reset, single-record) tracks were fine.

Add buildRecordMap(userRecords): collapse deterministically, preferring
COMPLETED > SUPERSEDED > other, ties broken by latest completionDate. Use it at
both call sites (developer-service.js:603, :714). The #2866 in-window downgrade
still applies to whichever record survives.

Verified: running the real getAppSpaceProgress resolution against PROD data for
the reporter's ABAP track now returns 4/4 COMPLETED deterministically. New unit
test (test/lib/build-record-map.test.js) covers status preference + date
tie-break + per-key separation.
…atus-pref

fix(app-space): prefer COMPLETED record when a task has multiple TaskRecords
Release the app-space completion fix (PR #2938): prefer the COMPLETED record
when a user has multiple TaskRecords for a task (reset-then-recompleted),
fixing reset tutorials showing incomplete / blocking track progress.
chore(release): bump MTA version to 1.41.6
@jung-thomas
jung-thomas merged commit 5af6d39 into main Oct 26, 2026
7 of 9 checks passed
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