-
Notifications
You must be signed in to change notification settings - Fork 11k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/not-notifying-on-thread-message-removal
- Loading branch information
Showing
28 changed files
with
486 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
'@rocket.chat/fuselage-ui-kit': patch | ||
'@rocket.chat/instance-status': patch | ||
'@rocket.chat/ui-theming': patch | ||
'@rocket.chat/model-typings': patch | ||
'@rocket.chat/ui-video-conf': patch | ||
'@rocket.chat/uikit-playground': patch | ||
'@rocket.chat/core-typings': patch | ||
'@rocket.chat/rest-typings': patch | ||
'@rocket.chat/apps-engine': patch | ||
'@rocket.chat/ui-composer': patch | ||
'@rocket.chat/ui-contexts': patch | ||
'@rocket.chat/gazzodown': patch | ||
'@rocket.chat/ui-avatar': patch | ||
'@rocket.chat/ui-client': patch | ||
'@rocket.chat/livechat': patch | ||
'@rocket.chat/ui-voip': patch | ||
'@rocket.chat/i18n': patch | ||
'@rocket.chat/meteor': patch | ||
--- | ||
|
||
Fixes an error where the engine would not retry a subprocess restart if the last attempt failed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
'@rocket.chat/fuselage-ui-kit': patch | ||
'@rocket.chat/instance-status': patch | ||
'@rocket.chat/ui-theming': patch | ||
'@rocket.chat/model-typings': patch | ||
'@rocket.chat/ui-video-conf': patch | ||
'@rocket.chat/uikit-playground': patch | ||
'@rocket.chat/core-typings': patch | ||
'@rocket.chat/rest-typings': patch | ||
'@rocket.chat/apps-engine': patch | ||
'@rocket.chat/ui-composer': patch | ||
'@rocket.chat/ui-contexts': patch | ||
'@rocket.chat/gazzodown': patch | ||
'@rocket.chat/ui-avatar': patch | ||
'@rocket.chat/ui-client': patch | ||
'@rocket.chat/livechat': patch | ||
'@rocket.chat/ui-voip': patch | ||
'@rocket.chat/i18n': patch | ||
'@rocket.chat/meteor': patch | ||
--- | ||
|
||
Fixes error propagation when trying to get the status of apps in some cases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
"@rocket.chat/meteor": minor | ||
"@rocket.chat/core-typings": minor | ||
"@rocket.chat/model-typings": minor | ||
--- | ||
|
||
Adds statistics related to the new **Contact Identification** feature: | ||
- `totalContacts`: Total number of contacts; | ||
- `totalUnknownContacts`: Total number of unknown contacts; | ||
- `totalMergedContacts`: Total number of merged contacts; | ||
- `totalConflicts`: Total number of merge conflicts; | ||
- `totalResolvedConflicts`: Total number of resolved conflicts; | ||
- `totalBlockedContacts`: Total number of blocked contacts; | ||
- `totalPartiallyBlockedContacts`: Total number of partially blocked contacts; | ||
- `totalFullyBlockedContacts`: Total number of fully blocked contacts; | ||
- `totalVerifiedContacts`: Total number of verified contacts; | ||
- `avgChannelsPerContact`: Average number of channels per contact; | ||
- `totalContactsWithoutChannels`: Number of contacts without channels; | ||
- `totalImportedContacts`: Total number of imported contacts; | ||
- `totalUpsellViews`: Total number of "Advanced Contact Management" Upsell CTA views; | ||
- `totalUpsellClicks`: Total number of "Advanced Contact Management" Upsell CTA clicks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
'@rocket.chat/fuselage-ui-kit': patch | ||
'@rocket.chat/instance-status': patch | ||
'@rocket.chat/ui-theming': patch | ||
'@rocket.chat/model-typings': patch | ||
'@rocket.chat/ui-video-conf': patch | ||
'@rocket.chat/uikit-playground': patch | ||
'@rocket.chat/core-typings': patch | ||
'@rocket.chat/rest-typings': patch | ||
'@rocket.chat/apps-engine': patch | ||
'@rocket.chat/ui-composer': patch | ||
'@rocket.chat/ui-contexts': patch | ||
'@rocket.chat/gazzodown': patch | ||
'@rocket.chat/ui-avatar': patch | ||
'@rocket.chat/ui-client': patch | ||
'@rocket.chat/livechat': patch | ||
'@rocket.chat/ui-voip': patch | ||
'@rocket.chat/i18n': patch | ||
'@rocket.chat/meteor': patch | ||
--- | ||
|
||
Fixes wrong data being reported to total failed apps metrics and statistics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
apps/meteor/app/statistics/server/lib/getContactVerificationStatistics.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import type { IStats } from '@rocket.chat/core-typings'; | ||
import { LivechatContacts } from '@rocket.chat/models'; | ||
|
||
import { settings } from '../../../settings/server'; | ||
|
||
export async function getContactVerificationStatistics(): Promise<IStats['contactVerification']> { | ||
const [ | ||
totalContacts, | ||
totalUnknownContacts, | ||
[{ totalConflicts, avgChannelsPerContact } = { totalConflicts: 0, avgChannelsPerContact: 0 }], | ||
totalBlockedContacts, | ||
totalFullyBlockedContacts, | ||
totalVerifiedContacts, | ||
totalContactsWithoutChannels, | ||
] = await Promise.all([ | ||
LivechatContacts.estimatedDocumentCount(), | ||
LivechatContacts.countUnknown(), | ||
LivechatContacts.getStatistics().toArray(), | ||
LivechatContacts.countBlocked(), | ||
LivechatContacts.countFullyBlocked(), | ||
LivechatContacts.countVerified(), | ||
LivechatContacts.countContactsWithoutChannels(), | ||
]); | ||
|
||
return { | ||
totalContacts, | ||
totalUnknownContacts, | ||
totalMergedContacts: settings.get('Merged_Contacts_Count'), | ||
totalConflicts, | ||
totalResolvedConflicts: settings.get('Resolved_Conflicts_Count'), | ||
totalBlockedContacts, | ||
totalPartiallyBlockedContacts: totalBlockedContacts - totalFullyBlockedContacts, | ||
totalFullyBlockedContacts, | ||
totalVerifiedContacts, | ||
avgChannelsPerContact, | ||
totalContactsWithoutChannels, | ||
totalImportedContacts: settings.get('Contacts_Importer_Count'), | ||
totalUpsellViews: settings.get('Advanced_Contact_Upsell_Views_Count'), | ||
totalUpsellClicks: settings.get('Advanced_Contact_Upsell_Clicks_Count'), | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.