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

chore: Discussion message action meteor removal #33962

Merged
merged 8 commits into from
Nov 19, 2024

Conversation

MartinSchoeler
Copy link
Member

@MartinSchoeler MartinSchoeler commented Nov 14, 2024

Proposed changes (including videos or screenshots)

Moves the discussion message action to a hook

Issue(s)

Steps to test or reproduce

Further comments

ARCH-1348

Copy link
Contributor

dionisio-bot bot commented Nov 14, 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 Nov 14, 2024

⚠️ No Changeset found

Latest commit: d40766b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

codecov bot commented Nov 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.73%. Comparing base (c7bca10) to head (066d4f2).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop   #33962   +/-   ##
========================================
  Coverage    75.73%   75.73%           
========================================
  Files          507      507           
  Lines        21799    21799           
  Branches      5343     5343           
========================================
  Hits         16509    16509           
  Misses        4648     4648           
  Partials       642      642           
Flag Coverage Δ
unit 75.73% <ø> (ø)

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

---- 🚨 Try these New Features:

@MartinSchoeler MartinSchoeler added this to the 7.1.0 milestone Nov 14, 2024
Copy link
Contributor

github-actions bot commented Nov 18, 2024

PR Preview Action v1.4.8
🚀 Deployed preview to https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-33962/
on branch gh-pages at 2024-11-19 19:47 UTC

@MartinSchoeler MartinSchoeler marked this pull request as ready for review November 18, 2024 18:03
@MartinSchoeler MartinSchoeler requested a review from a team as a code owner November 18, 2024 18:03
@aleksandernsilva
Copy link
Contributor

Could you also add some tests to cover this scenario?

Copy link
Member

@dougfabris dougfabris left a comment

Choose a reason for hiding this comment

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

I think the proper fix for the issue should be use the isLoading from the createDiscussionMutation to set the loading while clicking in the create button. The code you did seems a good refactor so we could handle separately under the initiative we want to start.

Regarding tests, we already have a e2e test for this. I think it's just missing the assertion to guarantee, that only one discussion was created

@MartinSchoeler MartinSchoeler changed the title fix: Clicking repeatedly on 'create' button result in multiple discusions created chore: Discussion message action meteor removal Nov 18, 2024
@MartinSchoeler
Copy link
Member Author

Split the fix and the chore, fix moved to #33985

@MartinSchoeler
Copy link
Member Author

Split the fix and the chore, fix moved to #33985

Tests were done in #33985

Copy link
Member

@dougfabris dougfabris left a comment

Choose a reason for hiding this comment

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

LGTM!

@dougfabris dougfabris added the stat: QA assured Means it has been tested and approved by a company insider label Nov 19, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Nov 19, 2024
@ggazzo ggazzo merged commit c71d5de into develop Nov 19, 2024
1 check failed
@ggazzo ggazzo deleted the fix-multiple-discussions branch November 19, 2024 21:28
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.

4 participants