Skip to content

move all record_event instances to send a request #13744

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

Merged
merged 5 commits into from
May 24, 2023

Conversation

ewdurbin
Copy link
Member

@ewdurbin ewdurbin commented May 24, 2023

One more step towards #8158, updates all record_event calls to use a request.

@ewdurbin ewdurbin requested a review from a team as a code owner May 24, 2023 20:06
@@ -369,28 +369,26 @@ def create_service(cls, context, request):

@implementer(IProjectService)
class ProjectService:
def __init__(self, session, remote_addr, metrics=None, ratelimiters=None) -> None:
def __init__(self, session, metrics=None, ratelimiters=None) -> None:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

biggest refactor here. removed remote_addr on service instantiation and made it required when calling the one method that uses it.

@ewdurbin
Copy link
Member Author

tempted to remove ip_address from the record_event signature altogether... but feel like that is itself another herculean PR.

@di
Copy link
Member

di commented May 24, 2023

tempted to remove ip_address from the record_event signature altogether... but feel like that is itself another herculean PR.

We should definitely do this, but in a separate PR.

@ewdurbin
Copy link
Member Author

yes, yes, I omitted "in this pr" from that sentence

Copy link
Member

@miketheman miketheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing blocking, but some improvements suggested.

@ewdurbin ewdurbin enabled auto-merge (squash) May 24, 2023 20:51
@ewdurbin ewdurbin merged commit 8751450 into main May 24, 2023
@ewdurbin ewdurbin deleted the chanting_requests_requests_requests branch May 24, 2023 20:57
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.

3 participants