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

Add request to Report/Event #693

Merged
merged 5 commits into from
Sep 8, 2021
Merged

Add request to Report/Event #693

merged 5 commits into from
Sep 8, 2021

Conversation

imjoehaines
Copy link
Contributor

Goal

This PR adds a new request attribute to the Report class

Currently this reads from metadata to preserve BC but, in the next major version, request data will be separated from metadata as it's a top-level field in the API (similar to app/device). Code that currently uses metadata[:request] can be swapped to use request to avoid breaking when this happens

Testing

Added MR tests for current request fields in our Rails fixtures

Because it's not really possible/sensible to assert the exact values of certain fields in MR tests, I've also refactored the Rack spec to use a real Report instance, instead of the mock it used previously

Base automatically changed from add-original-error to next September 8, 2021 16:55
@imjoehaines imjoehaines merged commit 6710a46 into next Sep 8, 2021
@imjoehaines imjoehaines deleted the add-report-request branch September 8, 2021 16:55
@imjoehaines imjoehaines mentioned this pull request Sep 17, 2021
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