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
Filings UI: spinner should pre-empt action button #23967
Consider fixing this ticket at the same time as #23925.
When a task in the To Do list is pending, there is a background retry mechanism. During this time, a spinner displays on the item. However, something was broken recently and both the spinner and action button (eg, retry) display at the same time.
Applies to all filings. Error might be displayed if user clicks the button again. Not an environmental issue. Needs to be fixed for Nov release.
Yes, I believe this ticket is a duplicate of the one Riyaz created (23636).
The spinner displays when it shouldn't. This was recently broken, so you could look at older code and see under what conditions the spinner should display and then fix the current code.
@leodube-aot Your fix correctly made the spinner and action button mutually exclusive but uncovered another bug: the spinner always displays when there is a filing id to highlight and that filing is an approved continuation in draft. This scenario, specifically, needs to be excluded from the spinner / retry mechanism.
Do you think you can fix this in this ticket?
To reproduce:
in window 1, create a continuation in authorization
in window 1, submit it
in window 2, approve it
go back to window 1 (where the URL has the filing id as a parameter) and refresh the page
observe that the spinner displays for 5 seconds; there should be no spinner in this case
Filed an IA and the spinner is showing up as expected
Thanks but that's not the spinner we're talking about. This ticket is about the spinner on a To Do item while, say, it's waiting for payment to complete. The spinner should be displayed for up to 5 seconds (with no action button displayed), and then, either the dashboard reloads completely to show all the new data, or the action button is shown (eg, Incomplete Payment).
Payment Failure and loading screen
Payment Success loading
Great tests! Yes, this is how it is supposed to work.
This functionality is to specifically catch cases where the payment is still processing and then completes; it will reload the dashboard and show you the latest state (ie, filing moves from To Do list to Recent Filing History list). Or, if the payment doesn't complete during the retry (spinner) period, then the action button is displayed.
The scenario for continuation Authorization filing.
This doesn't capture the continuation authorization scenario that I highlighted above (with reproduction steps). The key to this scenario is that the authorization has to be submitted and then you can verify that the spinner is not displayed.
Technical explanation: a spinner will be displayed during background polling for certain items in the To Do list. For example, we want to see the spinner for a Pending item because payment might complete in 1-2 seconds and change the status to Paid. But we don't want to see the spinner for a submitted (then approved) continuation authorization because it's not waiting for payment.
Activity
chenhongjing commentedon Oct 31, 2024
Sev, just curious, is it the same issue you described in #23636?
severinbeauvais commentedon Oct 31, 2024
Yes, I believe this ticket is a duplicate of the one Riyaz created (23636).
The spinner displays when it shouldn't. This was recently broken, so you could look at older code and see under what conditions the spinner should display and then fix the current code.
leodube-aot commentedon Nov 6, 2024
Testing Notes
severinbeauvais commentedon Nov 6, 2024
@leodube-aot Your fix correctly made the spinner and action button mutually exclusive but uncovered another bug: the spinner always displays when there is a filing id to highlight and that filing is an approved continuation in draft. This scenario, specifically, needs to be excluded from the spinner / retry mechanism.
Do you think you can fix this in this ticket?
To reproduce:
leodube-aot commentedon Nov 6, 2024
@severinbeauvais Sure I can fix that in this ticket. I'll move it back to In Progress.
vishnup0422 commentedon Nov 7, 2024
Filed an IA and the spinner is showing up as expected
Private Zenhub Video
Change of Directors Filing
Private Zenhub Video
Address Change Filing
Private Zenhub Video
severinbeauvais commentedon Nov 7, 2024
Thanks but that's not the spinner we're talking about. This ticket is about the spinner on a To Do item while, say, it's waiting for payment to complete. The spinner should be displayed for up to 5 seconds (with no action button displayed), and then, either the dashboard reloads completely to show all the new data, or the action button is shown (eg, Incomplete Payment).
vishnup0422 commentedon Nov 7, 2024
Got it, Thanks. Will add those scenarios.
vishnup0422 commentedon Nov 7, 2024
Payment Failure and loading screen
Private Zenhub Video
Payment Success loading
Private Zenhub Video
severinbeauvais commentedon Nov 7, 2024
Great tests! Yes, this is how it is supposed to work.
This functionality is to specifically catch cases where the payment is still processing and then completes; it will reload the dashboard and show you the latest state (ie, filing moves from To Do list to Recent Filing History list). Or, if the payment doesn't complete during the retry (spinner) period, then the action button is displayed.
vishnup0422 commentedon Nov 7, 2024
The scenario for continuation Authorization filing.
Private Zenhub Video
severinbeauvais commentedon Nov 7, 2024
This doesn't capture the continuation authorization scenario that I highlighted above (with reproduction steps). The key to this scenario is that the authorization has to be submitted and then you can verify that the spinner is not displayed.
Technical explanation: a spinner will be displayed during background polling for certain items in the To Do list. For example, we want to see the spinner for a Pending item because payment might complete in 1-2 seconds and change the status to Paid. But we don't want to see the spinner for a submitted (then approved) continuation authorization because it's not waiting for payment.
severinbeauvais commentedon Nov 7, 2024
Example: this state (and notice that the URL contains the filing id). The reproduction steps above will take you to this scenario.
vishnup0422 commentedon Nov 7, 2024
Submitted a request for continuation and once its approved the spinner does not show up.
Private Zenhub Video