Repository navigation
fix: spell Transferred correctly everywhere (EN-244) - #6
Conversation
ce4cb6e to
350d7ea
Compare
carddev81
left a comment
There was a problem hiding this comment.
@CK-7vn, nice work on this one, I found a few things before it merges:
-
The old spelling can still get written. The enrollment status PATCH (
handleUpdateProgramClassEnrollments) saves whatever status string it's sent. I tried"Incomplete: Transfered"against this branch: it returned 200 and that's what got stored. Any browser still running the old frontend after the deploy can write the misspelled rows again, after 00004 has already run. Core goes to staging on merge and Programs is bumped by hand, so the two can easily run out of sync. Please reject statuses we don't know and add a test row for the old spelling:if !slices.Contains(models.AllEnrollmentStatuses, enrollment.EnrollmentStatus) { return newBadRequestServiceError(errors.New("unknown enrollment status"), "enrollment status") }
-
Checklist. "Tested manually" and "All acceptance criteria verified" are ticked, but your verification notes list the browser check as UNVERIFIED. Please run it: transfer a resident who has an active enrollment, then check that the class outcomes and the roster report's Transferred filter both show it. Then tick it. "Branch rebased" is ticked too, but the branch is still on
f9ea1cd, and main has three merges since (#4, #5, #7). Please rebase. -
What has to happen before EN-244 can close:
- This PR and core #1295 are both merged.
- A platform PR moves staging's
programs.tagto the new main build. Staging is still onsha-1e177e7, and core goes out on its own as soon as it merges. - The browser check above passes on staging.
The ticket's Repo line still says unlocked-core. Please update it to both repos.
350d7ea to
dc3dc84
Compare
carddev81
left a comment
There was a problem hiding this comment.
@CK-7vn, awesome work!!!! Two things before it merges:
-
govulncheck is red because the branch is behind main. The only finding is GO-2026-6859, and main already has the Go 1.26.11 bump (#5). Please merge main in again (or rebase). It merges clean, with no conflicts against #10. That turns the check green.
-
Checklist. "Tested manually" and "All acceptance criteria verified" are still ticked, but the browser check hasn't run. It needs core #1295 too, so do it on staging once both are merged. Untick those two until then.
What has to happen before EN-244 can close:
- This PR and core #1295 are both merged.
- A platform PR moves staging's
programs.tag(stillsha-1e177e7) to the main build that has this PR. Core goes out on its own as soon as it merges, so do both together. - On staging: transfer a resident with an active enrollment, then check that the class outcomes and the roster report's Transferred filter both show it.
- The ticket's Repo line still says unlocked-core only. Please add unlocked-programs.
carddev81
left a comment
There was a problem hiding this comment.
Hey @CK-7vn, found something odd before it merges:
- The rebase copied six of main's commits onto the branch. "fix: build with Go 1.26.11", the govulncheck change, both release commits, #10 and #11's first commit are on this branch as new commits with new hashes. They're the same changes as main's, so you didn't change govulncheck, but the PR now lists 25 files and 9 commits instead of 12 files and your 2. If it lands as a merge commit, main gets those six commits twice and the next release's changelog repeats them. A squash would put all nine messages in the commit body. Please reset the branch to main and put your two commits back on top:
git fetch origin
git switch EN-244-transferred-spelling
git reset --hard origin/main
git cherry-pick 24b5dab3 dc3dc846
git push --force-with-lease
I tried it: both apply clean, and the result is the same code as your current head.
Also, core #1295 merged yesterday, so staging's frontend sends Transferred now while staging's Programs (sha-9b31a3f) still only knows Transfered. Until this merges and the tag moves, the roster's Transferred filter on staging matches nothing, so let's get this in soon.
What has to happen before EN-244 can close:
- This PR is merged (core #1295 already is).
- A platform PR moves staging's
programs.tagto the main build that has this PR. - On staging: transfer a resident with an active enrollment, then check that the class outcomes and the roster report's Transferred filter both show it.
- The ticket's Repo line still says unlocked-core only. Please add unlocked-programs.
4249fed to
9888729
Compare
carddev81
left a comment
There was a problem hiding this comment.
@CK-7vn, amazing job!!
What has to happen before EN-244 can close:
- This PR is merged (core #1295 already is).
- A platform PR moves staging's
programs.tagto the main build that has this PR. EN-119 needs a tag bump too, so if this merges first, one PR to its build covers both. - On staging: transfer a resident with an active enrollment, then check that the class outcomes and the roster report's Transferred filter both show it.
- The ticket's Repo line still says unlocked-core only. Please add unlocked-programs.
Pre-Submission PR Checklist
Description of the change
Spell the enrollment status Incomplete: Transferred everywhere. The constant is now EnrollmentIncompleteTransferred, the roster report filter uses Transferred, and the seed data and tests are updated. Migration 00004 renames existing Incomplete: Transfered rows. It supersedes 00003, which had standardized on the misspelling.
Release
Additional context