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

Define common metadata across components #1994

Merged
merged 5 commits into from
Aug 25, 2022

Conversation

mcandeia
Copy link
Contributor

Signed-off-by: Marcos Candeia marrcooos@gmail.com

Description

This PR adds a common and shared metadata across components. Notice that the json-serialization and way to get properties haven't changed.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #1990

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

@mcandeia mcandeia requested review from a team as code owners August 22, 2022 19:04
Copy link
Member

@berndverst berndverst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix linter issue.

@berndverst berndverst marked this pull request as draft August 22, 2022 19:21
@berndverst
Copy link
Member

/ok-to-test

@berndverst
Copy link
Member

@mcandeia mcandeia marked this pull request as ready for review August 22, 2022 19:44
@codecov
Copy link

codecov bot commented Aug 22, 2022

Codecov Report

Merging #1994 (a5ada07) into master (5595de6) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master    #1994   +/-   ##
=======================================
  Coverage   37.66%   37.66%           
=======================================
  Files         192      192           
  Lines       23982    23982           
=======================================
  Hits         9032     9032           
  Misses      14183    14183           
  Partials      767      767           
Impacted Files Coverage Δ
state/cockroachdb/cockroachdb_access.go 38.34% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@berndverst berndverst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is breaking certification tests.

Please update the tests in tests/certification

Example

Error: /home/runner/go/pkg/mod/github.com/dapr/dapr@v1.8.0-rc.1.0.20220713223752-9c6ab20ec023/pkg/runtime/runtime.go:520:25: unknown field 'Properties' in struct literal of type middleware.Metadata
Error: /home/runner/go/pkg/mod/github.com/dapr/dapr@v1.8.0-rc.1.0.20220713223752-9c6ab20ec023/pkg/runtime/runtime.go:1255:3: unknown field 'Properties' in struct literal of type "github.com/dapr/components-contrib/bindings".Metadata
Error: /home/runner/go/pkg/mod/github.com/dapr/dapr@v1.8.0-rc.1.0.202207132237[52](https://github.com/dapr/components-contrib/runs/7959860290?check_suite_focus=true#step:14:53)-9c6ab20ec023/pkg/runtime/runtime.go:1256:3: unknown field 'Name' in struct literal of type "github.com/dapr/components-contrib/bindings".Metadata

Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
@mcandeia mcandeia force-pushed the feat/common-components-metadata branch from b8654b9 to 58c984d Compare August 23, 2022 17:30
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
berndverst
berndverst previously approved these changes Aug 23, 2022
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
berndverst
berndverst previously approved these changes Aug 24, 2022
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
@berndverst berndverst added this to the v1.9 milestone Aug 25, 2022
@berndverst berndverst merged commit 8964d8b into dapr:master Aug 25, 2022
@mcandeia mcandeia deleted the feat/common-components-metadata branch August 25, 2022 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Define a common metadata object across components
2 participants