entity icon indicating copy to clipboard operation
entity copied to clipboard

BUG - Application Status page does not populate for BCREG0040/Smith Auto

Open rstens opened this issue 1 year ago • 2 comments

Describe the bug in current situation Application Status page does not populate for BCREG0040/Smith Auto even though the network trace shows that data was received from the API

Impact of this bug No info available for this user, even though it is in the DB

Chance of Occurring (high/medium/low/very low) High

Steps to Reproduce Steps to reproduce the behavior:

  1. Login
  2. Got to https://strr-ui-dev.web.app/application-status/
  3. See error

Actual/ observed behavior/ results Response from the application API Call:

{
    "applications": [
        {
            "header": {
                "applicationDateTime": "2024-10-29T16:36:59.074150+00:00",
                "applicationNumber": "23154950772965",
                "decisionDate": null,
                "examinerActions": [
                    "APPROVE",
                    "REJECT"
                ],
                "examinerStatus": "Full Examination",
                "hostActions": [],
                "hostStatus": "Pending Approval",
                "isCertificateIssued": false,
                "name": "registration",
                "paymentAccount": "2623",
                "paymentStatus": "COMPLETED",
                "paymentToken": 42010,
                "reviewer": {},
                "status": "FULL_REVIEW",
                "submitter": {
                    "displayName": "BCREGTEST THANOS THIRTYNINE",
                    "username": "bcsc/v7oohtfgv2g2dspnbbrqjwcxktbdiujn"
                }
            },
            "registration": {
                "listingDetails": [],
                "primaryContact": {
                    "businessNumber": "",
                    "dateOfBirth": "2023-05-11",
                    "details": {
                        "emailAddress": "[email protected]",
                        "extension": "",
                        "faxNumber": "",
                        "phoneNumber": "7788711156",
                        "preferredName": ""
                    },
                    "mailingAddress": {
                        "address": "11467 Somerset Crescent",
                        "city": "Delta",
                        "country": "CA",
                        "postalCode": "V4E2P1",
                        "province": "BC"
                    },
                    "name": {
                        "firstName": "BCREGTEST THANOS",
                        "lastName": "THIRTYNINE"
                    },
                    "socialInsuranceNumber": "111 111 111"
                },
                "principalResidence": {
                    "agreedToRentalAct": false,
                    "agreedToSubmit": true,
                    "isPrincipalResidence": false,
                    "nonPrincipalOption": "Eligible strata hotel or motel",
                    "specifiedServiceProvider": "n/a"
                },
                "registrationType": "HOST",
                "unitAddress": {
                    "address": "11467 Somerset Crescent",
                    "addressLineTwo": "",
                    "city": "Delta",
                    "country": "CA",
                    "nickname": "",
                    "postalCode": "V4E2P1",
                    "province": "BC"
                },
                "unitDetails": {
                    "isUnitOnPrincipalResidenceProperty": false,
                    "numberOfRoomsForRent": 3,
                    "ownershipType": "RENT",
                    "propertyType": "SECONDARY_SUITE",
                    "rentalUnitSpaceType": "ENTIRE_HOME"
                }
            }
        
    ],
    "limit": 50,
    "page": 1,
    "total": 14
}

Error in console:

login-status-iframe.html:57 Fetch failed loading: GET "https://dev.loginproxy.gov.bc.ca/auth/realms/bcregistry/protocol/openid-connect/login-status-iframe.html/init?client_id=strr-web&origin=https%3A%2F%2Fstrr-ui-dev.web.app".
checkState @ login-status-iframe.html:57
await in checkState

Expected behavior Should populate the page

Screenshots/ Visual Reference/ Source screencapture-strr-ui-dev-web-app-application-status-2024-10-31-17_21_53.png

rstens avatar Nov 01 '24 00:11 rstens

A platform application is present in the applications response. In reality this would never be the case. This can be ignored. To not run into this issue in dev/test, it may be better to have different teams use specific logins for development and testing. Cc: @lorriewright @thorwolpert

kris-daxiom avatar Nov 01 '24 17:11 kris-daxiom

Yes, I saw the same. We also could change the application endpoint to only go after the ones we need.

rstens avatar Nov 01 '24 18:11 rstens

Resolved

jdyck-fw avatar Nov 07 '24 21:11 jdyck-fw