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

Add Filter Object to Multi Conversation Select Block Element #1191

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

imamfzn
Copy link

@imamfzn imamfzn commented Apr 10, 2023

PR preparation
  • Run make pr-prep from the root of the repository to run formatting, linting and tests.
Should this be an issue instead
  • is it a convenience method? (no new functionality, streamlines some use case)
  • exposes a previously private type, const, method, etc.
  • is it application specific (caching, retry logic, rate limiting, etc)
  • is it performance related.
API changes

N/A

This changes is to add the filter object in multi_conversation_select block element type since the documentation said the filter object is also supported in that type. Currently the filter object only present in conversation_select type.

Reference to the documentation:

Copy link
Member

@kanata2 kanata2 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks :)

block_element.go Outdated
@@ -279,6 +279,7 @@ type MultiSelectBlockElement struct {
InitialChannels []string `json:"initial_channels,omitempty"`
MinQueryLength *int `json:"min_query_length,omitempty"`
MaxSelectedItems *int `json:"max_selected_items,omitempty"`
Filter *SelectBlockElementFilter `json:"filter,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

[nits]
We should rename to ConversationListsFilter.

Copy link
Author

Choose a reason for hiding this comment

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

Hi @kanata2 i've updated to be ConversationListsFilter, kindly help to check again :)

Copy link
Member

Choose a reason for hiding this comment

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

(Sorry, this suggestion is backward imcompatible change... I'll make new minor version and include this.)

Copy link
Author

Choose a reason for hiding this comment

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

Btw is there anything that i need to do ? or just waiting for this MR merged by you? @kanata2

Copy link
Member

Choose a reason for hiding this comment

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

I'll merge and release as soon as it's ready.

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, this was a mis-communication; it should be Filter -> ConversationListFilter. We definitely don't want to rename the existing SelectBlockElementFilter. If you want to correct this and the linting issues I'll have another look.

@kanata2 kanata2 linked an issue Apr 13, 2023 that may be closed by this pull request
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.

No filter object in multi_conversation_select
3 participants