Skip to content
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

fix: Correct display of discussion names in sidebar search #31701

Merged
merged 10 commits into from Feb 22, 2024

Conversation

abhinavkrin
Copy link
Member

@abhinavkrin abhinavkrin commented Feb 8, 2024

Proposed changes (including videos or screenshots)

This fix alters the spotlight search endpoint method to include the prid (parent room ID) for rooms. This adjustment ensures that the client correctly identifies discussions and displays their names instead of IDs in the sidebar search results. This change resolves the issue where discussion IDs were displayed when the "Allow Special Characters in Room Names" setting was disabled, aligning the behavior with the search results when the setting is enabled.

Issue(s)

Fixes issue where discussion names were incorrectly displayed as IDs in sidebar search results under specific conditions.

Steps to test or reproduce

  1. Disable "Allow Special Characters in Room Names".
  2. Create a discussion inside a public channel.
  3. Search for the discussion by name in the sidebar with a different user account.

Further comments

SUP-410

Copy link

changeset-bot bot commented Feb 8, 2024

🦋 Changeset detected

Latest commit: 832cdf6

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

This PR includes changesets to release 30 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/gazzodown Patch
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-contexts Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/api-client Patch
@rocket.chat/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/ddp-client Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/models Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/web-ui-registration Patch
@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

Copy link

codecov bot commented Feb 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f8e6801) 54.52% compared to head (832cdf6) 54.48%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #31701      +/-   ##
===========================================
- Coverage    54.52%   54.48%   -0.05%     
===========================================
  Files         2272     2271       -1     
  Lines        50103    50089      -14     
  Branches     10219    10219              
===========================================
- Hits         27321    27289      -32     
- Misses       20309    20327      +18     
  Partials      2473     2473              
Flag Coverage Δ
e2e 53.43% <ø> (-0.03%) ⬇️
e2e-api 39.86% <ø> (-0.09%) ⬇️
unit 76.47% <ø> (ø)

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

@abhinavkrin abhinavkrin marked this pull request as ready for review February 8, 2024 20:45
@abhinavkrin abhinavkrin requested a review from a team as a code owner February 8, 2024 20:45
Copy link
Contributor

@MarcosSpessatto MarcosSpessatto left a comment

Choose a reason for hiding this comment

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

Can we add a test case to cover this scenario?

Signed-off-by: Abhinav Kumar <abhinav@avitechlab.com>
@abhinavkrin
Copy link
Member Author

Can we add a test case to cover this scenario?

Hey @MarcosSpessatto I have added test for this scenario. It tests discussion search in both cases when UI_Allow_room_names_with_special_chars is true or false

Signed-off-by: Abhinav Kumar <abhinav@avitechlab.com>
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Feb 22, 2024
@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels Feb 22, 2024
@kodiakhq kodiakhq bot merged commit bf0b734 into develop Feb 22, 2024
45 checks passed
@kodiakhq kodiakhq bot deleted the fix/search-discussion-name-handling branch February 22, 2024 19:22
@scuciatto scuciatto added this to the 6.7 milestone Feb 23, 2024
gabriellsh added a commit that referenced this pull request Feb 29, 2024
…LinkAction

* 'develop' of github.com:RocketChat/Rocket.Chat: (41 commits)
  fix: Login page breaking when handling not expected errors (#31804)
  chore: Upgrade `react-virtuoso` (#31843)
  chore: Refactor & Improve Livechat Widget API (#30924)
  i18n: Rocket.Chat.Livechat language update from LingoHub 🤖 on 2024-02-28Z (#31855)
  i18n: Rocket.Chat language update from LingoHub 🤖 on 2024-02-28Z (#31856)
  chore: Sidebar toolbar keyboard navigation (#31846)
  fix(eslint-config): react config file export (#31845)
  chore: cache ui-context package (#31805)
  fix: make lifecycle methods part of inherited class in federation services (#31844)
  fix: client ignoring offline presence updates (#31833)
  test: saml login custom role (#31830)
  chore: `VideoConfPopup` keyboard navigability (#31831)
  fix: revert status websocket payload changes (#31823)
  chore: `UserCard` focus improvements (#31812)
  regression: Prevent storing lastFocused message by click event (#31819)
  chor: allow offline development build
  test: make calendar api tests fully independent (#31785)
  fix: Correct display of discussion names in sidebar search (#31701)
  bump meteor 2.15 (#31799)
  test: make apps api tests fully independent (#31787)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: QA tested stat: ready to merge PR tested and approved waiting for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants