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

[CouchDB] Add couchdb scripts to repo #7056

Closed
unlikelyzero opened this issue Sep 13, 2023 · 2 comments · Fixed by #7069
Closed

[CouchDB] Add couchdb scripts to repo #7056

unlikelyzero opened this issue Sep 13, 2023 · 2 comments · Fixed by #7069
Labels
type:maintenance tests, chores, or project maintenance
Milestone

Comments

@unlikelyzero
Copy link
Collaborator

unlikelyzero commented Sep 13, 2023

Summary

In the https://github.com/nasa/openmct/tree/master/src/plugins/persistence/couch repo we need to add the following:

  1. A new package.json file with the following
{
  “dependencies”: {
    “@cloudant/couchbackup”: “2.9.9”
  },
  “scripts”: {
    “backup:openmct”: “npx couchbackup -u http://admin:password@127.0.0.1:5984/ -d openmct -o openmct-couch-backup.txt”,
    “restore:openmct”: “cat openmct-couch-backup.txt | npx couchrestore -u http://admin:password@127.0.0.1:5984/ -d openmct”,
  }
}
  1. A script for removing all tags from couchdb
  2. (stretch)A script for removing all temporal tags from couchdb
  3. (stretch)A script for removing all time-based tags from couchdb
@unlikelyzero unlikelyzero added the type:maintenance tests, chores, or project maintenance label Sep 13, 2023
@scottbell scottbell linked a pull request Sep 18, 2023 that will close this issue
15 tasks
@scottbell
Copy link
Contributor

To test:

  1. Start Open MCT with CouchDB
  2. Create a bunch of different types of tags (imagery, notebook, graph)
  3. Verify they're in CouchDB through the CouchDB admin tool
  4. Run the script to delete one type of tag, e.g., for imagery: npm run deleteAnnotations:openmct -- --annotationType PIXEL_SPATIAL
  5. Verify all the imagery tags are deleted through both Open MCT and the CouchDB admin tool.
  6. Run the script to delete all the tags: npm run deleteAnnotations:openmct
  7. Verify all the tags are deleted through both Open MCT and the CouchDB admin tool.

@ozyx
Copy link
Member

ozyx commented Oct 5, 2023

Verified Testathon 10/5/23

@ozyx ozyx removed the unverified label Oct 5, 2023
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