Skip to content

chore: remove Messages model dependency of Rooms model - #31272

Merged
sampaiodiego merged 4 commits into
developfrom
chore-remove-rooms-dependency-from-msg-model
Dec 29, 2023
Merged

chore: remove Messages model dependency of Rooms model#31272
sampaiodiego merged 4 commits into
developfrom
chore-remove-rooms-dependency-from-msg-model

Conversation

@sampaiodiego

Copy link
Copy Markdown
Member

Proposed changes (including videos or screenshots)

Previously the Message model used to interact directly with the Room model, which is not ideal, since models shouldn't know about the business logic of the application.

This change also helped finding some places where multiple changes to the same room object were being performed one right after the other, so I improved that as well by performing a single operation.

Issue(s)

Steps to test or reproduce

Further comments

@changeset-bot

changeset-bot Bot commented Dec 19, 2023

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ece2b29

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

@codecov

codecov Bot commented Dec 19, 2023

Copy link
Copy Markdown

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (846d749) 49.34% compared to head (ece2b29) 49.33%.
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #31272      +/-   ##
===========================================
- Coverage    49.34%   49.33%   -0.02%     
===========================================
  Files         3306     3308       +2     
  Lines        81233    81273      +40     
  Branches     16642    16646       +4     
===========================================
+ Hits         40086    40092       +6     
- Misses       36452    36487      +35     
+ Partials      4695     4694       -1     
Flag Coverage Δ
e2e 52.52% <ø> (+0.02%) ⬆️
e2e-api 40.63% <50.00%> (-0.06%) ⬇️
unit 76.64% <ø> (ø)

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

@dionisio-bot dionisio-bot Bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: needs QA labels Dec 19, 2023
@dionisio-bot dionisio-bot Bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels Dec 28, 2023
ggazzo
ggazzo previously approved these changes Dec 28, 2023
KevLehman
KevLehman previously approved these changes Dec 28, 2023
@dionisio-bot dionisio-bot Bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels Dec 28, 2023
Comment thread packages/model-typings/src/models/IRoomsModel.ts Outdated
@sampaiodiego
sampaiodiego dismissed stale reviews from KevLehman and ggazzo via ece2b29 December 28, 2023 18:49
@dionisio-bot dionisio-bot Bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels Dec 28, 2023
@sampaiodiego
sampaiodiego merged commit 7610aa4 into develop Dec 29, 2023
@sampaiodiego
sampaiodiego deleted the chore-remove-rooms-dependency-from-msg-model branch December 29, 2023 13:25
gabriellsh added a commit that referenced this pull request Jan 3, 2024
…hideUi

* 'develop' of github.com:RocketChat/Rocket.Chat: (112 commits)
  chore: update yarn.lock
  chore: Replace `FramedIcon` in favor of fuselage component (#31356)
  chore: fix dep version
  Release 6.5.2
  fix: wrong value used for workspace registration
  ci: update release PR description with change log
  fix: inquiries being limited to 50 items (#31267)
  fix: close image gallery on backdrop click (#31344)
  fix: No error message when uploading a file that is not allowed (#31346)
  fix: Text area only shows the last line of the message for very long texts #31252 #31257 (#31262)
  chore: adding new streamer event for imported messages (#31063)
  chore: adapt read receipts feature to work without oplog on msgs (#30996)
  chore: remove Messages model dependency of Rooms model (#31272)
  chore: `Card` normalization (#31335)
  refactor: unify useStream and useSingleStream (#31326)
  chore: add new msg stream for reported msgs (#31087)
  Bump 6.5.2
  feat: Highlight words in thread messages (#31281)
  fix: Show only departments that are allowed on registration page on livechat widget (#31302)
  fix: Fallback forward department not working as expected on chat forwarding (#31296)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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