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(metrics-operator): fix url encoding in DT metrics queries #1893

Merged
merged 7 commits into from
Aug 21, 2023

Conversation

bacherfl
Copy link
Member

@bacherfl bacherfl commented Aug 16, 2023

Closes #1890

I also cleaned up the unit tests for this component as we had some duplicated scenarios.

@netlify
Copy link

netlify bot commented Aug 16, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

Name Link
🔨 Latest commit 07f840b
🔍 Latest deploy log https://app.netlify.com/sites/keptn-lifecycle-toolkit/deploys/64dc8acb5826d700080ce972
😎 Deploy Preview https://deploy-preview-1893--keptn-lifecycle-toolkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@codecov
Copy link

codecov bot commented Aug 16, 2023

Codecov Report

Merging #1893 (6e60a7d) into main (ee0b085) will increase coverage by 0.03%.
Report is 3 commits behind head on main.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1893      +/-   ##
==========================================
+ Coverage   83.55%   83.58%   +0.03%     
==========================================
  Files         136      136              
  Lines        8427     8446      +19     
==========================================
+ Hits         7041     7060      +19     
  Misses       1129     1129              
  Partials      257      257              
Files Changed Coverage Δ
...r/controllers/common/providers/dynatrace/common.go 100.00% <100.00%> (ø)
...ontrollers/common/providers/dynatrace/dynatrace.go 87.93% <100.00%> (+0.54%) ⬆️
Flag Coverage Δ
certificate-operator 68.55% <ø> (ø)
component-tests 59.07% <ø> (ø)
lifecycle-operator 84.92% <ø> (ø)
metrics-operator 83.85% <100.00%> (+0.22%) ⬆️
scheduler 32.12% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@bacherfl bacherfl marked this pull request as ready for review August 16, 2023 08:47
@bacherfl bacherfl requested a review from a team as a code owner August 16, 2023 08:47
RealAnna
RealAnna previously approved these changes Aug 16, 2023
Copy link
Contributor

@RealAnna RealAnna left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
This reverts commit 702fb15.

Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@bacherfl
Copy link
Member Author

reverting to draft as this one needs some adaptation due to recently merged changes

@bacherfl bacherfl marked this pull request as draft August 16, 2023 10:29
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@bacherfl bacherfl marked this pull request as ready for review August 16, 2023 11:37
Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@sonarcloud
Copy link

sonarcloud bot commented Aug 21, 2023

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

@bacherfl bacherfl merged commit 5437df9 into keptn:main Aug 21, 2023
37 checks passed
@bacherfl bacherfl deleted the fix/dt-query branch August 21, 2023 09:06
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.

DT Metric Query is not executed properly when multiple parameters are provided in spec.query
4 participants