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

ref(filters): Move generic filter checks to event::filter #3216

Merged
merged 4 commits into from
Mar 7, 2024

Conversation

iker-barriocanal
Copy link
Contributor

Follow-up to #3161 (comment).

This PR moves the check whether Relay supports generic filters from the processor to event::filter, which returns an enum of what Relay should do with the event. There are no functional changes.

#skip-changelog

@iker-barriocanal iker-barriocanal self-assigned this Mar 5, 2024
@iker-barriocanal iker-barriocanal requested a review from a team as a code owner March 5, 2024 12:01
@@ -271,15 +271,35 @@ pub fn finalize<G: EventProcessing>(
Ok(())
}

/// Decision for applying some filters that don't drop the event.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bikeshedding a bit: I don't really like "decision" here, but the alternatives "result" and "outcome" have other meanings that may generate some confusion. Open to suggestions.

Copy link
Member

@Dav1dde Dav1dde left a comment

Choose a reason for hiding this comment

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

Thanks for following up on this.

relay-server/src/services/processor/event.rs Outdated Show resolved Hide resolved
relay-server/src/services/processor/event.rs Outdated Show resolved Hide resolved
@iker-barriocanal iker-barriocanal enabled auto-merge (squash) March 7, 2024 14:10
@iker-barriocanal iker-barriocanal merged commit e831ffe into master Mar 7, 2024
20 checks passed
@iker-barriocanal iker-barriocanal deleted the iker/ref/filter-enum branch March 7, 2024 16:07
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