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

Add gRPC metadata library #89

Merged
merged 2 commits into from
Jan 18, 2024
Merged

Add gRPC metadata library #89

merged 2 commits into from
Jan 18, 2024

Conversation

shuheiktgw
Copy link
Contributor

@shuheiktgw shuheiktgw commented Jan 18, 2024

Add the metadata library to interact with gRPC metadata from the CEL expression.

This comment has been minimized.

func (lib *MetadataLibrary) CompileOptions() []cel.EnvOption {
opts := []cel.EnvOption{
cel.Function(
createMetadata("INCOMING"),
Copy link
Member

Choose a reason for hiding this comment

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

I’d like to use UPPER CASE name for constant value. So in this case, I think better to use lower case name ( incoming ).

Copy link

Code Metrics Report

main (879a6bd) #89 (48be0c2) +/-
Coverage 64.4% 64.4% +0.0%
Code to Test Ratio 1:0.5 1:0.5 +0.0
Test Execution Time 3m24s 3m23s -1s
Details
  |                     | main (879a6bd) | #89 (48be0c2) |  +/-  |
  |---------------------|----------------|---------------|-------|
+ | Coverage            |          64.4% |         64.4% | +0.0% |
  |   Files             |             61 |            62 |    +1 |
  |   Lines             |           8833 |          8848 |   +15 |
+ |   Covered           |           5686 |          5700 |   +14 |
+ | Code to Test Ratio  |          1:0.5 |         1:0.5 |  +0.0 |
  |   Code              |          24634 |         24692 |   +58 |
+ |   Test              |          11168 |         11255 |   +87 |
+ | Test Execution Time |          3m24s |         3m23s |   -1s |

Code coverage of files in pull request scope (100.0% → 96.7%)

Files Coverage +/-
grpc/federation/cel/lib.go 93.8% -6.2%
grpc/federation/cel/metadata.go 100.0% +100.0%

Reported by octocov

Copy link
Member

@goccy goccy left a comment

Choose a reason for hiding this comment

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

LGTM !

@shuheiktgw
Copy link
Contributor Author

🚀

@shuheiktgw shuheiktgw merged commit 203b2fe into main Jan 18, 2024
4 checks passed
@shuheiktgw shuheiktgw deleted the add_metadata_lib branch January 18, 2024 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants