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

Refactor RequestInterface #1673

Merged
merged 4 commits into from
Jan 7, 2022
Merged

Refactor RequestInterface #1673

merged 4 commits into from
Jan 7, 2022

Conversation

st0012
Copy link
Collaborator

@st0012 st0012 commented Jan 7, 2022

This PR removes the 2 class methods that I think are redundant: .build and .clean_env, as they can just happen in RequestInterface#initialize.

I also don't think this is a breaking change as Event#rack_env= should be the API for users to attaching request data to an event.

Since RequestInterface is where the env mutation happens, adding dup
call there makes the whole flow easier to understand and avoids future
misuse of the APIs (e.g. manually initializes the RequestInterface
without first duplicating the env).
@st0012 st0012 added this to the 4.9.0 milestone Jan 7, 2022
@st0012 st0012 self-assigned this Jan 7, 2022
@st0012
Copy link
Collaborator Author

st0012 commented Jan 7, 2022

@sl0thentr0py need to merge this for other work. but feel free to add comments and I'll address them in other PRs.

@st0012 st0012 merged commit 8b9fc0a into master Jan 7, 2022
@st0012 st0012 deleted the refactor-event-request-processing branch January 7, 2022 15:16
@sl0thentr0py
Copy link
Member

lgtm :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants