-
Notifications
You must be signed in to change notification settings - Fork 108
[MBL-19627][Teacher] Fix quiz filtering to include New Quizzes #3461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MBL-19627][Teacher] Fix quiz filtering to include New Quizzes #3461
Conversation
There was a problem hiding this 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
positionfields 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
- Add a comment in the test explaining that
assignment4represents "New Quizzes" for clarity - Verify the
isQuiz()implementation handles both classic quizzes and LTI-based New Quizzes correctly - Confirm the test assertion changes reflect actual behavior and not test fixes
Great work on improving code quality and test coverage!
...est/java/com/instructure/pandautils/features/assignments/list/AssignmentListViewModelTest.kt
Show resolved
Hide resolved
...est/java/com/instructure/pandautils/features/assignments/list/AssignmentListViewModelTest.kt
Show resolved
Hide resolved
...est/java/com/instructure/pandautils/features/assignments/list/AssignmentListViewModelTest.kt
Show resolved
Hide resolved
📊 Code Coverage Report✅ Student
✅ Teacher
|
🧪 Unit Test Results✅ 📱 Student App
✅ 📱 Teacher App
✅ 🌅 Horizon
✅ 📦 Submodules
📊 Summary
Last updated: Mon, 05 Jan 2026 10:53:28 GMT |
kdeakinstructure
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA 👍
Test plan
refs: MBL-19627
affects: Teacher
release note: Fixed quiz filtering to properly include New Quizzes in the Quizzes group
Checklist
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com