Skip to content
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

Bugfix/invalid field format #661

Merged
merged 2 commits into from
Feb 9, 2022
Merged

Conversation

saulipurhonen
Copy link
Contributor

Description

All string typed numbers (except telephoneNumber field) were cast as numbers when passing data to request payload. This resulted in behavior where in some occasions those value types were incorrect and raised validation issues in the backend.

Related issues

Fixes #660

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Changes Made

  • Removed console log
  • Gather integer typed fields from schema to an array
  • Cast matching field value to number

Testing

  • Tests do not apply

Active tests should be sufficient since we have test cases for both Sample / TaxonId (integer type) and DAC / Contact form / Telephone number (string type with integer value).

@saulipurhonen saulipurhonen self-assigned this Feb 8, 2022
@saulipurhonen saulipurhonen added the bug Something isn't working label Feb 8, 2022
@saulipurhonen saulipurhonen added this to the Open Beta milestone Feb 8, 2022
@saulipurhonen saulipurhonen linked an issue Feb 8, 2022 that may be closed by this pull request
@blankdots
Copy link
Contributor

changelog maybe ?

@saulipurhonen
Copy link
Contributor Author

changelog maybe ?

I'll rebase and add to changelog when #624 is merged

@saulipurhonen saulipurhonen force-pushed the bugfix/invalid-field-format branch from 9d7ad9a to 81d7b35 Compare February 8, 2022 08:32
@saulipurhonen saulipurhonen merged commit 195ccb4 into develop Feb 9, 2022
@saulipurhonen saulipurhonen deleted the bugfix/invalid-field-format branch February 9, 2022 04:55
@blankdots blankdots mentioned this pull request Apr 7, 2022
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid field format
3 participants