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

api: return timeline event metadata as a dict type, not string #138

Merged
merged 1 commit into from
Sep 6, 2019

Conversation

milesbxf
Copy link
Contributor

@milesbxf milesbxf commented Sep 6, 2019

This fixes another regression. When we changed the JSONField, the
serialization type turned to JSON rendered as a string instead of a
dict. This forces the serializer to return native JSON.

I've also updated the TimelineFactory to generate more types of events - this had the effect of breaking some of the incident update tests (as they only expected a single timeline event of incident_update event type to be present), so I've fixed those to retrieve the latest event.

This fixes another regression. When we changed the JSONField, the
serialization type turned to JSON rendered as a string instead of a
dict. This forces the serializer to return native JSON.
@milesbxf milesbxf requested a review from ChrisAnn September 6, 2019 15:05
@milesbxf milesbxf merged commit a2f70f6 into master Sep 6, 2019
@milesbxf milesbxf deleted the metadata-field-dict branch September 6, 2019 15:10
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