Skip to content

UI - Set Aside a Previously Refused Application - Examiner View #27449

Closed

Description

@victorc-bcgov
  • 'Set Aside' button (driven by API)
  • Compose Email
  • Show 'Set Aside' badge for Applications that are set aside

Figma File

Activity

  1. changed the title [-]UI - Approve a Previously Refused Application[/-] [+]UI - Set Aside a Previously Refused Application[/+] on May 13, 2025
  2. changed the title [-]UI - Set Aside a Previously Refused Application[/-] [+]UI - Set Aside a Previously Refused Application - Examiner View[/+] on May 13, 2025
  3. self-assigned this
    on May 16, 2025
  4. dimak1 commented on May 19, 2025

    @dimak1
    Collaborator

    Hey @avni-work, could you help with this? The new set-aside endpoint having CORS error. If I recall, we had something similar before with other endpoints. This is happening in Dev (via preview link). Thanks
    Screenshot 2025-05-19 at 08.38.58.png

  5. avni-work commented on May 20, 2025

    @avni-work
    Contributor

    @dimak1 i do not believe we had any issue with other endpoints with CORS errors.

    please provide reproduction steps so i can investigate as i am not seeing those when i go to preview link for PR 740

  6. dimak1 commented on May 20, 2025

    @dimak1
    Collaborator

    @avni-work to reproduce, please

    • go to any Cancelled Application in the Examiner Dashboard (or refuse on of the open apps)
    • then Set Aside button will show up on Cancelled app
    • clicking Set Aside is not working - the CORS errors will show up in the console
  7. avni-work commented on May 20, 2025

    @avni-work
    Contributor

    @dimak1

    i am in the preview link for pr 740 and looking at a cancelled application and i do not see a set aside button

    image.png

  8. dimak1 commented on May 20, 2025

    @dimak1
    Collaborator

    @avni-work in the screenshot you sent, it is a Registration view, not Application (Registrations start with a letter, among other clues).

  9. avni-work commented on May 20, 2025

    @avni-work
    Contributor

    discussed it with dima at length but here are my findings

    When attempting to use the "Set Aside" action from the UI, the browser sends a preflight OPTIONS request to /set-aside. This request returns a 404 Not Found, which causes the browser to block the actual POST due to CORS enforcement.The /set-aside route needs to be accessible to OPTIONS requests so that the browser can complete the preflight check and allow the POST to proceed. Other endpoints appear to handle this correctly, so this might just require aligning this one with existing patterns.

    Our CORS policy is global and works fine for all other requests indicating this is not a CORS issue atm.

  10. dimak1 commented on May 20, 2025

    @dimak1
    Collaborator

    @kris-daxiom tagging you here as well for context. Please see comment above - is there something that needs to be added to new /set-aside endpoint in the API to support it? Thanks

  11. kris-daxiom commented on May 21, 2025

    @kris-daxiom

    @dimak1 Looks like the url the UI is using is incorrect. It has to be {{api_url}}/applications/{{application_number}}/decision/set-aside.
    It is missing applications in the url

  12. dimak1 commented on May 21, 2025

    @dimak1
    Collaborator

    Ready for UXA in Dev @saragunnarsson

  13. dimak1 commented on May 22, 2025

    @dimak1
    Collaborator

    @ser-popov it is ready in Test for QA as of Examiner v 0.0.53.

  14. saragunnarsson commented on May 22, 2025

    @saragunnarsson

    I can't open any applications on dev right now so I can't UXA @dimak1

  15. saragunnarsson commented on May 22, 2025

    @saragunnarsson

    Looks good @dimak1 👍

  16. dimak1 commented on May 22, 2025

    @dimak1
    Collaborator

    Thank you @saragunnarsson

  17. ser-popov commented on May 23, 2025

    @ser-popov

    verified that set aside is now available for full review apps that were then refused, and that after set aside the action buttons are available again for examiners

    no support for Provisionally Approved apps that were Refused

    exam v0.55, host v1.212

  18. victorc-bcgov commented on May 27, 2025

    @victorc-bcgov
    Author

    Passed BAA - Confirmed that the "Set Aside" button is present on an application that was previously Refused, and that an entry is written into the History section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions