bcgov / business-filings-ui

BC Registry Services - Legal Entities - Business Dashboard and Filings
Apache License 2.0
9 stars 52 forks source link

18273+18558 Extension Request Cleanup and Tests #585

Closed leodube-aot closed 11 months ago

leodube-aot commented 11 months ago

Issue #: /bcgov/entity#18273 and /bcgov/entity#18558

Description of changes:

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

severinbeauvais commented 11 months ago

Update: Date validation, and specific section errors, have been implemented. Looks great, thanks!

This should probably throw an error, I think?

image

Also this?

image

OK, when I click File Now, the component shows an error, but I don't know what's incorrect:

image

leodube-aot commented 11 months ago

@severinbeauvais Yeah you're correct, there should be more clear error handling. I'll get that fixed. The one field I can confirm we don't validate is the Intended AGM date (based on what Mihai has said), but perhaps at should still not allow dates in the past for that one.

leodube-aot commented 11 months ago

Newest changes:

leodube-aot commented 11 months ago

/gcbrun

bcregistry-sre commented 11 months ago

Temporary Url for review: https://business-filings-dev--pr-585-c2c631r7.web.app

LD says try: https://business-filings-dev--pr-585-c2c631r7.web.app/BC0871200?accountid=668

severinbeauvais commented 11 months ago

~Leo, does this PR complete everything for AGM Extensions? If not, what's left?~ answer is below

severinbeauvais commented 11 months ago

~Leo, should there be a check that the intended AGM date is not later than the due date? Maybe this wouldn't cause a validation error but could display the yellow box with some message. Check with Mihai and Yui.~ answer is below

leodube-aot commented 11 months ago

@severinbeauvais I checked and there is one more formula to be added to the AGM extension calculation bcgov/entity#18579. Otherwise, this ticket has completed all the hooking up required.

For the intended date, Mihai's comment explains why we don't validate it.

severinbeauvais commented 11 months ago

Otherwise, this ticket has completed all the hooking up required.

Yeah, it looks that way -- thank you! But I am still unable to file an AGM extension. Do we know if this is solely an API issue?

leodube-aot commented 11 months ago

Yeah, it looks that way -- thank you! But I am still unable to file an AGM extension. Do we know if this is solely an API issue?

I think it's just an API issue. The saveFiling() function in AgmExtension throws an axios error: "Request failed with status code 422" when "File and Pay" is clicked, which prevents redirection to the payment page.

sonarcloud[bot] commented 11 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication