Skip to content

test(coaching): follow the photo + LP-as-image branches into the shared media resolver (bd-2kxxa.2) - #574

Merged
hyasin270 merged 1 commit into
developfrom
bd-2kxxa.2-root-tests
Sep 3, 2026
Merged

test(coaching): follow the photo + LP-as-image branches into the shared media resolver (bd-2kxxa.2)#574
hyasin270 merged 1 commit into
developfrom
bd-2kxxa.2-root-tests

Conversation

@hyasin270

Copy link
Copy Markdown
Contributor

Follow-up to #557. Two root suites still described the pre-R165 inline shape of the image handler and started failing on develop after that merge (they are in the root test tree, which the bot-folder runs did not cover):

  • bd2636-classroom-photo-status guarded the widened status filter inside the image handler; it now lives in media-session-resolver, which the handler delegates to. The guard now checks both the delegation and the resolver.
  • feat106-image-idempotency stubbed supabase for a single .eq('status') lookup and mocked the processor without handleLessonPlanResponse, which the shared attach path calls. The stub now answers the resolver's list query and the mock mirrors the real processor (upload + queue), so the contract — a redelivered LP image is processed exactly once — is still what is asserted.

Root tests/coaching on this branch: 21 failing suites vs 23 on develop; the two that flip are these, everything else identical (pre-existing).

🤖 Generated with Claude Code

…o the shared media resolver (bd-2kxxa.2)

Two root suites still described the pre-R165 inline shape of the image handler:
the bd-2636 source guard looked for the widened status filter inside the handler
(it now lives in media-session-resolver, which the handler delegates to), and the
FEAT-106 idempotency test stubbed supabase for a single .eq('status') lookup and
mocked the processor without handleLessonPlanResponse, which the shared attach
path calls. Both keep asserting the same contracts: the widened filter is used,
and a redelivered LP image is processed exactly once.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
(cherry picked from commit 62dae95)
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