test: regression tests for csv exports#2282
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2282 +/- ##
============================================
- Coverage 16.47% 16.45% -0.03%
Complexity 450 450
============================================
Files 254 254
Lines 7477 7488 +11
Branches 849 868 +19
============================================
Hits 1232 1232
- Misses 6180 6191 +11
Partials 65 65 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
WalkthroughThe changes introduce explicit setting of HTTP response status to 500 (Internal Server Error) in the exception handlers of several student analytics CSV export controllers. Null checks are added before accessing enum fields to prevent NullPointerExceptions. Loop variables are renamed for brevity. Conditional logic is added for experiment field assignment during event population. Selenium-based UI tests are added to verify CSV export endpoints, and minor updates are made to test utilities and dependency versioning. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Controller
participant Logger/Discord
participant Response
Client->>Controller: Request CSV export
alt Normal operation
Controller->>Response: Return CSV file (HTTP 200)
else Exception occurs
Controller->>Logger/Discord: Log error and notify
Controller->>Response: Set HTTP status 500
end
Assessment against linked issues
Assessment against linked issues: Out-of-scope changes
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (7)
🚧 Files skipped from review as they are similar to previous changes (6)
⏰ Context from checks skipped due to timeout of 90000ms (11)
🔇 Additional comments (2)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Issue Number
Purpose
Technical Details
Testing Instructions
Screenshots
Format Checks
Note
Files in PRs are automatically checked for format violations with
mvn spotless:check.If this PR contains files with format violations, run
mvn spotless:applyto fix them.