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

Investigate Couch Version Management Scripts #7475

Open
scottbell opened this issue Feb 5, 2024 · 2 comments · May be fixed by #7501
Open

Investigate Couch Version Management Scripts #7475

scottbell opened this issue Feb 5, 2024 · 2 comments · May be fixed by #7501
Assignees
Labels
type:maintenance tests, chores, or project maintenance

Comments

@scottbell
Copy link
Contributor

Summary

With #7360 and #7359, we need a way to restrict couch databases to be read only via design documents.

@scottbell scottbell added the type:maintenance tests, chores, or project maintenance label Feb 5, 2024
@scottbell scottbell self-assigned this Feb 5, 2024
@scottbell
Copy link
Contributor Author

  • New script is needed to apply a JSON export to an existing database. Will create or replace, with NO ID remapping - this is key.
  • Two Couch DB users will need to be defined, a "user" and an "administrator". The read-only db will be immutable to anyone but administrators.
  • Add design document to make read-only couch readonly to users.

@scottbell scottbell linked a pull request Feb 13, 2024 that will close this issue
15 tasks
@scottbell scottbell linked a pull request Feb 13, 2024 that will close this issue
15 tasks
@scottbell
Copy link
Contributor Author

scottbell commented Feb 13, 2024

To test:

  1. Set up OpenMCT to use CouchDB following directions here.
  2. Start OpenMCT and create a bunch of objects (clocks, plots, etc.).
  3. Backup the OpenMCT database following directions here.
  4. Login into CouchDB's web interface following directions here.
  5. Go into the database, and delete a few of the objects you created.
  6. Run the upsert script following the directions here.
  7. Go back to OpenMCT, and ensure your deleted objects have been restored.
  8. Rename an object in OpenMCT
  9. Run the upsert script again
  10. Go back to OpenMCT, and ensure your renamed object has been restored to the backup's version.
  11. Delete the entire database, and then create it again.
  12. Run the upsert script again
  13. Go back to OpenMCT and ensure your objects have been restored.

@unlikelyzero unlikelyzero added this to the Target:4.0.0 milestone Feb 15, 2024
@ozyx ozyx changed the title Investigate Couch Version Managment Scripts Investigate Couch Version Management Scripts Feb 27, 2024
@akhenry akhenry removed this from the Target:4.0.0 milestone Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:maintenance tests, chores, or project maintenance
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants