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

fix(metricprovider): Support jsonBody for web metric provider Fixes #2275 #2312

Merged
merged 2 commits into from
Oct 19, 2022

Conversation

premadk
Copy link
Contributor

@premadk premadk commented Oct 11, 2022

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • I've signed my commits with DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My builds are green. Try syncing with master if they are not.
  • My organization is added to USERS.md.

@sonarcloud
Copy link

sonarcloud bot commented Oct 11, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link
Contributor

Go Published Test Results

1 772 tests   1 772 ✔️  2m 33s ⏱️
   101 suites         0 💤
       1 files           0

Results for commit 064eae3.

@codecov
Copy link

codecov bot commented Oct 11, 2022

Codecov Report

Base: 82.38% // Head: 82.37% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (064eae3) compared to base (33ddaf5).
Patch coverage: 84.21% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2312      +/-   ##
==========================================
- Coverage   82.38%   82.37%   -0.01%     
==========================================
  Files         121      121              
  Lines       18476    18490      +14     
==========================================
+ Hits        15221    15232      +11     
- Misses       2468     2470       +2     
- Partials      787      788       +1     
Impacted Files Coverage Δ
metricproviders/webmetric/webmetric.go 68.88% <84.21%> (+1.12%) ⬆️

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

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions
Copy link
Contributor

E2E Tests Published Test Results

  1 files    1 suites   50m 44s ⏱️
89 tests 82 ✔️ 3 💤 4
93 runs  86 ✔️ 3 💤 4

For more details on these failures, see this check.

Results for commit 064eae3.

@zachaller zachaller added hacktoberfest-accepted Accepted Hacktoberfest contribution ready-for-review Ready for final review labels Oct 14, 2022
@jessesuen jessesuen changed the title fix(webmetrics): Support jsonBody for web metric provider Fixes #2275 fix(metricprovider): Support jsonBody for web metric provider Fixes #2275 Oct 19, 2022
Setting a `body` field for a `GET` request will result in an error.
In order to send in JSON, you can use jsonBody and Content-Type will be automatically set as json.
Setting a `body` or `jsonBody` field for a `GET` request will result in an error.
Set either `body` or `jsonBody` and setting both will result in an error.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mayzhang2000 Setting both will result in an error. Should I be removing this line from the doc?

Copy link
Contributor

@mayzhang2000 mayzhang2000 left a comment

Choose a reason for hiding this comment

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

LGTM

@mayzhang2000 mayzhang2000 merged commit 9fee037 into argoproj:master Oct 19, 2022
jenciso pushed a commit to jenciso/argo-rollouts that referenced this pull request Oct 25, 2022
…rgoproj#2275 (argoproj#2312)

* fix(issue2275): Support jsonBody for web metric provider

Signed-off-by: Prema devi Kuppuswamy <[email protected]>

* fix(webmetrics): generate proto files

Signed-off-by: Prema devi Kuppuswamy <[email protected]>

Signed-off-by: Prema devi Kuppuswamy <[email protected]>
jandersen-plaid pushed a commit to jandersen-plaid/argo-rollouts that referenced this pull request Nov 8, 2022
…rgoproj#2275 (argoproj#2312)

* fix(issue2275): Support jsonBody for web metric provider

Signed-off-by: Prema devi Kuppuswamy <[email protected]>

* fix(webmetrics): generate proto files

Signed-off-by: Prema devi Kuppuswamy <[email protected]>

Signed-off-by: Prema devi Kuppuswamy <[email protected]>
jandersen-plaid pushed a commit to jandersen-plaid/argo-rollouts that referenced this pull request Nov 26, 2022
…rgoproj#2275 (argoproj#2312)

* fix(issue2275): Support jsonBody for web metric provider

Signed-off-by: Prema devi Kuppuswamy <[email protected]>

* fix(webmetrics): generate proto files

Signed-off-by: Prema devi Kuppuswamy <[email protected]>

Signed-off-by: Prema devi Kuppuswamy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Accepted Hacktoberfest contribution ready-for-review Ready for final review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants