bcgov / bcgov/bcparks-ar-admin

A&R-> Issue when saving records with zero as the value

Open
#424 3 comments 0 reactions 0 assignees View on GitHub
A&R bug
Dominant language
TypeScript
Stars
5
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Scenario:
* Navigate to the A7R on TEST environment: https://test-ar.bcparks.ca/
* Select a Month, a park and a subarea from the Enter data page
* Select any Activity and open the edit form to enter data.
* Input zero as the values to any field and save the record.
* Re-open the same edit form and check if the zeros retained in the fields as entered in the previous step.

Expected:
* The values entered by users including zeros should be displayed in respective fields when re-opened for editing.

Issue:
* When saved with zeros as the value for input fields (except notes field), the value get saved, but it is not displayed when the form is opened in edit view. Refer to the video attached.

https://github.com/user-attachments/assets/edac16e7-acfa-4f06-b67e-e82f49e2b8a7

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue in the TEST environment through the Enter data page, then inspect the edit form's handling of saved zero values. Done means that zero values entered for fields other than notes remain visible when the record is reopened for editing.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.