Skip to content

Refactor RequestInterface#1673

Merged
st0012 merged 4 commits intomasterfrom
refactor-event-request-processing
Jan 7, 2022
Merged

Refactor RequestInterface#1673
st0012 merged 4 commits intomasterfrom
refactor-event-request-processing

Conversation

@st0012
Copy link
Copy Markdown
Contributor

@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.

st0012 added 3 commits January 7, 2022 14:40
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 st0012 requested a review from sl0thentr0py January 7, 2022 15:05
@st0012
Copy link
Copy Markdown
Contributor 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
Copy Markdown
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