Skip to content

Commit

Permalink
Added config store functionality (initial implementation) (cadence-wo…
Browse files Browse the repository at this point in the history
…rkflow#4357)

* added idl api and blob definitions

* added internal types for configStore API

* added thrift mapper implementation for service API

* moved proto API definitions to proto internal

* added proto mapper for configStore API

* added dummy API functions

* changed value to datablob type in proto schema

* changed internal types and mappers for datablob values

* removed db blob definition

* changed mapper to reflect move of shared DynamicConfig thrift types

* added blob definition, thrift mapper, and serialize/deserialize for PayloadSerializer

* removed get_all and filters field of GetDynamicConfigRequest

* added configStore and configStoreManager dummy implementations

* added configStoreCRUD for nosqlplugin

* started cassandra plugin configStore.go

* added conditional insert for cassandra

* initial persistence layer implementation

* fixed typo

* added support for config store to persistence clients

* initial dc client implementation

* moved dc client and finished updateValue impl

* fixed UpdateValue for client

* fixed exported definitions

* change to align toward code base conventions and other minor details

* added timeouts for fetch and update

* initial tests

* conform to conventions with new update

* added persistence tests (initial set) along with cassandra schema update

* config store client tests, unresolved map test issue

* fixed variable naming

* added configStore functions to adminHandler

* improved admin handler and changed GetDynamicConfigRequest struct

* added cli commands for config store

* added dc client unit tests for Restore and List Value, fixed client logic bugs, 90% test coverage

* shifted configstoreclientconfig to new package, added some adminHandler unit tests, changes to use configStoreClient, added config to development.yaml

* fixed runtime panic error and improved cli interaction

* made changes to idl schema and fixed restore behavior

* fixed client test race conditions

* realized still needed list request and cli get with no filter specified returns all values of specified dc

* select dc client impl based on config file rather than hardcoded default

* commiting .gen changes

* change back to official idl repo

* added back in configStore thrift

* fixed metric test error

* changes made to reflect idl changes

* improvements such as backward dc client config compatibility, default config store client values, better adherence to conventions, etc.

* added case to persistence test base for sql

* Revert "added case to persistence test base for sql"

This reverts commit ea50165.

* added skips to config store persistence test for non-Cass dbs

* changes to config yaml files

* cli flags.go changes

* regenerated mocks

* regenerated mocks
  • Loading branch information
aliue authored Aug 13, 2021
1 parent 7420786 commit 0fd2b50
Show file tree
Hide file tree
Showing 97 changed files with 30,356 additions and 8,845 deletions.
12,433 changes: 7,785 additions & 4,648 deletions .gen/go/admin/admin.go

Large diffs are not rendered by default.

116 changes: 116 additions & 0 deletions .gen/go/admin/adminserviceclient/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0fd2b50

Please sign in to comment.