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

Edit parse properties to convert some None values to #337

Merged
merged 2 commits into from
May 15, 2024

Conversation

hjribeiro-moj
Copy link
Contributor

@hjribeiro-moj hjribeiro-moj commented May 14, 2024

🐛 fix for #327

  • updated parse_properties to look for fields requiring default of "" and convert it if filed was explicitly set to None. Found 2 examples: descritpion and externalUrl.
  • Added a unit test case for this
  • Added test evidence of the fix working on the APP

@hjribeiro-moj
Copy link
Contributor Author

Test Evidence

before fix when searching for "xhibit_all_offence_disposal_stg":
image

with fix:
image

Signed-off-by: Helder Ribeiro <helder.ribeiro@digital.justice.gov.uk>
Signed-off-by: Helder Ribeiro <helder.ribeiro@digital.justice.gov.uk>
@hjribeiro-moj hjribeiro-moj force-pushed the fmd-327-map-none-to-empty-str branch from 387dc05 to ec4f653 Compare May 15, 2024 10:26
@hjribeiro-moj hjribeiro-moj marked this pull request as draft May 15, 2024 10:28
@hjribeiro-moj hjribeiro-moj changed the title draft: Edit parse properties to convert some None values to Edit parse properties to convert some None values to May 15, 2024
@hjribeiro-moj hjribeiro-moj self-assigned this May 15, 2024
@hjribeiro-moj hjribeiro-moj marked this pull request as ready for review May 15, 2024 10:30
Copy link
Contributor

@LavMatt LavMatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - the other cases i was thinking of are actually already handled in the code, e.g relationships, i just was off during that part of the refactor

@hjribeiro-moj hjribeiro-moj merged commit 3cd8c96 into main May 15, 2024
4 of 5 checks passed
@hjribeiro-moj hjribeiro-moj deleted the fmd-327-map-none-to-empty-str branch May 15, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants