Skip to content

Serve points through the session feedback queries - #79

Merged
VidsterBroyo merged 1 commit into
mainfrom
feat/session-feedback-reads
Nov 30, 2026
Merged

VidsterBroyo merged 1 commit into
mainfrom
feat/session-feedback-reads

Conversation

@VidsterBroyo

@VidsterBroyo VidsterBroyo commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Notion ticket link

Ticket

Stack 2 of 3. This builds on #78, which merges the tables.

Implementation description

  • This is the "Merge feedback and points reads" item that was deferred in TODO.md. After the table merge, the points queries returned the same rows as the feedback queries, under a different access rule.
  • Removed: sessionPointsForSession, studentSessionPoints, myPoints, mySessionPoints. Use sessionFeedback, studentSessionFeedback and studentFeedback, which now include points.
  • One access rule: students and parents pass a studentId and must manage that student. Before, points were readable only for the active student, while feedback was readable for any managed student. Now a parent can see every child's points without switching the active student.
  • Empty messages: sent feedback with an empty message is now returned to students and parents. Before, the feedback queries hid it, which would hide points-only feedback once points come through those queries. Clients should hide the empty message box (documented on SessionFeedback.text).

What should reviewers focus on?

  • Dropping the active-student rule for points. No resolver reads activeStudentId after this PR. The active student still matters for login, refresh and the frontend's selected profile.
  • The empty-message rule moving to clients.
  • Not run against a real database. Please run the README's "Points read checks" and save/send step 3.

Checklist

  • My PR name is descriptive and in imperative tense
  • My commit messages are descriptive and in imperative tense. My commits are atomic and trivial commits are squashed or fixup'd into non-trivial commits
  • I have run the appropriate linter(s)
  • I have requested a review from the TL, as well as other devs who have background knowledge on this PR or who will be building on top of this PR

🤖 Generated with Claude Code

@VidsterBroyo
VidsterBroyo added this pull request to stack #81 November 30, 2026 02:02
@VidsterBroyo VidsterBroyo changed the title feat: serve points through the session feedback queries Serve points through the session feedback queries Nov 30, 2026
@VidsterBroyo
VidsterBroyo force-pushed the feat/session-feedback-reads branch 2 times, most recently from debf11a to 4565d78 Compare November 30, 2026 02:21
@VidsterBroyo
VidsterBroyo marked this pull request as ready for review November 30, 2026 02:29
Base automatically changed from feat/session-feedback to main November 30, 2026 02:36
Feedback and points are one row now, so the points-only queries
(sessionPointsForSession, studentSessionPoints, myPoints, mySessionPoints)
duplicated the feedback queries with a different access rule. Remove them and
use the feedback queries' rule everywhere: students and parents can read any
student they manage. Sent feedback with an empty message is now returned to
students and parents so points-only feedback reaches them; clients hide the
empty message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@VidsterBroyo
VidsterBroyo force-pushed the feat/session-feedback-reads branch from 4565d78 to 0560612 Compare November 30, 2026 02:37
@VidsterBroyo
VidsterBroyo merged commit 899b358 into main Nov 30, 2026
2 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