-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add support for multiple CouchDB databases, multiple namespaces, and readOnly
configurations
#7413
Merged
unlikelyzero
merged 23 commits into
master
from
7359-support-more-than-one-couch-database-for-a-single-couch-server
Jan 30, 2024
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
7f49118
two namespaces appear
scottbell c04ba36
works with two databases
scottbell 7560677
try to batch requests
scottbell 5d76fec
fix indicators
scottbell c6d3bf7
Merge remote-tracking branch 'origin/master' into 7359-support-more-t…
scottbell 6cdb016
add option to omit root for myitems
scottbell 6ba422e
ready for review
scottbell 6190c06
ready for review
scottbell da14772
ready for review
scottbell 3b0894a
typo in README
scottbell 5229b28
spelling
scottbell c70d958
spelling
scottbell cfef0e6
update readme
scottbell 896c241
fix tests
scottbell 74ccec3
Merge branch 'master' into 7359-support-more-than-one-couch-database-…
ozyx a57789b
Merge remote-tracking branch 'origin/master' into 7359-support-more-t…
scottbell 90bc350
Merge branch 'master' into 7359-support-more-than-one-couch-database-…
scottbell e7074b4
Update src/plugins/persistence/couch/README.md
scottbell 6f14720
remove omitRoot
scottbell e6e5515
remove omitRoot
scottbell 4a9c62f
fix my items to check for namespace when intercepting
scottbell 75d496a
update readme
scottbell c79d50a
Merge branch 'master' into 7359-support-more-than-one-couch-database-…
akhenry File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -493,6 +493,7 @@ | |
"WCAG", | ||
"stackedplot", | ||
"Andale", | ||
"unnnormalized", | ||
"checksnapshots", | ||
"specced" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,26 @@ | ||
# My Items plugin | ||
Defines top-level folder named "My Items" to store user-created items. Enabled by default, this can be disabled in a | ||
read-only deployment with no user-editable objects. | ||
Defines top-level folder named "My Items" to store user-created items. Enabled by default, this can be disabled in a read-only deployment with no user-editable objects. | ||
|
||
## Installation | ||
```js | ||
openmct.install(openmct.plugins.MyItems()); | ||
``` | ||
|
||
## Options | ||
When installing, the plugin can take several options: | ||
|
||
- `name`: The label of the root object. Defaults to "My Items" | ||
- Example: `'Apple Items'` | ||
|
||
- `namespace`: The namespace to create the root object in. Defaults to the empty string `''` | ||
- Example: `'apple-namespace'` | ||
|
||
- `priority`: The optional priority to install this plugin. Defaults to `openmct.priority.LOW` | ||
- Example: `'openmct.priority.LOW'` | ||
|
||
E.g., to install with a custom name and namespace, you could use: | ||
|
||
|
||
```js | ||
openmct.install(openmct.plugins.MyItems('Apple Items', 'apple-namespace')); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm prepared to accept unnormalized at a stretch. But unnnormalized? With three n's?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦♂️