Skip to content

Conversation

@ggazzo
Copy link
Member

@ggazzo ggazzo commented May 14, 2025

Co-authored-by: Guilherme Gazzo [email protected]

Proposed changes (including videos or screenshots)

Issue(s)

Steps to test or reproduce

Further comments


This pull request, titled "Release 8.0.0," is aimed at merging changes from the release-8.0.0 branch into the develop branch of the RocketChat/Rocket.Chat repository. The key updates in this PR include:

  1. Changeset Updates:

    • A new changeset file has been added to document a major update for the @rocket.chat/meteor package, specifically noting the removal of the deprecated canAccessRoom meteor method.
    • Another changeset file has been updated to declare a major version bump for the @rocket.chat/meteor package, highlighting the removal of support for MongoDB versions 5.x and 6.x.
  2. CI Workflow Modifications:

    • The default MongoDB version in the CI test workflow has been updated, and artifact naming conventions have been modified to include the database watcher status.
  3. Version and Compatibility Updates:

    • The version number in rocketchat.info has been updated from 7.7.0-develop to 8.0.0-develop.
    • The minimum required MongoDB version has been updated to 7.0 in serverRunning.js, with a startup error enforcing this requirement. The previous system for MongoDB deprecation warnings for versions below 6.0 has been commented out, including its associated logic, imports, and helper variables.

@dionisio-bot
Copy link
Contributor

dionisio-bot bot commented May 14, 2025

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is missing the 'stat: QA assured' label

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@changeset-bot
Copy link

changeset-bot bot commented May 14, 2025

🦋 Changeset detected

Latest commit: 73d9200

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

This PR includes changesets to release 41 packages
Name Type
@rocket.chat/meteor Major
@rocket.chat/web-ui-registration Major
@rocket.chat/ddp-client Major
@rocket.chat/gazzodown Major
@rocket.chat/i18n Major
@rocket.chat/ui-client Major
@rocket.chat/rest-typings Major
@rocket.chat/livechat Patch
@rocket.chat/mock-providers Patch
@rocket.chat/ui-contexts Major
@rocket.chat/ddp-streamer Patch
@rocket.chat/federation-matrix Patch
@rocket.chat/fuselage-ui-kit Major
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/ui-voip Major
@rocket.chat/api-client Patch
@rocket.chat/core-services Patch
@rocket.chat/http-router Patch
@rocket.chat/models Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/ui-avatar Major
@rocket.chat/ui-video-conf Major
@rocket.chat/queue-worker Patch
@rocket.chat/presence-service Patch
@rocket.chat/network-broker Patch
@rocket.chat/omni-core-ee Patch
@rocket.chat/cron Patch
@rocket.chat/instance-status Patch
@rocket.chat/omni-core Patch
@rocket.chat/media-calls Patch
@rocket.chat/core-typings Major
@rocket.chat/apps Patch
@rocket.chat/freeswitch Patch
@rocket.chat/model-typings Patch
@rocket.chat/license Patch
@rocket.chat/pdf-worker 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

@kody-ai
Copy link

kody-ai bot commented May 14, 2025

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Security
Code Style
Kody Rules
Refactoring
Error Handling
Maintainability
Potential Issues
Documentation And Comments
Performance And Optimization
Breaking Changes

Access your configuration settings here.

@github-actions
Copy link
Contributor

github-actions bot commented May 14, 2025

PR Preview Action v1.6.2

🚀 View preview at
https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-35999/

Built to branch gh-pages at 2025-08-06 20:07 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@codecov
Copy link

codecov bot commented May 14, 2025

Codecov Report

❌ Patch coverage is 32.55814% with 174 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.44%. Comparing base (3310983) to head (750af59).
⚠️ Report is 12 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #35999      +/-   ##
===========================================
+ Coverage    68.12%   68.44%   +0.32%     
===========================================
  Files         3364     2877     -487     
  Lines       115811   101867   -13944     
  Branches     20901    17812    -3089     
===========================================
- Hits         78891    69727    -9164     
+ Misses       34224    30493    -3731     
+ Partials      2696     1647    -1049     
Flag Coverage Δ
e2e 48.89% <76.92%> (-8.62%) ⬇️
e2e-api ?
unit 72.30% <28.68%> (+0.18%) ⬆️

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kody-ai
Copy link

kody-ai bot commented May 14, 2025

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Security
Code Style
Kody Rules
Refactoring
Error Handling
Maintainability
Potential Issues
Documentation And Comments
Performance And Optimization
Breaking Changes

Access your configuration settings here.

Comment on lines +49 to +55
export const notifyOnLivechatPriorityChanged = async (
data: Pick<ILivechatPriority, 'name' | '_id'>,
clientAction: ClientAction = 'updated',
): Promise<void> => {
const { _id, ...rest } = data;
void api.broadcast('watch.priorities', { clientAction, id: _id, diff: { ...rest } });
};
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Potential Issues critical

// No direct code change, but critical verification is needed.
// Confirm that unconditional broadcasting by this and similar functions is the desired outcome.
// Consider adding a comment to the module or relevant functions explaining why the conditional execution based on `dbWatchersDisabled` was removed, especially if it addresses a specific scenario or architectural decision.

This function, along with others in this PR, was previously wrapped by withDbWatcherCheck. The removal of this wrapper means notifications will now always be broadcast. The withDbWatcherCheck HOC executed the notification if dbWatchersDisabled was true (implying DB watchers were off, so manual notification was needed). If dbWatchersDisabled could be false (meaning DB watchers were active and these manual notifications were suppressed), these functions will now broadcast regardless. This could lead to duplicate notifications or unexpected behavior. Please verify that this unconditional notification is the intended behavior across all scenarios.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

}

return { oplogEnabled, mongoVersion, mongoStorageEngine, mongo };
return { mongoVersion, mongoStorageEngine, mongo };
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Potential Issues high

	return { mongoVersion, mongoStorageEngine, mongo };

In the fallbackMongoInfo function, the mongoVersion variable is declared (on line 14, an unchanged line) but might remain undefined if the database command in the try block (lines 19-22) fails. When the new return statement on line 38 is executed after such a failure, it would return mongoVersion as undefined. This violates the function's declared return type Promise<{ mongoVersion: string; ... }>, which expects mongoVersion to be a string. This type mismatch could lead to runtime errors or unexpected behavior in consuming code. To ensure type safety, mongoVersion should be initialized to a default string value (e.g., 'unknown') at its declaration, or assigned a default string value within the catch block.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

@ggazzo ggazzo force-pushed the release-8.0.0 branch 2 times, most recently from 10dc562 to 5bd6ab8 Compare May 14, 2025 21:41
@ggazzo ggazzo force-pushed the release-8.0.0 branch 4 times, most recently from 2d38b72 to 191b205 Compare June 5, 2025 23:17
@ggazzo ggazzo added this to the 8.0.0 milestone Jul 4, 2025
@ggazzo ggazzo force-pushed the release-8.0.0 branch 3 times, most recently from c0306ac to e71943d Compare August 6, 2025 20:00
@ggazzo ggazzo force-pushed the release-8.0.0 branch 4 times, most recently from b7b6960 to 169b783 Compare December 2, 2025 22:46
yash-rajpal and others added 22 commits December 2, 2025 20:20
Co-authored-by: Tasso Evangelista <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
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.