-
Notifications
You must be signed in to change notification settings - Fork 13k
fix: Support file filtering across all room types endpoints #36035
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
Conversation
|
Looks like this PR is ready to merge! 🎉 |
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #36035 +/- ##
===========================================
- Coverage 64.53% 64.45% -0.08%
===========================================
Files 3128 3278 +150
Lines 98325 101495 +3170
Branches 18650 18940 +290
===========================================
+ Hits 63455 65420 +1965
- Misses 32048 33113 +1065
- Partials 2822 2962 +140
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
🦋 Changeset detectedLatest commit: 35ae6fd The changes in this PR will be included in the next version bump. This PR includes changesets to release 36 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Proposed changes (including videos or screenshots)
Currently only the endpoint
channels.filessupports file filtering by passing eithernameortypeGroup. Previously this behaviour was supported with thequeryparameter which is currently deprecated.In this PR #33564,
nameandtypeGroupwere added as query parameters for thechannels.filesendpoint, and the FE logic changed to filter by these parameters. The issue is that other types of rooms, such as private channels and DMs, have separate endpoints, which were not changed to support the new query parameters. This makes the filtering in the files contextual bar unusable for any room type that is not a public channel.This PR introduces the support on the aforementioned endpoints, and also implements tests for the filtering to ensure the behaviour is consistent.
Issue(s)
SUP-799
Steps to test or reproduce
Further comments