You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UI - Set Aside a Previously Refused Application - Examiner View #27449
changed the title [-]UI - Set Aside a Previously Refused Application[/-][+]UI - Set Aside a Previously Refused Application - Examiner View[/+]on May 13, 2025
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
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.
@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
@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
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
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.
Activity
[-]UI - Approve a Previously Refused Application[/-][+]UI - Set Aside a Previously Refused Application[/+][-]UI - Set Aside a Previously Refused Application[/-][+]UI - Set Aside a Previously Refused Application - Examiner View[/+]dimak1 commentedon May 19, 2025
Hey @avni-work, could you help with this? The new

set-asideendpoint having CORS error. If I recall, we had something similar before with other endpoints. This is happening in Dev (via preview link). Thanksavni-work commentedon May 20, 2025
@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
dimak1 commentedon May 20, 2025
@avni-work to reproduce, please
avni-work commentedon May 20, 2025
@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
dimak1 commentedon May 20, 2025
@avni-work in the screenshot you sent, it is a Registration view, not Application (Registrations start with a letter, among other clues).
avni-work commentedon May 20, 2025
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.
dimak1 commentedon May 20, 2025
@kris-daxiom tagging you here as well for context. Please see comment above - is there something that needs to be added to new
/set-asideendpoint in the API to support it? Thankskris-daxiom commentedon May 21, 2025
@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
dimak1 commentedon May 21, 2025
Ready for UXA in Dev @saragunnarsson
dimak1 commentedon May 22, 2025
@ser-popov it is ready in Test for QA as of Examiner v 0.0.53.
saragunnarsson commentedon May 22, 2025
I can't open any applications on dev right now so I can't UXA @dimak1
saragunnarsson commentedon May 22, 2025
Looks good @dimak1 👍
dimak1 commentedon May 22, 2025
Thank you @saragunnarsson
ser-popov commentedon May 23, 2025
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
victorc-bcgov commentedon May 27, 2025
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.