[COMPASS-6064] Implement readOnly option Created: 30/Aug/22  Updated: 01/Dec/22  Resolved: 14/Nov/22

Status: Closed
Project: Compass
Component/s: Preferences, Readonly
Affects Version/s: None
Fix Version/s: 1.35.0

Type: Task Priority: Major - P3
Reporter: Anna Henningsen Assignee: Alena Khineika
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by COMPASS-6262 Expose protectConnectionStrings in se... Closed
Documented
Related
related to COMPASS-6062 Implement enableShell option Closed
is related to COMPASS-6292 Delete button showing for Readonly co... Closed
Epic Link: COMPASS-5816
Story Points: 3
Documentation Changes: Needed
Documentation Changes Summary:

Users can now switch their running compass to read-only mode via the compass setting UI. The behavior and features of compass in this case fully match the compass read-only edition.

Sprint: Iteration Kraken, Iteration Lobster, Iteration Manatee, Iteration Narwhal, Iteration Octopus

 Description   

This needs e2e tests. Setting readOnly to true should set enableShell to false.



 Comments   
Comment by Githook User [ 01/Dec/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: feat: implement readOnly and enableShell settings COMPASS-6064, COMPASS-6062 (#3609)

  • feat: check preferences readonly
  • feat: show readonly on settings page
  • refactor: get rid of extra variable
  • test: add e2e and reformat
  • test: fix unit tests for read only
  • test: e2e for read-only edition
  • feat: reflect read only change immediately
  • test: rename hadronReadOnly to preferencesReadonly
  • test: shows and hides readonly features
  • test: more e2e tests
  • refactor: update tests typos
  • refactor: stores clean up
  • test: run global config tests isolated from setting modal on start up
  • refactor: remove leftovers
  • feat: enable shell setting
  • test: add collectionTimeSeries to expected state
  • test: do not derive enableShell if readOnly is not set
  • fix: enable shell by default
  • test: enable shell for connectivity tests
  • fix: wait for shell appear before evaluate
  • test: new save settings button selector
  • fix: show and hide add data button based on readonly
  • refactor: tabs and comments
  • refactor: minor fixes after merge main
  • test: align tests to main changes
  • build: update package json
  • test: try readOnly false for shell e2e
  • feat: move readOnly and enableShell to features settings tab
  • test: check readOnly false
  • feat: preferencesReadOnly option default value
  • fix: do not reset preferences after disconnect
  • refactor: remove extra telemetry event
  • refactor: read some enableMaps and readOnly withPreferences
  • refactor: indexces withPreferences
  • test: reset readOnly in finally
  • refactor: add todo ticket
Comment by Githook User [ 25/Nov/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: feat: implement readOnly and enableShell settings COMPASS-6064, COMPASS-6062 (#3609)

  • feat: check preferences readonly
  • feat: show readonly on settings page
  • refactor: get rid of extra variable
  • test: add e2e and reformat
  • test: fix unit tests for read only
  • test: e2e for read-only edition
  • feat: reflect read only change immediately
  • test: rename hadronReadOnly to preferencesReadonly
  • test: shows and hides readonly features
  • test: more e2e tests
  • refactor: update tests typos
  • refactor: stores clean up
  • test: run global config tests isolated from setting modal on start up
  • refactor: remove leftovers
  • feat: enable shell setting
  • test: add collectionTimeSeries to expected state
  • test: do not derive enableShell if readOnly is not set
  • fix: enable shell by default
  • test: enable shell for connectivity tests
  • fix: wait for shell appear before evaluate
  • test: new save settings button selector
  • fix: show and hide add data button based on readonly
  • refactor: tabs and comments
  • refactor: minor fixes after merge main
  • test: align tests to main changes
  • build: update package json
  • test: try readOnly false for shell e2e
  • feat: move readOnly and enableShell to features settings tab
  • test: check readOnly false
  • feat: preferencesReadOnly option default value
  • fix: do not reset preferences after disconnect
  • refactor: remove extra telemetry event
  • refactor: read some enableMaps and readOnly withPreferences
  • refactor: indexces withPreferences
  • test: reset readOnly in finally
  • refactor: add todo ticket
Comment by Githook User [ 18/Nov/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: feat: implement readOnly and enableShell settings COMPASS-6064, COMPASS-6062 (#3609)

  • feat: check preferences readonly
  • feat: show readonly on settings page
  • refactor: get rid of extra variable
  • test: add e2e and reformat
  • test: fix unit tests for read only
  • test: e2e for read-only edition
  • feat: reflect read only change immediately
  • test: rename hadronReadOnly to preferencesReadonly
  • test: shows and hides readonly features
  • test: more e2e tests
  • refactor: update tests typos
  • refactor: stores clean up
  • test: run global config tests isolated from setting modal on start up
  • refactor: remove leftovers
  • feat: enable shell setting
  • test: add collectionTimeSeries to expected state
  • test: do not derive enableShell if readOnly is not set
  • fix: enable shell by default
  • test: enable shell for connectivity tests
  • fix: wait for shell appear before evaluate
  • test: new save settings button selector
  • fix: show and hide add data button based on readonly
  • refactor: tabs and comments
  • refactor: minor fixes after merge main
  • test: align tests to main changes
  • build: update package json
  • test: try readOnly false for shell e2e
  • feat: move readOnly and enableShell to features settings tab
  • test: check readOnly false
  • feat: preferencesReadOnly option default value
  • fix: do not reset preferences after disconnect
  • refactor: remove extra telemetry event
  • refactor: read some enableMaps and readOnly withPreferences
  • refactor: indexces withPreferences
  • test: reset readOnly in finally
  • refactor: add todo ticket
Comment by Githook User [ 17/Nov/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: feat: implement readOnly and enableShell settings COMPASS-6064, COMPASS-6062 (#3609)

  • feat: check preferences readonly
  • feat: show readonly on settings page
  • refactor: get rid of extra variable
  • test: add e2e and reformat
  • test: fix unit tests for read only
  • test: e2e for read-only edition
  • feat: reflect read only change immediately
  • test: rename hadronReadOnly to preferencesReadonly
  • test: shows and hides readonly features
  • test: more e2e tests
  • refactor: update tests typos
  • refactor: stores clean up
  • test: run global config tests isolated from setting modal on start up
  • refactor: remove leftovers
  • feat: enable shell setting
  • test: add collectionTimeSeries to expected state
  • test: do not derive enableShell if readOnly is not set
  • fix: enable shell by default
  • test: enable shell for connectivity tests
  • fix: wait for shell appear before evaluate
  • test: new save settings button selector
  • fix: show and hide add data button based on readonly
  • refactor: tabs and comments
  • refactor: minor fixes after merge main
  • test: align tests to main changes
  • build: update package json
  • test: try readOnly false for shell e2e
  • feat: move readOnly and enableShell to features settings tab
  • test: check readOnly false
  • feat: preferencesReadOnly option default value
  • fix: do not reset preferences after disconnect
  • refactor: remove extra telemetry event
  • refactor: read some enableMaps and readOnly withPreferences
  • refactor: indexces withPreferences
  • test: reset readOnly in finally
  • refactor: add todo ticket
Comment by Githook User [ 14/Nov/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: feat: implement readOnly and enableShell settings COMPASS-6064, COMPASS-6062 (#3609)

  • feat: check preferences readonly
  • feat: show readonly on settings page
  • refactor: get rid of extra variable
  • test: add e2e and reformat
  • test: fix unit tests for read only
  • test: e2e for read-only edition
  • feat: reflect read only change immediately
  • test: rename hadronReadOnly to preferencesReadonly
  • test: shows and hides readonly features
  • test: more e2e tests
  • refactor: update tests typos
  • refactor: stores clean up
  • test: run global config tests isolated from setting modal on start up
  • refactor: remove leftovers
  • feat: enable shell setting
  • test: add collectionTimeSeries to expected state
  • test: do not derive enableShell if readOnly is not set
  • fix: enable shell by default
  • test: enable shell for connectivity tests
  • fix: wait for shell appear before evaluate
  • test: new save settings button selector
  • fix: show and hide add data button based on readonly
  • refactor: tabs and comments
  • refactor: minor fixes after merge main
  • test: align tests to main changes
  • build: update package json
  • test: try readOnly false for shell e2e
  • feat: move readOnly and enableShell to features settings tab
  • test: check readOnly false
  • feat: preferencesReadOnly option default value
  • fix: do not reset preferences after disconnect
  • refactor: remove extra telemetry event
  • refactor: read some enableMaps and readOnly withPreferences
  • refactor: indexces withPreferences
  • test: reset readOnly in finally
  • refactor: add todo ticket
Comment by Githook User [ 14/Nov/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: feat: implement readOnly and enableShell settings COMPASS-6064, COMPASS-6062 (#3609)

  • feat: check preferences readonly
  • feat: show readonly on settings page
  • refactor: get rid of extra variable
  • test: add e2e and reformat
  • test: fix unit tests for read only
  • test: e2e for read-only edition
  • feat: reflect read only change immediately
  • test: rename hadronReadOnly to preferencesReadonly
  • test: shows and hides readonly features
  • test: more e2e tests
  • refactor: update tests typos
  • refactor: stores clean up
  • test: run global config tests isolated from setting modal on start up
  • refactor: remove leftovers
  • feat: enable shell setting
  • test: add collectionTimeSeries to expected state
  • test: do not derive enableShell if readOnly is not set
  • fix: enable shell by default
  • test: enable shell for connectivity tests
  • fix: wait for shell appear before evaluate
  • test: new save settings button selector
  • fix: show and hide add data button based on readonly
  • refactor: tabs and comments
  • refactor: minor fixes after merge main
  • test: align tests to main changes
  • build: update package json
  • test: try readOnly false for shell e2e
  • feat: move readOnly and enableShell to features settings tab
  • test: check readOnly false
  • feat: preferencesReadOnly option default value
  • fix: do not reset preferences after disconnect
  • refactor: remove extra telemetry event
  • refactor: read some enableMaps and readOnly withPreferences
  • refactor: indexces withPreferences
  • test: reset readOnly in finally
  • refactor: add todo ticket
Comment by Githook User [ 14/Nov/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: feat: implement readOnly and enableShell settings COMPASS-6064, COMPASS-6062 (#3609)

  • feat: check preferences readonly
  • feat: show readonly on settings page
  • refactor: get rid of extra variable
  • test: add e2e and reformat
  • test: fix unit tests for read only
  • test: e2e for read-only edition
  • feat: reflect read only change immediately
  • test: rename hadronReadOnly to preferencesReadonly
  • test: shows and hides readonly features
  • test: more e2e tests
  • refactor: update tests typos
  • refactor: stores clean up
  • test: run global config tests isolated from setting modal on start up
  • refactor: remove leftovers
  • feat: enable shell setting
  • test: add collectionTimeSeries to expected state
  • test: do not derive enableShell if readOnly is not set
  • fix: enable shell by default
  • test: enable shell for connectivity tests
  • fix: wait for shell appear before evaluate
  • test: new save settings button selector
  • fix: show and hide add data button based on readonly
  • refactor: tabs and comments
  • refactor: minor fixes after merge main
  • test: align tests to main changes
  • build: update package json
  • test: try readOnly false for shell e2e
  • feat: move readOnly and enableShell to features settings tab
  • test: check readOnly false
  • feat: preferencesReadOnly option default value
  • fix: do not reset preferences after disconnect
  • refactor: remove extra telemetry event
  • refactor: read some enableMaps and readOnly withPreferences
  • refactor: indexces withPreferences
  • test: reset readOnly in finally
  • refactor: add todo ticket
Comment by Githook User [ 14/Nov/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: feat: implement readOnly and enableShell settings COMPASS-6064, COMPASS-6062 (#3609)

  • feat: check preferences readonly
  • feat: show readonly on settings page
  • refactor: get rid of extra variable
  • test: add e2e and reformat
  • test: fix unit tests for read only
  • test: e2e for read-only edition
  • feat: reflect read only change immediately
  • test: rename hadronReadOnly to preferencesReadonly
  • test: shows and hides readonly features
  • test: more e2e tests
  • refactor: update tests typos
  • refactor: stores clean up
  • test: run global config tests isolated from setting modal on start up
  • refactor: remove leftovers
  • feat: enable shell setting
  • test: add collectionTimeSeries to expected state
  • test: do not derive enableShell if readOnly is not set
  • fix: enable shell by default
  • test: enable shell for connectivity tests
  • fix: wait for shell appear before evaluate
  • test: new save settings button selector
  • fix: show and hide add data button based on readonly
  • refactor: tabs and comments
  • refactor: minor fixes after merge main
  • test: align tests to main changes
  • build: update package json
  • test: try readOnly false for shell e2e
  • feat: move readOnly and enableShell to features settings tab
  • test: check readOnly false
  • feat: preferencesReadOnly option default value
  • fix: do not reset preferences after disconnect
  • refactor: remove extra telemetry event
  • refactor: read some enableMaps and readOnly withPreferences
  • refactor: indexces withPreferences
  • test: reset readOnly in finally
  • refactor: add todo ticket
Comment by Githook User [ 14/Nov/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-6064-implement-readonly-option
Branch: COMPASS-6064-implement-readonly-option
https://github.com/mongodb-js/compass/commit/5196b10ca9867957b555a2e56fc8eec2a4e8f895

Comment by Githook User [ 14/Nov/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-6064-implement-readonly-option
Branch: COMPASS-6064-implement-readonly-option
https://github.com/mongodb-js/compass/commit/0911334837b06712cbde84c19848b52248308f61

Comment by Githook User [ 11/Nov/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-6064-implement-readonly-option
Branch: COMPASS-6064-implement-readonly-option
https://github.com/mongodb-js/compass/commit/f4ce0fa34c47f9f737ffb09502189d9043d95a16

Comment by Githook User [ 10/Nov/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-6064-implement-readonly-option
Branch: COMPASS-6064-implement-readonly-option
https://github.com/mongodb-js/compass/commit/550e06702a7587566cc66d6d1d6e72ce0879d82f

Comment by Githook User [ 10/Nov/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-6064-implement-readonly-option
Branch: COMPASS-6064-implement-readonly-option
https://github.com/mongodb-js/compass/commit/05fc92c0105f2ce2ae5933fd5df3d4b4801c699f

Comment by Githook User [ 09/Nov/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-6064-implement-readonly-option

  1. Conflicts:
  2. package-lock.json
  3. packages/compass-preferences-model/src/preferences.ts
  4. packages/compass-schema-validation/package.json
  5. packages/compass-sidebar/package.json
  6. packages/databases-collections-list/package.json
  7. packages/databases-collections/package.json
    Branch: COMPASS-6064-implement-readonly-option
    https://github.com/mongodb-js/compass/commit/1481e7a604dd2f9c0f507e8fe019182d36b9bdc2
Comment by Githook User [ 29/Oct/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-6064-implement-readonly-option

  1. Conflicts:
  2. package-lock.json
    Branch: COMPASS-6064-implement-readonly-option
    https://github.com/mongodb-js/compass/commit/68593c47c3fe4230a2cc6ce6bdc2975f02727a8a
Comment by Githook User [ 27/Oct/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-6064-implement-readonly-option
Branch: COMPASS-6064-implement-readonly-option
https://github.com/mongodb-js/compass/commit/f811f167ceb58f85d6df9cf7569051d060938826

Comment by Githook User [ 27/Oct/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-6064-implement-readonly-option

  1. Conflicts:
  2. packages/compass/src/main/menu.ts
    Branch: COMPASS-6064-implement-readonly-option
    https://github.com/mongodb-js/compass/commit/e1bb654e496fd2af2d14a0084d9fb560adf41d78
Comment by Githook User [ 27/Oct/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-6064-implement-readonly-option
Branch: COMPASS-6064-implement-readonly-option
https://github.com/mongodb-js/compass/commit/ed964b3d9cd9e588f53ca84a580cac298c192fec

Comment by Githook User [ 26/Oct/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-6064-implement-readonly-option
Branch: COMPASS-6064-implement-readonly-option
https://github.com/mongodb-js/compass/commit/a8bee212572e54946545fc3721f6482998f91413

Comment by Githook User [ 26/Oct/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-6064-implement-readonly-option
Branch: COMPASS-6064-implement-readonly-option
https://github.com/mongodb-js/compass/commit/c6377d6209ac52c7f53e08a94d213b5091e9acce

Comment by Githook User [ 26/Oct/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-6064-implement-readonly-option

  1. Conflicts:
  2. packages/compass-aggregations/src/components/settings/settings.jsx
  3. packages/compass-shell/src/components/compass-shell/compass-shell.jsx
    Branch: COMPASS-6064-implement-readonly-option
    https://github.com/mongodb-js/compass/commit/479d0334b34968b62a3ad39f635af3bf2e290466
Comment by Githook User [ 25/Oct/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-6064-implement-readonly-option
Branch: COMPASS-6064-implement-readonly-option
https://github.com/mongodb-js/compass/commit/0614b90e5d8d15ca060a2926e7e73cab9c48d900

Comment by Githook User [ 25/Oct/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-6064-implement-readonly-option
Branch: COMPASS-6064-implement-readonly-option
https://github.com/mongodb-js/compass/commit/29668476392a6dc334b3399bf201c3f79201f7e3

Comment by Githook User [ 24/Oct/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-6064-implement-readonly-option

  1. Conflicts:
  2. package-lock.json
    Branch: COMPASS-6064-implement-readonly-option
    https://github.com/mongodb-js/compass/commit/9a8fe2000f4e157595e92b994809d026db4da127
Comment by Githook User [ 19/Oct/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-6064-implement-readonly-option
Branch: COMPASS-6064-implement-readonly-option
https://github.com/mongodb-js/compass/commit/47f085b2f64f303ba0e1eba7c7fef2a887d565ac

Comment by Githook User [ 19/Oct/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-6064-implement-readonly-option
Branch: COMPASS-6064-implement-readonly-option
https://github.com/mongodb-js/compass/commit/020cbcfe84fce54f30691068b80f4429881f2f53

Comment by Githook User [ 29/Sep/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-6064-implement-readonly-option
Branch: COMPASS-6064-implement-readonly-option
https://github.com/mongodb-js/compass/commit/c7bb844c069d3206e6f972f0e2fbbc630e76fa96

Comment by Githook User [ 29/Sep/22 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: feat: implement readOnly option COMPASS-6064
Branch: COMPASS-6064-implement-readonly-option
https://github.com/mongodb-js/compass/commit/3cb3d4d1c803c443382d535bb8112f13397a66ec

Generated at Wed Feb 07 22:41:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.