Skip to content

Conversation

@Dnouv
Copy link
Member

@Dnouv Dnouv commented Jan 23, 2025

Proposed changes (including videos or screenshots)

  • Currently when making a call to the bridge API for reading room messages, or reading unread messages, all the messages including the ones inside a thread are being sent, which makes it complex to filter out and group together a single thread messages
  • With introduction of a new option, threadMsgCount would be shown on the main message of a thread, the id of this message can then be used to fetch all the threaded messages using the thread read bridge.

Issue(s)

Steps to test or reproduce

Further comments

RCAI4-5

@dionisio-bot
Copy link
Contributor

dionisio-bot bot commented Jan 23, 2025

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is targeting the wrong base branch. It should target 7.4.0, but it targets 7.3.0

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@changeset-bot
Copy link

changeset-bot bot commented Jan 23, 2025

🦋 Changeset detected

Latest commit: 0f34b64

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/apps-engine Minor
@rocket.chat/meteor Minor
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/core-typings Minor
@rocket.chat/fuselage-ui-kit Major
@rocket.chat/rest-typings Minor
@rocket.chat/ddp-streamer Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/api-client Patch
@rocket.chat/cron Patch
@rocket.chat/ddp-client Patch
@rocket.chat/freeswitch Patch
@rocket.chat/gazzodown Major
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-contexts Major
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/models Patch
@rocket.chat/network-broker Patch
@rocket.chat/ui-avatar Major
@rocket.chat/ui-client Major
@rocket.chat/ui-video-conf Major
@rocket.chat/ui-voip Major
@rocket.chat/web-ui-registration Major
@rocket.chat/instance-status 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

@codecov
Copy link

codecov bot commented Jan 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.17%. Comparing base (4f1021a) to head (0f34b64).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop   #35013   +/-   ##
========================================
  Coverage    59.17%   59.17%           
========================================
  Files         2822     2822           
  Lines        68069    68069           
  Branches     15136    15136           
========================================
  Hits         40283    40283           
  Misses       24956    24956           
  Partials      2830     2830           
Flag Coverage Δ
unit 75.00% <ø> (ø)

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

@github-actions
Copy link
Contributor

github-actions bot commented Jan 23, 2025

PR Preview Action v1.6.0

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

Built to branch gh-pages at 2025-01-29 18:59 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@Dnouv Dnouv added this to the 7.4.0 milestone Jan 28, 2025
@Dnouv Dnouv marked this pull request as ready for review January 28, 2025 07:30
@Dnouv Dnouv requested a review from a team as a code owner January 28, 2025 07:30
Copy link
Member

@d-gubert d-gubert left a comment

Choose a reason for hiding this comment

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

To be honest my first reaction was to be against adding a new flag for this, but since that's how the core models expose the filter, then I'm ok with it 😛

A few things:

  • I think it's best to keep the name of the parameter the model method uses, showThreadMessages - it will be better for us maintining it to see a familiar name.
  • When adding parameters to functions, they cannot change the original default behavior of the function - that would be a breaking change. As such, the default value of the option to show thread messages MUST be true, and the user has to opt out of showing thread messages.

@Dnouv Dnouv requested a review from d-gubert January 28, 2025 15:28
@Dnouv Dnouv added the stat: QA assured Means it has been tested and approved by a company insider label Jan 29, 2025
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Jan 29, 2025
@kodiakhq kodiakhq bot merged commit 271894f into develop Jan 29, 2025
48 checks passed
@kodiakhq kodiakhq bot deleted the new/ae/thread_filter branch January 29, 2025 19:55
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.

3 participants