• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

source-academy / backend / c37d1c0ed6852aa59c21eb97e6171bb0ac6b737c-PR-1381
87%
master: 87%

Build:
Build:
LAST BUILD BRANCH: renovate/aws-6.x
DEFAULT BRANCH: master
Ran 06 Aug 2026 09:49AM UTC
Jobs 1
Files 165
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Aug 2026 09:44AM UTC coverage: 87.478%. First build
c37d1c0ed6852aa59c21eb97e6171bb0ac6b737c-PR-1381

Pull #1381

github

martin-henz
Fix 422 on grading save when no AI comment log exists

update_final_comment/2 returned {:error, :not_found} whenever an
answer had no AI-comment log row (i.e. the grader never used the
AI-assisted commenting feature), which is the case for the vast
majority of submissions. The controller treated any {:error, _} as a
changeset failure and returned 422, so saving grading changes from
the Grading tab failed with "Error while communicating with backend:
422" on essentially every submission, since the frontend calls
save-final-comment on every grading save regardless of whether AI
comments were ever generated.

Treat a missing AI comment log as a no-op success instead of an
error, since there's nothing to attach the final comment to.

Fixes source-academy/frontend#4233

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011Lfqxf3TfRtt4PLB92u11S
Pull Request #1381: Fix 422 on grading save when no AI comment log exists

0 of 1 new or added line in 1 file covered. (0.0%)

3996 of 4568 relevant lines covered (87.48%)

6893.04 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
54.55
lib/cadet/ai_comments.ex
Jobs
ID Job ID Ran Files Coverage
1 c37d1c0ed6852aa59c21eb97e6171bb0ac6b737c-PR-1381.1 06 Aug 2026 09:49AM UTC 165
87.48
GitHub Action Run
Source Files on build c37d1c0ed6852aa59c21eb97e6171bb0ac6b737c-PR-1381
  • Tree
  • List 165
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1381
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc