Skip to content

TFRS - Notification link for supplemental requested broken after creation of a draft supplemental report  #2461

@justin-lepitzki

Description

@justin-lepitzki

Describe the Bug
Compliance report not loading when trying to access the report through the notifications page. This bug only occurs when the IDIR user requests a supplemental report (status: Supplemental Requested) and the BCeID user has created a draft supplemental.

Expected Behaviour
Clicking on the notification link for a compliance report (e.g., "Compliance Report for 2022 Supplemental Requested") should take you to the latest version of the 2022 report (draft supplemental, if created; otherwise the submitted report)

Actual Behaviour
The report is not loading when the BCeID user clicks on the notifications link (within the notifications page). Again, this is a specific edge case that only occurs when the IDIR user has requested a supplemental report (status: Supplemental Requested) and the BCeID user has created a draft supplemental. The report is still accessible through the 'Compliance & Exclusion Reports' main page.

Implications
Report fails to load and is causing confusion for suppliers in trying to access their reports.

Steps To Reproduce
Steps to reproduce the behaviour:

  • have a submitted compliance report
  • BCeID user has in-app notifications turned on for 'Supplemental Requested'
  • IDIR user requests supplemental report by clicking on the 'Request Supplemental' button within a submitted compliance report
  • BCeID user navigates to the compliance report through the 'Compliance & Exclusion Reports' page and creates a draft supplemental report.
  • BCeID user then goes to their in-app notifications and clicks on the link to the report from the in-app notification (i.e., "Compliance Report for YYYY Supplemental Requested").
  • The report will fail to load and their will be errors in the inspect console.

Example Report in Test:

Screenshot of console error:
Screenshot 2023-07-25 notification link broken.png

Screenshot of notifications page where the link to access is located:
Screenshot 2023-07-25 notification link broken notifications page.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingMain releaseFor immediate release into production when readyMediumMedium priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions