-
Notifications
You must be signed in to change notification settings - Fork 11k
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: custom emoji update issues #32768
Conversation
Signed-off-by: Abhinav Kumar <abhinav@avitechlab.com>
Signed-off-by: Abhinav Kumar <abhinav@avitechlab.com>
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
🦋 Changeset detectedLatest commit: b5c984d The changes in this PR will be included in the next version bump. This PR includes changesets to release 32 packages
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 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #32768 +/- ##
===========================================
- Coverage 56.83% 56.67% -0.17%
===========================================
Files 2501 2504 +3
Lines 55404 55536 +132
Branches 11408 11444 +36
===========================================
- Hits 31490 31475 -15
- Misses 21243 21380 +137
- Partials 2671 2681 +10
Flags with carried forward coverage won't be shown. Click here to find out more. |
Signed-off-by: Abhinav Kumar <abhinav@avitechlab.com>
Signed-off-by: Abhinav Kumar <abhinav@avitechlab.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw you fixed multiple issues in this PR and also you moved/refactored/extracted some code from Meteor methods to pure functions.
I suggest we create a separate PR for each fix, I mean at least the not strictly related ones. Also, let's keep the refactor or any code extraction to a specific PR, otherwise, it's really hard to understand what indeed changed.
Proposed changes (including videos or screenshots)
This PR addresses two main issues with custom emoji updates in Rocket.Chat:
Issue with Alias Update:
emoji-custom.update
endpoint.Issue with Image Update Not Reflecting:
Additionally, while fixing the first issue, the following bugs were discovered and fixed:
Also, there was a minor issue with the test related to the first issue. The test was already there but was not being executed, so we never caught the bug as it always appeared to pass. [Fixed]
Before
The aliases are not saved and displayed properly. The emoji could not be updated without a new file
Screen.Recording.2024-07-12.at.2.24.58.PM.mov
Client threw error on receiving the emoji update data and failed to update the emoji list in memory
After
Screen.Recording.2024-07-12.at.3.29.42.PM.mov
Issue(s)
closes #26980
closes #20318
closes #21821
Closes #20317
Closes #20316
Steps to test or reproduce
Further comments
SUP-622