Skip to content

Bug: Wrong access type on list channels by group id #2855

@arvindh123

Description

@arvindh123

What were you trying to achieve?

List channels by group id, i.e listing channels of a group with access_type=direct

What are the expected results?

List of channels which are having direct relation to group

What are the received results?

In result, I got channels which are indirect relation to group

Steps To Reproduce

  • Create channel1
  • Create group 1, group2 , group3, group4
  • Make group2 children of group1, group3 as children of group2, group4 as children of group3
  • Add channel1 as parent of group4
  • List channels of group1 with access_type=direct in query params like below given request
curl --location 'http://localhost/<channel_1_id>/channels?group=<group_1_id>&access_type=direct' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <TOKEN>' \

In what environment did you encounter the issue?

Docker

Additional information you deem important

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions