Skip to content

ESoCC: Add new "All channels" filter for the admin channels table #5580

@AlexVelezLl

Description

@AlexVelezLl

This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Description

In the scope of the Easy Sharing of Community Channels project, we introduced a slight change to the admin channels table filter: Instead of having just one "Channel type" filter, we divided it into two: a "Channel type" and a "Channel Status" subfilter so that it was easier to filter just unlisted channels, public channels, and Community Library channels with the first filter, and the channel status of live/deleted/draft, etc, with the second filter.

However, we left one use case behind: What happens if the admin wants to filter by channel status against all existing channels?

For now, the "all channels" channel type filter is represented by the absence of a value, and in this case, the "channel status" filter is disabled. However, to give more visibility, we will update this behavior:

  1. Now, the "channel type" filter will not be clearable, and to filter by all channels, a new "All channels" option should be available for this filter.
Image
  1. When the "All channels" filter is selected, the available options for the Channel status filter will be:
  • Live - All non-deleted channels.
  • Published - Published channels.
  • Draft - Non-published, non-deleted channels.
  • Sushi chef - Non-deleted, cheffed: true channels.
  • Deleted - Deleted channels

Technical context

In #5370, many updates were made to how we implement these filters in the Admin ChannelsTable. You can read the PR if you want more context, but the most relevant notes are:

  • The channelTypeFilterMap defines the options and the backend filter params for the "Channel type" filter.
  • The statusFilterMap defines the options and backend filter params for the "Channel status" filter. These options depend on the selected channel type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0 - criticalPriority: Release blocker or regression

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions