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

feat(comments): add messages filters #248

Merged
merged 1 commit into from
Jan 9, 2024
Merged

Conversation

joe-prosser
Copy link
Contributor

Adds the ability to filter on senders and recipients when running get comments

@joe-prosser joe-prosser self-assigned this Jan 8, 2024
Copy link
Collaborator

@tommilligan tommilligan left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -328,6 +358,7 @@ pub fn get_many(client: &Client, args: &GetManyCommentsArgs) -> Result<()> {
show_progress: !no_progress,
label_attribute_filter,
user_properties_filter,
messages_filter: Some(messages_filter),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be None if both senders and recipients are None? Or does it not really matter api/perf wise

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It doesn't matter api wise :)

@joe-prosser joe-prosser merged commit ecec086 into master Jan 9, 2024
2 checks passed
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