You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serve student resources from books/resources/ and match table markers by id (#1779)
FacultyResourcesSerializer omitted book_student_resources, so table cells
with resource_type 'Student' could never resolve client-side against the
resources API — os-webview had faculty resources but no student ones to
match against. Add it with the same hidden-filtering and ?x=y redaction as
the faculty rows, but flattened to resource_heading/resource_description/
resource_unlocked to match the shape os-webview already reads from the Book
page API for student resources.
Also give the table's resource_ref marker a resource_id (the through-row
pk, equal to the id books/resources/ now serializes for the same row).
Heading-only matching is fragile — punctuation differences between the CMS
and the resources API can silently miss a match — so the frontend can now
match by id first and fall back to heading only for already-cached table
JSON (up to 30 days old) that predates resource_id.
0 commit comments