-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PIMS 1604/1597/1620/1601 - Bug Fixes #2344
Conversation
…or edit dialog. Net usable area validation fixed. Fixed searching on classification type. Fixed saving null tenancy date.
🚀 Deployment Information The Express API Image has been built with the tag: |
Code Climate has analyzed commit 50fb3f4 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 93.7%. View more on Code Climate. |
🚀 Deployment Information The React APP Image has been built with the tag: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is intentional. Aiden / the users he UAT'd with seemed to think we had it backwards 🤷 |
As per stand up discussion I've reverted this change, but I'm pretty confused as to why UAT suggested the opposite. |
…rror message on the frontend.
… PIMS-1604-1597-1620-1601
(val.length <= 9 && | ||
(val.length > 0 || formVals['PIN'].length > 0 || propertyType === 'Building')) || | ||
'Must have set either PID or PIN', | ||
'Must have set either PID or PIN not exceeding 9 digits.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried doing this validation after converting val to a string. It will go through like that, but then the value saved in the database is NULL, so something is getting lost along the way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've corrected this to account for the new behavior where TextFormField will parseFloat onBlur. Something to note for the future though: doing that parseFloat means that entering enough digits will now lock up the text field since the parsed float will be in scientific notation.
… PIMS-1604-1597-1620-1601
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last change seems to have fixed the issue for me.
Will note that the PID/PIN fields allow for decimals. Wondering if we shouldn't just make additional field types instead of trying to conform everything to the text field.
I think we're at the point where that would make sense 👍 |
🎯 Summary
PIMS-1604
PIMS-1597
PIMS-1620
PIMS-1601
Various bug fixes enhancements that were all kinda in similar places:
🔰 Checklist