Skip to content

Conversation

@cfsmp3
Copy link
Contributor

@cfsmp3 cfsmp3 commented Jan 4, 2026

Summary

  • Calculates sample progress in get_data_for_test() for initial page render
  • Updates template to display actual progress instead of hardcoded 0 / 0 samples

Problem

When opening a test page, the sample progress showed 0 / 0 samples even if the test was already at 141/237 samples. Users had to wait 20 seconds for the first AJAX poll to see the real progress.

Solution

Calculate sample_progress on the server side during initial page render.

🤖 Generated with Claude Code

Previously the test page hardcoded "0 / 0 samples" and only updated
via AJAX after 20 seconds. Now the sample progress is calculated
on initial render so users see accurate progress immediately.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 4, 2026

@canihavesomecoffee canihavesomecoffee merged commit abb8ebe into master Jan 4, 2026
6 checks passed
@cfsmp3 cfsmp3 deleted the fix/initial-sample-progress-display branch January 4, 2026 10:13
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.

3 participants