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: Allow custom fields on messages to be updated even if msg prop is not updated (via API) #32791

Merged
merged 8 commits into from
Aug 7, 2024

Conversation

KevLehman
Copy link
Contributor

@KevLehman KevLehman commented Jul 15, 2024

Proposed changes (including videos or screenshots)

Fixed a behavior when updating messages that prevented the customFields prop from being updated if there were no changes to the msg property. Now, customFields will be always updated on message update even if msg doesn't change

Issue(s)

SUP-621

Steps to test or reproduce

Further comments

@KevLehman KevLehman requested a review from a team as a code owner July 15, 2024 16:55
Copy link
Contributor

dionisio-bot bot commented Jul 15, 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 15, 2024

🦋 Changeset detected

Latest commit: 53c93c1

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/ddp-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/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

@KevLehman KevLehman marked this pull request as draft July 15, 2024 16:55
Copy link

codecov bot commented Jul 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.98%. Comparing base (12720e9) to head (53c93c1).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop   #32791   +/-   ##
========================================
  Coverage    54.98%   54.98%           
========================================
  Files         2596     2596           
  Lines        55971    55971           
  Branches     11585    11585           
========================================
  Hits         30775    30775           
  Misses       22553    22553           
  Partials      2643     2643           
Flag Coverage Δ
unit 73.05% <ø> (ø)

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

@KevLehman KevLehman marked this pull request as ready for review July 15, 2024 17:34
@KevLehman KevLehman marked this pull request as draft July 16, 2024 18:59
@KevLehman KevLehman marked this pull request as ready for review July 17, 2024 13:49
@MarcosSpessatto MarcosSpessatto added this to the 6.12 milestone Jul 18, 2024
Copy link
Member

@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 have a PR description?

@KevLehman KevLehman changed the title fix: Allow custom fields on messages to be updated even if msg prop is not updated (via API) fix: Allow custom fields on messages to be updated even if text prop is not updated (via API) Jul 31, 2024
@KevLehman KevLehman changed the title fix: Allow custom fields on messages to be updated even if text prop is not updated (via API) fix: Allow custom fields on messages to be updated even if msg prop is not updated (via API) Jul 31, 2024
@jessicaschelly jessicaschelly added the stat: QA assured Means it has been tested and approved by a company insider label Aug 7, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Aug 7, 2024
@dionisio-bot dionisio-bot bot removed the stat: ready to merge PR tested and approved waiting for merge label Aug 7, 2024
@scuciatto scuciatto added the stat: ready to merge PR tested and approved waiting for merge label Aug 7, 2024
@kodiakhq kodiakhq bot merged commit 5b1e894 into develop Aug 7, 2024
51 checks passed
@kodiakhq kodiakhq bot deleted the fix/customfields-not-updating-withotu-msg branch August 7, 2024 15:29
gabriellsh added a commit that referenced this pull request Aug 8, 2024
…Chat into improve/threadMetrics

* 'improve/threadMetrics' of github.com:RocketChat/Rocket.Chat:
  ci: Bump `@actions/download-artifact` and `@actions/upload-artifact` (#32930)
  fix: Allow custom fields on messages to be updated even if `msg` prop is not updated (via API) (#32791)
  test: Make Omnichannel jobs run every 3 secs on CI instead of 1 min (#32967)
  ci: only rebuild docker if event is pull request and is from outside (#32997)
  ci: remove tmp files (#32996)
  test: Mock `dns.lookup` on `checkUrlForSsrf` tests (#32995)
  chore: `FilterByText` component sanitization (#32957)
  chore: Renders back button through prop in admin settings (#32987)
  feat: add `sidepanel` to teams api (#32868)
  chore: don't mark room as read after sending message (#32941)
  chore: replace `dtinth/setup-github-actions-caching-for-turbo` to use `rhark… (#32990)
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.

5 participants