Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

The raw_data field on FacilityListItem is being populated a stringified QueryDict or dict instead of JSON #1052

Closed
jwalgran opened this issue Jul 16, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jwalgran
Copy link
Contributor

jwalgran commented Jul 16, 2020

Overview

The raw_data field on FacilityListItem is being populated with either a QueryDict or a stringified Python dict instead of JSON.

Addressing this will require a fix to make sure all incoming data is saved as JSON, and after this fix is deployed, optionally cleaning up the incorrectly serialized legacy data with a migration

Expected Behavior

No matter how data is POSTed to the facility endpoint the body of the request is saved in the raw_data field as JSON.

Actual Behavior

The raw_data field on FacilityListItem is being populated with either a QueryDict or a stringified Python dict instead of JSON.

Steps to Reproduce

  • POST a valid JSON object to /api/facilities

Demo

Screen Shot 2021-04-26 at 12 53 29 PM

Screen Shot 2020-07-16 at 11 15 59 AM

@jwalgran jwalgran added the bug Something isn't working label Jul 16, 2020
@jwalgran jwalgran changed the title [DRAFT] The raw_data field on FacilityListItem is being populated with QueryDict nstead of JSON The raw_data field on FacilityListItem is being populated with QueryDict nstead of JSON Apr 26, 2021
@jwalgran jwalgran changed the title The raw_data field on FacilityListItem is being populated with QueryDict nstead of JSON The raw_data field on FacilityListItem is being populated a stringified QueryDict or dict instead of JSON Apr 26, 2021
@TaiWilkin TaiWilkin self-assigned this May 17, 2021
@TaiWilkin TaiWilkin mentioned this issue May 19, 2021
5 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants