-
Notifications
You must be signed in to change notification settings - Fork 2k
Configuration API response to use dictionaries - based on PR #4695 #5083
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
Conversation
dapr#4556 Signed-off-by: Ian Luo <ian.luo@gmail.com>
Signed-off-by: Ian Luo <ian.luo@gmail.com>
Signed-off-by: Ian Luo <ian.luo@gmail.com>
Signed-off-by: Ian Luo <ian.luo@gmail.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## master #5083 +/- ##
==========================================
- Coverage 65.47% 65.45% -0.03%
==========================================
Files 113 113
Lines 12723 12721 -2
==========================================
- Hits 8331 8326 -5
- Misses 3809 3811 +2
- Partials 583 584 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
LGTM. just one question ...
for _, v := range getResponse.Items { | ||
cachedItems = append(cachedItems, &commonv1pb.ConfigurationItem{ | ||
Key: v.Key, | ||
cachedItems := make(map[string]*commonv1pb.ConfigurationItem, len(getResponse.Items)) |
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.
is there a reason for this to be a pointer to ConfigItem?
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.
@mukundansundar this is not my PR. This is from @beiwei30 - I don't know. I just dealt with the messy merge conflicts, missing tests and changes, and other broken things. If maintainers don't want it to be a pointer, please go ahead and fix up this PR here.
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.
@dapr/maintainers-dapr any thoughts on avoiding pointers unless necessary?
@mukundansundar now this PR is failing because I rebased against latest dapr/dapr which introduces a change from @ItalyPaleAle.. we have about 5 conflicting changes with circular dependencies in flight. It's a complete mess. |
wow ... all of them are failing! seems type mismatch ... probably use a prior commit from components-contrib to finish this PR and later a PR to use latest contrib ? |
@mukundansundar I think I know how to fix.. but it's a mess. Stay tuned. |
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Hopefully it's fixed now -- I had to get a change from @ItalyPaleAle into contrib and then import the latest contrib into this PR. |
* master: (134 commits) Record metric for service updates (dapr#5114) chore: remove duplicate word in comments (dapr#5099) Run e2e tests in previous version of K8s on AKS to see if it's breaking Windows tests (dapr#5104) add {namespace} option to set consumerID Add tracing passthrough for bindings (dapr#5049) Improve component init error logs and metrics (dapr#4975) Improvements to E2E test apps (dapr#5042) Fix component name for aws dynamodb (dapr#5095) Fix perf tests not building (dapr#5096) Fix missing components in Metadata API result. (dapr#5052) Fixed log message (dapr#5088) Disable IPFS binding for now (dapr#5092) optimize/concurrency: pubsub concurrency map writes in runtime unit test. (dapr#5086) Configuration API response to use dictionaries - based on PR dapr#4695 (dapr#5083) correct compile error correct checking for actors with same id fix type error in print fix typo add log when actor start time and end time is not expected Components auto-registration (dapr#5062) ... Signed-off-by: zhangchao <zchao9100@gmail.com> # Conflicts: # go.mod # pkg/grpc/api.go # pkg/grpc/api_test.go # pkg/http/api.go # pkg/runtime/runtime.go
Description
This includes all commits from PR #4695 from @beiwei30 - thanks for the contributions! To speed up getting this feature merged I opened this new PR with all requires fixes / changes.
Fixes #4556
Fixes #4695
Fixes #5071