feat(web): stream the course repo overview assignment by assignment#127
Merged
Conversation
The repo overview blocked the page for seconds while every assignment's GitLab
group was listed, with no feedback. Add a subscription that emits each assignment
as soon as it is checked, so the GUI can show live progress (like report/check).
- app.StreamCourseRepoOverview mirrors CourseRepoOverview but sends a
RepoOverviewEvent per finished assignment (with the total, for a count), then a
final done event; a missing token surfaces as a done event carrying the error
rather than a synchronous failure. The per-assignment work is factored into
assignmentRepos, shared with the one-shot query.
- GraphQL Subscription courseRepoOverviewProgress(course): RepoOverviewEvent
{assignment, total, done, error}. The one-shot courseRepoOverview query stays.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Was
Die Repo-Übersicht blockierte die Seite sekundenlang (jedes Assignment-Gruppen-Listing), ohne Feedback. Neue Subscription streamt jedes Assignment, sobald es geprüft ist → die GUI zeigt Live-Fortschritt (wie report/check).
Änderungen
app.StreamCourseRepoOverviewwieCourseRepoOverview, aber sendet einRepoOverviewEventpro fertigem Assignment (mittotalfür den Zähler), dann ein finalesdone; fehlender Token kommt alsdone-Event miterrorstatt synchronem Fehler. Die per-Assignment-Arbeit ist inassignmentReposfaktorisiert (geteilt mit der One-Shot-Query).Subscription courseRepoOverviewProgress(course): RepoOverviewEvent{assignment, total, done, error}. Die One-Shot-courseRepoOverview-Query bleibt.GUI (Spinner + Fortschritt) folgt im glabs.gui-Gegenstück.
Verifikation
go build/vet (inkl. -tags=integration)/test/golangci-lint— grün.🤖 Generated with Claude Code