Skip to content

Conversation

@tamaskozmer
Copy link
Contributor

@tamaskozmer tamaskozmer commented Oct 7, 2025

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

  • Tested in light mode

@github-actions
Copy link

github-actions bot commented Oct 7, 2025

📊 Code Coverage Report

✅ Student

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

✅ Teacher

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

✅ Pandautils

  • PR Coverage: 22.18%
  • Master Coverage: 22.17%
  • Delta: +0.01%

📈 Overall Average

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

@inst-danger
Copy link
Contributor

Parent Install Page

@inst-danger
Copy link
Contributor

Teacher Install Page

@inst-danger
Copy link
Contributor

Student Install Page

@kristofnemere kristofnemere requested a review from Copilot October 8, 2025 07:16
Copy link

Copilot AI left a 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.

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 👍 - We going to check this in production thoroughly

@tamaskozmer tamaskozmer merged commit f44a0d9 into master Oct 8, 2025
7 checks passed
@tamaskozmer tamaskozmer deleted the MBL-19203-Push-notification-for-teacher-comment-opens-Assignment-Details-instead-of-Submission-Details branch October 8, 2025 10:33
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.

5 participants