Skip to content

Conversation

@tamaskozmer
Copy link
Contributor

@tamaskozmer tamaskozmer commented Jan 5, 2026

Test plan

  1. Navigate to the Assignment List in any course that has both traditional quizzes and New Quizzes
  2. Tap on the filter icon and select "Group by: Type"
  3. Verify that both traditional quizzes (ONLINE_QUIZ) and New Quizzes (external tool with quiz-lti) appear under the "Quizzes" group
  4. Verify that assignments are correctly grouped under "Assignments" and discussions under "Discussions"

refs: MBL-19627
affects: Teacher
release note: Fixed quiz filtering to properly include New Quizzes in the Quizzes group

Checklist

  • Dark/light mode testing
  • Landscape/tablet testing
  • Accessibility testing
  • Product approval (if needed)

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

Copy link

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review Summary

This PR refactors quiz detection logic and enhances test coverage for assignment grouping. The changes look good overall with some points to verify.

Positive Feedback

✅ Good refactoring: Using isQuiz() method instead of direct string comparison improves encapsulation and maintainability
✅ Excellent test coverage: Added test case for New Quizzes (LTI-based quizzes) which is important for modern Canvas quiz handling
✅ Test data improvements: Added position fields to AssignmentGroup test fixtures for better test accuracy

Issues to Address

  • Test sorting behavior change (line 567): Verify the removal of .reversed() is intentional and not masking a regression in assignment group ordering
  • Position field consistency: Consider whether position fields should be added to other test fixtures in the file for consistency
  • New Quizzes detection verification: Confirm that isQuiz() correctly identifies external tool quizzes by URL pattern

Code Quality Assessment

  • Best Practices: ✅ Good - Proper encapsulation with method extraction
  • Test Coverage: ✅ Good - New test case added for expanded functionality
  • Potential Bugs: ⚠️ Low risk - Verify sorting behavior change is correct
  • Performance: ✅ No concerns - No performance impact
  • Security: ✅ No concerns identified

Recommendations

  1. Add a comment in the test explaining that assignment4 represents "New Quizzes" for clarity
  2. Verify the isQuiz() implementation handles both classic quizzes and LTI-based New Quizzes correctly
  3. Confirm the test assertion changes reflect actual behavior and not test fixes

Great work on improving code quality and test coverage!

@tamaskozmer tamaskozmer changed the title [MBL-19627][Student][Teacher] Fix quiz filtering to include New Quizzes [MBL-19627][Teacher] Fix quiz filtering to include New Quizzes Jan 5, 2026
@github-actions
Copy link

github-actions bot commented Jan 5, 2026

📊 Code Coverage Report

✅ Student

  • PR Coverage: 43.55%
  • Master Coverage: 43.55%
  • Delta: +0.00%

✅ Teacher

  • PR Coverage: 25.61%
  • Master Coverage: 25.61%
  • Delta: +0.00%

⚠️ Pandautils

  • PR Coverage: 22.92%
  • Master Coverage: 22.92%
  • Delta: -0.00%

📈 Overall Average

  • PR Coverage: 30.69%
  • Master Coverage: 30.69%
  • Delta: -0.00%

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

🧪 Unit Test Results

✅ 📱 Student App

  • Tests: 1241 total, 0 failed, 0 skipped
  • Duration: 0.000s
  • Success Rate: 100%

✅ 📱 Teacher App

  • Tests: 369 total, 0 failed, 0 skipped
  • Duration: 32.287s
  • Success Rate: 100%

✅ 🌅 Horizon

  • Tests: 449 total, 0 failed, 0 skipped
  • Duration: 32.686s
  • Success Rate: 100%

✅ 📦 Submodules

  • Tests: 2515 total, 0 failed, 0 skipped
  • Duration: 46.982s
  • Success Rate: 100%

📊 Summary

  • Total Tests: 4574
  • Failed: 0
  • Skipped: 0
  • Status: ✅ All tests passed!

Last updated: Mon, 05 Jan 2026 10:53:28 GMT

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

Teacher Install Page

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

Student Install Page

Copy link
Contributor

@kdeakinstructure kdeakinstructure left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA 👍

@tamaskozmer tamaskozmer merged commit 75a2cee into master Jan 6, 2026
53 of 54 checks passed
@tamaskozmer tamaskozmer deleted the MBL-19627-correct-quiz-filtering-on-assignment-list branch January 6, 2026 14:29
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.

4 participants