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: option to start a discussion on an existing message is not showing up #32765

Merged
merged 11 commits into from
Jul 22, 2024

Conversation

pierre-lehnen-rc
Copy link
Contributor

The condition to show the "Start a Discussion" option on the message Actions list was accidentally changed as a side effect of an older PR.

Proposed changes (including videos or screenshots)

Issue(s)

Steps to test or reproduce

Further comments

PR #23971 changed a reference to the global isNaN with Number.isNaN. The two functions are not interchangeable, despite having the same name.
The global isNaN will check if something is not a number, while Number.isNaN checks if the specified value is specifically NaN.
In the condition for the discussion action, an undefined dcount would cause Number.isNaN to return false and rocket.chat would then hide the option thinking that it is already a discussion.

Copy link
Contributor

dionisio-bot bot commented Jul 11, 2024

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

Copy link

changeset-bot bot commented Jul 11, 2024

🦋 Changeset detected

Latest commit: b500826

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

This PR includes changesets to release 32 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/fuselage-ui-kit 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/uikit-playground Patch
@rocket.chat/models Patch
@rocket.chat/ui-avatar Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-video-conf 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

@pierre-lehnen-rc pierre-lehnen-rc marked this pull request as ready for review July 11, 2024 16:46
Copy link

codecov bot commented Jul 11, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 55.60%. Comparing base (580c1ed) to head (b500826).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #32765      +/-   ##
===========================================
+ Coverage    55.53%   55.60%   +0.07%     
===========================================
  Files         2633     2637       +4     
  Lines        57259    57308      +49     
  Branches     11861    11868       +7     
===========================================
+ Hits         31796    31865      +69     
+ Misses       22773    22752      -21     
- Partials      2690     2691       +1     
Flag Coverage Δ
e2e 54.32% <0.00%> (+0.17%) ⬆️
unit 72.33% <ø> (-0.09%) ⬇️

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

@pierre-lehnen-rc pierre-lehnen-rc marked this pull request as draft July 11, 2024 16:52
@gabriellsh gabriellsh marked this pull request as ready for review July 12, 2024 17:24
@gabriellsh gabriellsh requested a review from a team as a code owner July 12, 2024 17:24
@gabriellsh gabriellsh added this to the 6.11 milestone Jul 12, 2024
@gabriellsh gabriellsh added the stat: QA assured Means it has been tested and approved by a company insider label Jul 12, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Jul 12, 2024
@kodiakhq kodiakhq bot merged commit 6599afe into develop Jul 22, 2024
49 checks passed
@kodiakhq kodiakhq bot deleted the fix/start-a-discussion branch July 22, 2024 19:53
debdutdeb pushed a commit that referenced this pull request Jul 31, 2024
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.

2 participants