bcgov / name-examination

Service BC Name Examination System
4 stars 36 forks source link

22784_fix_401_response_on_nr_approvals #1547

Closed EPortman closed 1 week ago

EPortman commented 2 weeks ago

Issue #: https://app.zenhub.com/workspaces/names-team-board-new-655554cbddd49510027dad2e/issues/gh/bcgov/entity/22784

Description of changes: Problem: When a Name Request (NR) is approved, an unnecessary second patch request is sent, leading to a 401 error. This happens because the currentNameChoice is incorrectly set to undefined during the approval process.

Solution: Removed the code that sets the currentNameChoice to undefined from the parseNr method in the Examine Store.

Detailed Explanation

Update E2E Tests for the fixed functionality.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namex license (Apache 2.0).

EPortman commented 2 weeks ago

/gcbrun

bcregistry-sre commented 2 weeks ago

Temporary Url for review: https://namex-dev--pr-1547-6jpp1w9a.web.app