bcgov / bcgov/entity

Fronted Input Validation / Error handling

Open
#24,031 0 comments 0 reactions 0 assignees View on GitHub
bug UI
Dominant language
JavaScript
Stars
23
Forks
62
Avg merge
24m
Merged PRs (30d)
1

Description

Background:

In auth-api backend we have recently switched to pg8000 database driver, which handles types differently than psycopg2.

For example, in the logs discovered an api call https://auth-api-prod-758264625079.northamerica-northeast1.run.app/api/v1/orgs?id=888226636BC0001&status=ACTIVE&page=1&limit=5 results in 500 error, because the logic in the backend cleans alpha characters from 888226636BC0001, and then try to process 8882266360001, which is larger than the largest possible INT value, resulting in 500 error.

Now, you can reproduce this behavior in the UI: by searching for 888226636BC0001 account number - there is 500 error in the dev console, but no response in the UI, we need to implement input validation in the UI and provide feedback to users in the UI

Screenshot 2024-10-24 at 3.01.07 PM.png

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.