-
Notifications
You must be signed in to change notification settings - Fork 4
Delete and Move APIs #12
Copy link
Copy link
Open
Labels
breaking changeThis issue or pull request introduces a breaking changeThis issue or pull request introduces a breaking changeenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Metadata
Metadata
Assignees
Labels
breaking changeThis issue or pull request introduces a breaking changeThis issue or pull request introduces a breaking changeenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
The purpose of this issue is to expand upon the existing
ConfigStoreAPI to add methods for removing and renaming keys in theConfigStore.API
Currently there is no mechanism for performing these operations within venom, however, the logic to implement them should be fairly simple. Two new methods should be added to the
ConfigStoreinterface:Both of these methods must be implemented by the
Venomtype, which is itself aConfigStore, along with one additional method:This
MoveAndAliasmethod will, just like it sounds, perform aMoveand anAliasto ensure that the configuration data is available under the new keyspace, but that any applications using the old name will still be supported.Additional Considerations
Deleteoperations should be considered successful even if the specified key does not existMoveshould return an error if either thefromkey does not exist or if data is already stored under thetokeyspace.Note: The addition of the
MoveandDeletemethods to theConfigStoreAPI is a breaking change and will require a major version bump once merged.