Skip to content

Conversation

@HoonBaek
Copy link
Contributor

@HoonBaek HoonBaek commented Aug 30, 2023

Issue

There was an issue report that some of the ChannelListQuery properties are not applied even though they are set.
A customer set the metadataKey and metadataValues, but we have not applied the filter props.

Fix

fix: apply metadataKey, metadataValues, and metadataStartsWith to the Channel.queries.channelListQuery

How to use

The values are just an example

<Channel or ChannelProvider
  queries={{
    channelListQuery: {
      metadataKey: 'isMatching',
      metadataValues: ['true'],
    }
  }}
/>

CLNP-687

@HoonBaek HoonBaek merged commit 9eacadc into main Sep 1, 2023
@HoonBaek HoonBaek deleted the fix/CLNP-687/Apply-metadata-to-channel-list-query-filter branch September 1, 2023 01:58
return false;
}
if (params?.customTypesFilter?.length > 0 && !params.customTypesFilter.includes(channel?.customType)) {
if (customTypesFilter && !customTypesFilter.includes(channel?.customType)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe better to do:

typeof customTypesFilter === 'array'

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.

4 participants