Skip to content

Conversation

@gabriellsh
Copy link
Member

@gabriellsh gabriellsh commented May 20, 2025

Proposed changes (including videos or screenshots)

Currently only the endpoint channels.files supports file filtering by passing either name or typeGroup. Previously this behaviour was supported with the query parameter which is currently deprecated.

In this PR #33564, name and typeGroup were added as query parameters for the channels.files endpoint, 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

@gabriellsh gabriellsh requested review from a team as code owners May 20, 2025 16:22
@dionisio-bot
Copy link
Contributor

dionisio-bot bot commented May 20, 2025

Looks like this PR is ready to merge! 🎉
If you have any trouble, please check the PR guidelines

@gabriellsh gabriellsh added this to the 7.8.0 milestone May 20, 2025
@github-actions
Copy link
Contributor

github-actions bot commented May 20, 2025

PR Preview Action v1.6.1

🚀 View preview at
https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-36035/

Built to branch gh-pages at 2025-06-10 11:02 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@codecov
Copy link

codecov bot commented May 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.45%. Comparing base (da288f6) to head (35ae6fd).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             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     
Flag Coverage Δ
e2e 57.32% <ø> (+0.01%) ⬆️
unit 69.95% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@changeset-bot
Copy link

changeset-bot bot commented May 20, 2025

🦋 Changeset detected

Latest commit: 35ae6fd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 36 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/rest-typings Patch
@rocket.chat/api-client Patch
@rocket.chat/core-services Patch
@rocket.chat/ddp-client Patch
@rocket.chat/models Patch
@rocket.chat/ui-contexts Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/network-broker Patch
@rocket.chat/livechat Patch
@rocket.chat/mock-providers Patch
@rocket.chat/cron Patch
@rocket.chat/instance-status Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/gazzodown Patch
@rocket.chat/ui-avatar Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/ui-voip Patch
@rocket.chat/web-ui-registration Patch
@rocket.chat/core-typings Patch
@rocket.chat/apps Patch
@rocket.chat/freeswitch Patch
@rocket.chat/model-typings Patch
@rocket.chat/license Patch
@rocket.chat/pdf-worker Patch

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

@scuciatto scuciatto added the stat: QA assured Means it has been tested and approved by a company insider label Jun 9, 2025
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Jun 9, 2025
@dionisio-bot dionisio-bot bot removed the stat: ready to merge PR tested and approved waiting for merge label Jun 9, 2025
@gabriellsh gabriellsh added stat: QA assured Means it has been tested and approved by a company insider and removed stat: QA assured Means it has been tested and approved by a company insider labels Jun 9, 2025
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Jun 9, 2025
@kodiakhq kodiakhq bot merged commit 1eb53d2 into develop Jun 10, 2025
87 of 89 checks passed
@kodiakhq kodiakhq bot deleted the fix/fileFiltering branch June 10, 2025 13:10
This was referenced Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stat: QA assured Means it has been tested and approved by a company insider stat: ready to merge PR tested and approved waiting for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants