Skip to content

fix: make lifecycle methods part of inherited class in federation services#31844

Merged
sampaiodiego merged 3 commits intodevelopfrom
fix/federation-startup-on-ms
Feb 28, 2024
Merged

fix: make lifecycle methods part of inherited class in federation services#31844
sampaiodiego merged 3 commits intodevelopfrom
fix/federation-startup-on-ms

Conversation

@debdutdeb
Copy link
Copy Markdown
Member

  • fix: make lifecycle methods part of inherited class in federation services
  • chore: add changeset

Proposed changes (including videos or screenshots)

Issue(s)

Steps to test or reproduce

Further comments

@debdutdeb debdutdeb requested a review from a team as a code owner February 27, 2024 18:18
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 27, 2024

🦋 Changeset detected

Latest commit: 6a9a050

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 30 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/core-services Patch
@rocket.chat/cron 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/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/ddp-client Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/models Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/uikit-playground 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

@debdutdeb
Copy link
Copy Markdown
Member Author

@MarcosSpessatto quickest one i could think, maybe we could just move them without calling super? i didn't see them used anywhere else but just to be sure.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.63%. Comparing base (cd5cbe2) to head (6a9a050).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #31844      +/-   ##
===========================================
+ Coverage    54.49%   54.63%   +0.13%     
===========================================
  Files         2270     2275       +5     
  Lines        50095    50157      +62     
  Branches     10219    10229      +10     
===========================================
+ Hits         27300    27401     +101     
+ Misses       20322    20278      -44     
- Partials      2473     2478       +5     
Flag Coverage Δ
e2e 53.57% <ø> (+0.08%) ⬆️
e2e-api 40.09% <ø> (+0.29%) ⬆️
unit 76.47% <ø> (ø)

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

@MarcosSpessatto
Copy link
Copy Markdown
Contributor

@MarcosSpessatto quickest one i could think, maybe we could just move them without calling super? i didn't see them used anywhere else but just to be sure.

You are right, we can move them, I don't know why I've put this on the base class 🤦‍♂️

Copy link
Copy Markdown
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 follow your suggestion and move them lifecycle methods to the service class instead? I think it would be clearer. Approving that

@debdutdeb
Copy link
Copy Markdown
Member Author

debdutdeb commented Feb 27, 2024

actually looks like I can't that easily -
this


calls this
public async stopped(): Promise<void> {

and is then shared with ce federation service.
same for setupFederation in create

@sampaiodiego sampaiodiego merged commit 201e97a into develop Feb 28, 2024
@sampaiodiego sampaiodiego deleted the fix/federation-startup-on-ms branch February 28, 2024 13:33
gabriellsh added a commit that referenced this pull request Feb 29, 2024
…tMarkdown

* 'develop' of github.com:RocketChat/Rocket.Chat:
  chore: Refactor & Improve Livechat Widget API (#30924)
  i18n: Rocket.Chat.Livechat language update from LingoHub 🤖 on 2024-02-28Z (#31855)
  i18n: Rocket.Chat language update from LingoHub 🤖 on 2024-02-28Z (#31856)
  chore: Sidebar toolbar keyboard navigation (#31846)
  fix(eslint-config): react config file export (#31845)
  chore: cache ui-context package (#31805)
  fix: make lifecycle methods part of inherited class in federation services (#31844)
  fix: client ignoring offline presence updates (#31833)
gabriellsh added a commit that referenced this pull request Feb 29, 2024
…LinkAction

* 'develop' of github.com:RocketChat/Rocket.Chat: (41 commits)
  fix: Login page breaking when handling not expected errors (#31804)
  chore: Upgrade `react-virtuoso` (#31843)
  chore: Refactor & Improve Livechat Widget API (#30924)
  i18n: Rocket.Chat.Livechat language update from LingoHub 🤖 on 2024-02-28Z (#31855)
  i18n: Rocket.Chat language update from LingoHub 🤖 on 2024-02-28Z (#31856)
  chore: Sidebar toolbar keyboard navigation (#31846)
  fix(eslint-config): react config file export (#31845)
  chore: cache ui-context package (#31805)
  fix: make lifecycle methods part of inherited class in federation services (#31844)
  fix: client ignoring offline presence updates (#31833)
  test: saml login custom role (#31830)
  chore: `VideoConfPopup` keyboard navigability (#31831)
  fix: revert status websocket payload changes (#31823)
  chore: `UserCard` focus improvements (#31812)
  regression: Prevent storing lastFocused message by click event (#31819)
  chor: allow offline development build
  test: make calendar api tests fully independent (#31785)
  fix: Correct display of discussion names in sidebar search (#31701)
  bump meteor 2.15 (#31799)
  test: make apps api tests fully independent (#31787)
  ...
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.

3 participants