bcgov / bcgov/entity

Namerequest UI: fails to create business after returning from login

Open
#29,122 4 comments 0 reactions 0 assignees View on GitHub
bug Names Team Priority3
Dominant language
JavaScript
Stars
23
Forks
62
Avg merge
24m
Merged PRs (30d)
1

Description

1. start not logged in
2. go to Namerequest UI
3. create a numbered BC Limited
4. you are redirected to login
5. you are redirected back to Namerequest UI
6. see error (may be intermittent)

**Expectation:** Namerequest UI creates a draft and redirects you to Filings UI.

**Analysis:**

I observed that the account id in this flow is 0. (It should have been 668 or another number.)

I believe the reason for this is that is take a few hundred milliseconds, at least, for the current account data to get synced (to session storage). We get around this in other UIs by having a wait loop until the account data is populated.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the Namerequest UI entry point and trace the return-from-login flow, especially where account data is read from session storage. Reproduce the numbered BC Limited flow while logged out, then verify that account data is available before draft creation and that the user is redirected to Filings UI.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
authentication, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.