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

refactor!: removed roomNameExists method #32484

Open
wants to merge 25 commits into
base: release-7.0.0
Choose a base branch
from

Conversation

abhinavkrin
Copy link
Member

@abhinavkrin abhinavkrin commented May 23, 2024

Proposed changes (including videos or screenshots)

Removed roomNameExists method as it has been replaced by rooms.nameExists endpoint

Issue(s)

Steps to test or reproduce

Further comments

CORE-351

ggazzo and others added 23 commits May 15, 2024 09:40
Co-authored-by: Diego Sampaio <chinello@gmail.com>
* chore: Improve permission check on channels endpoints
Co-authored-by: Marcos Spessatto Defendi <marcos.defendi@rocket.chat>
Signed-off-by: Abhinav Kumar <abhinav@avitechlab.com>
Copy link
Contributor

dionisio-bot bot commented May 23, 2024

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

  • This PR is missing the 'stat: QA assured' label

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

Copy link

changeset-bot bot commented May 23, 2024

⚠️ No Changeset found

Latest commit: 6a29f0a

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 May 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.56%. Comparing base (bba2a7e) to head (6a29f0a).

Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                @@
##           release-7.0.0   #32484      +/-   ##
=================================================
- Coverage          55.59%   55.56%   -0.04%     
=================================================
  Files               2427     2408      -19     
  Lines              53337    53019     -318     
  Branches           10970    10902      -68     
=================================================
- Hits               29651    29458     -193     
+ Misses             21050    20946     -104     
+ Partials            2636     2615      -21     
Flag Coverage Δ
e2e 55.03% <ø> (-0.11%) ⬇️
unit 72.88% <ø> (+0.14%) ⬆️

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 May 24, 2024 10:26
@abhinavkrin abhinavkrin requested a review from a team as a code owner May 24, 2024 10:26
@MarcosSpessatto MarcosSpessatto added this to the 7.0 milestone May 24, 2024
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 take a look at this test case? I think there's something weird since it's expecting an error when no room is found...

https://github.com/RocketChat/Rocket.Chat/blob/develop/apps/meteor/tests/end-to-end/api/09-rooms.js#L425

apps/meteor/app/api/server/v1/rooms.ts Outdated Show resolved Hide resolved
Signed-off-by: Abhinav Kumar <abhinav@avitechlab.com>
@abhinavkrin
Copy link
Member Author

Can we take a look at this test case? I think there's something weird since it's expecting an error when no room is found...

https://github.com/RocketChat/Rocket.Chat/blob/develop/apps/meteor/tests/end-to-end/api/09-rooms.js#L425

I looked at it, the test was for an invalid roomId which should not be there as we dont accept a roomId for this endpoint.
So I changed this test to check for invalid params which makes the test more clear.
Also, I added a test to check if false is returned if roomName is not found.

Co-authored-by: Marcos Spessatto Defendi <marcos.defendi@rocket.chat>
MarcosSpessatto
MarcosSpessatto previously approved these changes Jun 7, 2024
@ggazzo ggazzo dismissed MarcosSpessatto’s stale review June 11, 2024 13:15

The merge-base changed after approval.

@ggazzo ggazzo requested review from a team as code owners June 11, 2024 13:15
@ggazzo ggazzo force-pushed the release-7.0.0 branch 2 times, most recently from ea82dad to 7e69ab1 Compare June 11, 2024 17:57
@ggazzo ggazzo force-pushed the release-7.0.0 branch 2 times, most recently from dfaabe5 to bc4fad7 Compare June 19, 2024 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants