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: Avoid notifying watch.settings on uncaught errors #33376

Merged
merged 4 commits into from
Sep 27, 2024

Conversation

KevLehman
Copy link
Contributor

@KevLehman KevLehman commented Sep 26, 2024

Proposed changes (including videos or screenshots)

An uncaught error was happening (on my case, an invalid migration) and that caused the Error handler to kick in, updating the counter of unhandled errors. This caused an error of no broker set to broadcast as this error happened before broadcast was set.
After an update, we're gonna manually update the cached collection for settings, so the value on the metrics is up to date.

Issue(s)

Steps to test or reproduce

Further comments

added also a log of what was the uncaught error

Copy link
Contributor

dionisio-bot bot commented Sep 26, 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 Sep 26, 2024

⚠️ No Changeset found

Latest commit: 929c6a3

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

Copy link
Contributor

github-actions bot commented Sep 26, 2024

PR Preview Action v1.4.8
Preview removed because the pull request was closed.
2024-09-27 20:11 UTC

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.35%. Comparing base (92e366e) to head (929c6a3).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop   #33376   +/-   ##
========================================
  Coverage    58.35%   58.35%           
========================================
  Files         2692     2692           
  Lines        65265    65265           
  Branches     14730    14730           
========================================
  Hits         38084    38084           
  Misses       24403    24403           
  Partials      2778     2778           
Flag Coverage Δ
unit 75.32% <ø> (ø)

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 September 27, 2024 15:00
@KevLehman KevLehman requested a review from a team September 27, 2024 15:02
ricardogarim
ricardogarim previously approved these changes Sep 27, 2024
@KevLehman KevLehman added this to the 6.13 milestone Sep 27, 2024
@KevLehman KevLehman added the stat: QA assured Means it has been tested and approved by a company insider label Sep 27, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Sep 27, 2024
@KevLehman KevLehman modified the milestones: 6.13, 6.14 Sep 27, 2024
@kodiakhq kodiakhq bot merged commit b17b3be into develop Sep 27, 2024
50 checks passed
@kodiakhq kodiakhq bot deleted the fix/dont-notify-error-increments branch September 27, 2024 20:11
gabriellsh added a commit that referenced this pull request Sep 30, 2024
…ocket.Chat into feat/airgapped-restrictions

* 'feat/airgapped-restrictions' of github.com:RocketChat/Rocket.Chat: (57 commits)
  fix: Async E2EE key exchange not working on develop (#33378)
  chore: Move Apps-Engine to monorepo (#32951)
  chore(Sidepanel): uses only local channels and discussions (#33387)
  chore: add gazzodown preview (#33279)
  fix: Avoid notifying `watch.settings` on uncaught errors (#33376)
  fix: race condition when forwarding livechat by splitting subscription removal (#33381)
  chore: Single Contact ID: improved typings and removed some duplicated code (#33324)
  ci: remove Jira-GitHub security integration (#33384)
  chore: add ui-composer to storybook (#33383)
  regression: `Sidepanel` sort requires refresh after room update (#33370)
  ci: use node20 for release action (#33343)
  Bump rocket.chat to 6.14.0-develop (#33366)
  chore: replace Meteor._localStorage -> Accounts.storageLocation (#33356)
  Release 6.13.0-rc.1
  fix: Avoid destructuring `connectionData` when value is undefined (#33339)
  feat: Adds new admin feature preview setting management (#33212)
  regression: `Sidepanel` color highlight (#33342)
  chore: move common files to core-services (#33341)
  feat: Adds new admin feature preview setting management (#33212)
  chore: create network broker package (#33338)
  ...
gabriellsh added a commit that referenced this pull request Oct 2, 2024
…ocket.Chat into airgapped/composer-restriction

* 'feat/airgapped-restrictions' of github.com:RocketChat/Rocket.Chat: (27 commits)
  review
  fix: skip invalid test for now
  consolidate restriction logic inside module
  remove constant from restriction module
  fix changeset
  Move tests to test folder
  remove wrong import
  fix proxyquire for airGappedRestrictionsCheck.ts
  test fix
  fix: Async E2EE key exchange not working on develop (#33378)
  Fix airgappedRestrictionswrapper tests
  Fix airgappedRestrictionCheck tests
  undo
  fix AirGappedRestriction logic
  Update logic and tests
  chore: Move Apps-Engine to monorepo (#32951)
  chore(Sidepanel): uses only local channels and discussions (#33387)
  chore: add gazzodown preview (#33279)
  wip
  fix: Avoid notifying `watch.settings` on uncaught errors (#33376)
  ...
@ggazzo ggazzo modified the milestones: 6.14, 7.0 Oct 17, 2024
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.

4 participants