-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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/retentionSettings
- Loading branch information
Showing
303 changed files
with
1,312 additions
and
941 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,5 @@ | ||
--- | ||
"@rocket.chat/meteor": patch | ||
--- | ||
|
||
Allow to use the token from `room.v` when requesting transcript instead of visitor token. Visitors may change their tokens at any time, rendering old conversations impossible to access for them (or for APIs depending on token) as the visitor token won't match the `room.v` token. |
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,8 @@ | ||
--- | ||
"@rocket.chat/meteor": minor | ||
"@rocket.chat/i18n": minor | ||
"@rocket.chat/livechat": minor | ||
--- | ||
|
||
Added new setting `Allow visitors to finish conversations` that allows admins to decide if omnichannel visitors can close a conversation or not. This doesn't affect agent's capabilities of room closing, neither apps using the livechat bridge to close rooms. | ||
However, if currently your integration relies on `livechat/room.close` endpoint for closing conversations, it's advised to use the authenticated version `livechat/room.closeByUser` of it before turning off this setting. |
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,13 @@ | ||
--- | ||
'@rocket.chat/uikit-playground': minor | ||
'@rocket.chat/fuselage-ui-kit': minor | ||
'@rocket.chat/ui-theming': minor | ||
'@rocket.chat/ui-video-conf': minor | ||
'@rocket.chat/ui-composer': minor | ||
'@rocket.chat/gazzodown': minor | ||
'@rocket.chat/ui-avatar': minor | ||
'@rocket.chat/ui-client': minor | ||
'@rocket.chat/meteor': minor | ||
--- | ||
|
||
Replaced new `SidebarV2` components under feature preview |
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,5 @@ | ||
--- | ||
"@rocket.chat/meteor": patch | ||
--- | ||
|
||
Fixed a code issue on NPS service. It was passing `startAt` as the expiration date when creating a banner. |
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,6 @@ | ||
--- | ||
'@rocket.chat/message-parser': patch | ||
'@rocket.chat/peggy-loader': patch | ||
--- | ||
|
||
Improved the performance of the message parser |
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,6 @@ | ||
--- | ||
'@rocket.chat/i18n': minor | ||
'@rocket.chat/meteor': minor | ||
--- | ||
|
||
Added a new setting which allows workspace admins to disable email two factor authentication for SSO (OAuth) users. If enabled, SSO users won't be asked for email two factor authentication. |
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,5 @@ | ||
--- | ||
"@rocket.chat/meteor": patch | ||
--- | ||
|
||
Fixed issue that caused an infinite loading state when uploading a private app to Rocket.Chat |
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 @@ | ||
# .github/workflows/ci-preview.yml | ||
name: Deploy PR previews | ||
concurrency: preview-${{ github.ref }} | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- closed | ||
|
||
jobs: | ||
deploy-preview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: rharkor/[email protected] | ||
if: github.event.action != 'closed' | ||
|
||
- name: Setup NodeJS | ||
uses: ./.github/actions/setup-node | ||
if: github.event.action != 'closed' | ||
with: | ||
node-version: 14.21.3 | ||
cache-modules: true | ||
install: true | ||
|
||
- name: Build | ||
if: github.event.action != 'closed' | ||
run: | | ||
yarn turbo run build-preview | ||
yarn turbo run .:build-preview-move | ||
npx indexifier .preview --html --extensions .html > .preview/index.html | ||
- uses: rossjrw/pr-preview-action@v1 | ||
with: | ||
source-dir: .preview | ||
preview-branch: gh-pages | ||
umbrella-dir: pr-preview | ||
action: auto |
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,38 @@ | ||
# .github/workflows/ci-preview-deploy.yml | ||
name: Deploy GitHub Pages | ||
concurrency: preview-deploy-${{ github.ref }} | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- develop | ||
jobs: | ||
deploy-preview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: rharkor/[email protected] | ||
|
||
- name: Setup NodeJS | ||
uses: ./.github/actions/setup-node | ||
with: | ||
node-version: 14.21.3 | ||
cache-modules: true | ||
install: true | ||
|
||
- name: Build | ||
run: | | ||
yarn turbo run build-preview | ||
yarn turbo run .:build-preview-move | ||
npx indexifier .preview --html --extensions .html > .preview/index.html | ||
mv .preview ${{ github.ref_name }} | ||
mkdir .preview | ||
mv ${{ github.ref_name }} .preview | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: .preview | ||
keep_files: true |
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 |
---|---|---|
|
@@ -47,6 +47,8 @@ yarn-error.log* | |
.history | ||
.envrc | ||
|
||
.preview | ||
|
||
*.sublime-workspace | ||
|
||
**/.vim/ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import { expect } from 'chai'; | ||
import { describe, it } from 'mocha'; | ||
import proxyquire from 'proxyquire'; | ||
import sinon from 'sinon'; | ||
|
||
const settingsMock = sinon.stub(); | ||
|
||
const { EmailCheck } = proxyquire.noCallThru().load('./EmailCheck', { | ||
'@rocket.chat/models': { | ||
Users: {}, | ||
}, | ||
'meteor/accounts-base': { | ||
Accounts: { | ||
_bcryptRounds: () => '123', | ||
}, | ||
}, | ||
'../../../../server/lib/i18n': { | ||
i18n: { | ||
t: (key: string) => key, | ||
}, | ||
}, | ||
'../../../mailer/server/api': { | ||
send: () => undefined, | ||
}, | ||
'../../../settings/server': { | ||
settings: { | ||
get: settingsMock, | ||
}, | ||
}, | ||
}); | ||
|
||
const normalUserMock = { services: { email2fa: { enabled: true } }, emails: [{ email: '[email protected]', verified: true }] }; | ||
const normalUserWithUnverifiedEmailMock = { | ||
services: { email2fa: { enabled: true } }, | ||
emails: [{ email: '[email protected]', verified: false }], | ||
}; | ||
const OAuthUserMock = { services: { google: {} }, emails: [{ email: '[email protected]', verified: true }] }; | ||
|
||
describe('EmailCheck', () => { | ||
let emailCheck: typeof EmailCheck; | ||
beforeEach(() => { | ||
settingsMock.reset(); | ||
|
||
emailCheck = new EmailCheck(); | ||
}); | ||
|
||
it('should return EmailCheck is enabled for a normal user', () => { | ||
settingsMock.returns(true); | ||
|
||
const isEmail2FAEnabled = emailCheck.isEnabled(normalUserMock); | ||
|
||
expect(isEmail2FAEnabled).to.be.equal(true); | ||
}); | ||
|
||
it('should return EmailCheck is not enabled for a normal user with unverified email', () => { | ||
settingsMock.returns(true); | ||
|
||
const isEmail2FAEnabled = emailCheck.isEnabled(normalUserWithUnverifiedEmailMock); | ||
|
||
expect(isEmail2FAEnabled).to.be.equal(false); | ||
}); | ||
|
||
it('should return EmailCheck is not enabled for a OAuth user with setting being false', () => { | ||
settingsMock.returns(true); | ||
|
||
const isEmail2FAEnabled = emailCheck.isEnabled(OAuthUserMock); | ||
|
||
expect(isEmail2FAEnabled).to.be.equal(false); | ||
}); | ||
}); |
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
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
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
Oops, something went wrong.