Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define a Couch design document that prevents modification of locked objects #7880

Closed
Tracked by #7877
akhenry opened this issue Oct 9, 2024 · 2 comments
Closed
Tracked by #7877

Comments

@akhenry
Copy link
Contributor

akhenry commented Oct 9, 2024

Is your feature request related to a problem? Please describe.
#7877

Describe the solution you'd like
Define a Couch DB design document that prevents modification of an object that has been locked. Some specific requirements:

  1. Objects that were locked by a user can be unlocked for editing
  2. Objects that were locked by script cannot be unlocked for editing by a user
  3. Timers, Clocks, and Notebooks can still be edited, even if locked.
@akhenry
Copy link
Contributor Author

akhenry commented Oct 10, 2024

Testing Notes

  1. In the target server and database, ensure that no auth design document already exists. If it does, delete it.
    1.1 Navigate to Couch Fauxton - hosted at /_utils on the couch server
    1.2 Log in with admin privileges
    1.3 Navigate to the target test database
    1.4 Click on Design Documents
    1.5 Delete the design document named auth
  2. Execute src/plugins/persistence/couch/setup-couchdb.sh using arguments provided separately. Note that this script is designed to be idempotent so it should not affect any existing database configuration.
  3. Confirm that the script reports Successfully created _design/auth design document for locked objects

@akhenry akhenry closed this as completed Oct 10, 2024
@akhenry
Copy link
Contributor Author

akhenry commented Oct 10, 2024

@unlikelyzero to test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant