-
Notifications
You must be signed in to change notification settings - Fork 108
[MBL-19203][Student] Push notification for teacher comment opens Assignment Details instead of Submission Details #3293
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
Conversation
📊 Code Coverage Report✅ Student
✅ Teacher
✅ Pandautils
📈 Overall Average
|
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.
Pull Request Overview
This PR fixes an issue where push notifications for teacher comments were opening Assignment Details instead of Submission Details. The change enables proper routing to the specific submission when accessed via push notification.
Key changes:
- Added submission ID parameter handling to automatically navigate to submission details when provided
- Updated routing logic to use Long type for submission ID instead of String
- Added comprehensive test coverage for the new navigation behavior
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| AssignmentDetailsViewModel.kt | Added logic to auto-navigate to submission details when submission ID is provided and matches criteria |
| AssignmentDetailsFragment.kt | Updated routing to handle submission ID as Long type and added submission ID parameter |
| AssignmentDetailsViewModelTest.kt | Added comprehensive test coverage for the new submission navigation logic |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
...n/java/com/instructure/pandautils/features/assignments/details/AssignmentDetailsViewModel.kt
Show resolved
Hide resolved
...in/java/com/instructure/pandautils/features/assignments/details/AssignmentDetailsFragment.kt
Show resolved
Hide resolved
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 👍 - We going to check this in production thoroughly
Test plan: Since push notifications only work in production, this can be tested using a deep link to open the submission details with a specific submission ID. Verify that the correct student's submission is displayed (not the first one). I couldn't fix the attempt issue because the attempt number is not part of the push notification, older push notifications will still open the latest attempt but that is an edge case.
refs: MBL-19203
affects: Student
release note: Fixed an issue where submission comment push notifications wouldn't route to the submission.
Checklist