-
Notifications
You must be signed in to change notification settings - Fork 13.1k
feat: rooms.hide endpoint
#34208
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
Merged
Merged
feat: rooms.hide endpoint
#34208
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
7e1c022
chore: added types for rooms.close endpoint
aleksandernsilva 0013cdd
feat: added rooms.close endpoint
aleksandernsilva 4615d04
feat: added checks
aleksandernsilva bb86b9e
test: added e2e api tests
aleksandernsilva 0242718
refactor: adjusted error response
aleksandernsilva 6ef6a5d
test: added more test cases
aleksandernsilva ca8f84c
test: changed to use promisses
aleksandernsilva 86e48fa
refactor: changed error messages to follow error-xxxx pattern
aleksandernsilva d716f93
refactor: added a projection to subscription find
aleksandernsilva 7a78061
fix: adjusted projection
aleksandernsilva b2fee10
test: adjusted error messages
aleksandernsilva 3df5f6b
chore: changeset
aleksandernsilva 526abdf
refactor: renamed `rooms.close` to `rooms.hide`
aleksandernsilva 9bec9ce
refactor: adjusted error message
aleksandernsilva c13c2ba
refactor: changed user query projection
aleksandernsilva 7c74480
test: updated error message
aleksandernsilva 1009b2a
feat: added method findOneOpenByRoomIdAndUserId
aleksandernsilva f18a2ae
chore: updated changeset
aleksandernsilva 4965533
refactor: removed method findOneOpenByRoomIdAndUserId
aleksandernsilva 7d30b3b
fix: hideByRoomAndUserId to update only when sub is closed
aleksandernsilva 000dd77
refactor: removed find added count check
aleksandernsilva bcaac55
test: cleanup users after tests
aleksandernsilva c7166bd
refactor: removed findOneOpenByRoomIdAndUserId type
aleksandernsilva 8625bce
chore: updated changeset
aleksandernsilva 79b2c70
test: added clean up for roomB
aleksandernsilva 856ea60
Merge branch 'develop' into feat/rooms-close-endpoint
kodiakhq[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| '@rocket.chat/rest-typings': minor | ||
| '@rocket.chat/models': minor | ||
| '@rocket.chat/i18n': minor | ||
| '@rocket.chat/meteor': minor | ||
| --- | ||
|
|
||
| Adds a new endpoint `rooms.hide` to hide rooms of any type when provided with the room's ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.