Skip to content

Commit

Permalink
Merge branch 'main' of github.com:mongodb-js/mongosh into gagik/e2e-f…
Browse files Browse the repository at this point in the history
…oliage
  • Loading branch information
gagik committed Dec 16, 2024
2 parents 0deb771 + fdf6b6d commit 4cd6692
Show file tree
Hide file tree
Showing 16 changed files with 1,150 additions and 903 deletions.
12 changes: 0 additions & 12 deletions .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8179,17 +8179,6 @@ tasks:
mongosh_test_id: "types"
mongosh_run_only_in_package: "types"
task_name: ${task_name}
# TODO: This is an always failing test to check Foliage. Should be removed afterwards.
- name: test_always_failing
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
commands:
- command: shell.exec
type: setup
params:
working_dir: src
shell: bash
script: |
node -e "throw new Error()"

###
# INTEGRATION TESTS
Expand Down Expand Up @@ -15289,7 +15278,6 @@ buildvariants:
- name: test_vscode
- name: test_connectivity
- name: test_apistrict
- name: test_always_failing
- name: linux_coverage
display_name: "Ubuntu 20.04 x64 (Coverage and Static Analysis Check)"
run_on: ubuntu2004-small
Expand Down
12 changes: 0 additions & 12 deletions .evergreen/evergreen.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -1680,17 +1680,6 @@ tasks:
mongosh_run_only_in_package: "<% out(packageName) %>"
task_name: ${task_name}
<% } %>
# TODO: This is an always failing test to check Foliage. Should be removed afterwards.
- name: test_always_failing
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
commands:
- command: shell.exec
type: setup
params:
working_dir: src
shell: bash
script: |
node -e "throw new Error()"

###
# INTEGRATION TESTS
Expand Down Expand Up @@ -2146,7 +2135,6 @@ buildvariants:
- name: test_vscode
- name: test_connectivity
- name: test_apistrict
- name: test_always_failing
- name: linux_coverage
display_name: "Ubuntu 20.04 x64 (Coverage and Static Analysis Check)"
run_on: ubuntu2004-small
Expand Down
2 changes: 1 addition & 1 deletion THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
The following third-party software is used by and included in **mongosh**.
This document was automatically generated on Thu Dec 12 2024.
This document was automatically generated on Sun Dec 15 2024.

## List of dependencies

Expand Down
193 changes: 193 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions packages/browser-repl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,20 @@ const runtime = new IframeRuntime(serviceProvider);
Shell is a React component with the following properties:

- `runtime: Runtime`: The runtime used to evaluate code.
- `onOutputChanged?: (output: readonly ShellOutputEntry[]) => void`: A function called each time the output changes with an array of `ShellOutputEntryes`.
- `onHistoryChanged?: (history: readonly string[]) => void`: A function called each time the history changes with an array of history entries ordered from the most recent to the oldest entry.
- `onOutputChanged?: (output: ShellOutputEntry[]) => void`: A function called each time the output changes with an array of `ShellOutputEntries`.
- `onHistoryChanged?: (history: string[]) => void`: A function called each time the history changes with an array of history entries ordered from the most recent to the oldest entry.
- `onEditorChanged?: (editor: EditorRef | null) => void`: A function called each time the editor ref changes. Can be used to call editor methods.
- `onOperationStarted?: () => void`: A function called when an operation has begun.
- `onOperationEnd?: () => void`: A function called when an operation has completed (both error and success).
- `redactInfo?: boolean`: If set, the shell will omit or redact entries containing sensitive info from history. Defaults to `false`.
- `maxOutputLength?: number`: The maxiumum number of lines to keep in the output. Defaults to `1000`.
- `maxHistoryLength?: number`: The maxiumum number of lines to keep in the history. Defaults to `1000`.
- `initialOutput?: readonly ShellOutputEntry[]`: An array of entries to be displayed in the output area. Can be used to restore the output between sessions, or to setup a greeting message. **Note**: new entries will not be appended to the array.
- `initialHistory?: readonly string[]`: An array of history entries to prepopulate the history.
- `initialEvaluate?: string|string[]`: A set of input strings to evaluate right after shell is mounted.
- `initialText?: string`: The initial text for the input field.
- `output?: ShellOutputEntry[]`: An array of entries to be displayed in the output area. Can be used to restore the output between sessions, or to setup a greeting message. **Note**: new entries will not be appended to the array.
- `history?: readonly string[]`: An array of history entries to prepopulate the history.
Can be used to restore the history between sessions. Entries must be ordered from the most recent to the oldest. Note: new entries will not be appended to the array.
- `isOperationInProgress?: boolean`: Can be used to restore the value between sessions.

### `ShellOutputEntry`

Expand Down
7 changes: 6 additions & 1 deletion packages/browser-repl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"depcheck": "depcheck",
"compile": "tsc -p tsconfig.json",
"prettier": "prettier",
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
"reformat": "npm run prettier -- --write . && npm run eslint --fix",
"sync-to-compass": "node scripts/sync-to-compass.js"
},
"config": {
"unsafe-perm": true
Expand Down Expand Up @@ -76,6 +77,9 @@
"@mongodb-js/prettier-config-devtools": "^1.0.1",
"@mongodb-js/tsconfig-mongosh": "^1.0.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.8",
"@testing-library/dom": "^8.20.1",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^13.5.0",
"@types/numeral": "^2.0.2",
"@types/react": "^16.9.17",
"@types/react-dom": "^18.0.8",
Expand All @@ -96,6 +100,7 @@
"karma-mocha-reporter": "^2.2.5",
"karma-typescript": "^5.5.4",
"karma-webpack": "^5.0.0",
"lodash": "^4.17.21",
"path-browserify": "^1.0.1",
"prettier": "^2.8.8",
"prop-types": "^15.7.2",
Expand Down
Loading

0 comments on commit 4cd6692

Please sign in to comment.