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(stackdriver): handle null timeSeries and empty points #1047

Merged
merged 2 commits into from
Aug 8, 2024

Conversation

shlomodaari
Copy link
Contributor

Adding an if statement to check if timeSeries is null and if the points are empty + tests

@shlomodaari
Copy link
Contributor Author

This should fix this issue: spinnaker/spinnaker#6968

Copy link
Member

@link108 link108 left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for adding tests!

@edgarulg edgarulg merged commit 6684f9d into spinnaker:master Aug 8, 2024
8 checks passed
@edgarulg
Copy link

edgarulg commented Aug 8, 2024

@Mergifyio backport release-1.32.x release-1.33.x release-1.34.x release-1.28.x

Copy link
Contributor

mergify bot commented Aug 8, 2024

backport release-1.32.x release-1.33.x release-1.34.x release-1.28.x

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Aug 8, 2024
(cherry picked from commit 6684f9d)

# Conflicts:
#	kayenta-stackdriver/src/main/java/com/netflix/kayenta/stackdriver/metrics/StackdriverMetricsService.java
#	kayenta-stackdriver/src/test/java/com/netflix/kayenta/stackdriver/metrics/StackdriverMetricsServiceTest.java
mergify bot pushed a commit that referenced this pull request Aug 8, 2024
(cherry picked from commit 6684f9d)

# Conflicts:
#	kayenta-stackdriver/src/main/java/com/netflix/kayenta/stackdriver/metrics/StackdriverMetricsService.java
#	kayenta-stackdriver/src/test/java/com/netflix/kayenta/stackdriver/metrics/StackdriverMetricsServiceTest.java
mergify bot pushed a commit that referenced this pull request Aug 8, 2024
mergify bot pushed a commit that referenced this pull request Aug 8, 2024
(cherry picked from commit 6684f9d)

# Conflicts:
#	kayenta-stackdriver/src/main/java/com/netflix/kayenta/stackdriver/metrics/StackdriverMetricsService.java
#	kayenta-stackdriver/src/test/java/com/netflix/kayenta/stackdriver/metrics/StackdriverMetricsServiceTest.java
edgarulg pushed a commit that referenced this pull request Aug 8, 2024
)

(cherry picked from commit 6684f9d)

Co-authored-by: Shlomo Daari <104773977+shlomodaari@users.noreply.github.com>
edgarulg added a commit that referenced this pull request Aug 8, 2024
…1047) (#1051)

* fix(stackdriver): handle null timeSeries and empty points (#1047)

(cherry picked from commit 6684f9d)

# Conflicts:
#	kayenta-stackdriver/src/main/java/com/netflix/kayenta/stackdriver/metrics/StackdriverMetricsService.java
#	kayenta-stackdriver/src/test/java/com/netflix/kayenta/stackdriver/metrics/StackdriverMetricsServiceTest.java

* fix(mergify): fix conflicts in cherry-pick

---------

Co-authored-by: Shlomo Daari <104773977+shlomodaari@users.noreply.github.com>
Co-authored-by: Edgar Garcia <edgar.garcia@harness.io>
edgarulg added a commit that referenced this pull request Aug 8, 2024
…1047) (#1048)

* fix(stackdriver): handle null timeSeries and empty points (#1047)

(cherry picked from commit 6684f9d)

# Conflicts:
#	kayenta-stackdriver/src/main/java/com/netflix/kayenta/stackdriver/metrics/StackdriverMetricsService.java
#	kayenta-stackdriver/src/test/java/com/netflix/kayenta/stackdriver/metrics/StackdriverMetricsServiceTest.java

* fix(mergify): fix conflicts in cherry-pick

---------

Co-authored-by: Shlomo Daari <104773977+shlomodaari@users.noreply.github.com>
Co-authored-by: Edgar Garcia <edgar.garcia@harness.io>
edgarulg added a commit that referenced this pull request Aug 13, 2024
…1047) (#1049)

* fix(stackdriver): handle null timeSeries and empty points (#1047)

(cherry picked from commit 6684f9d)

# Conflicts:
#	kayenta-stackdriver/src/main/java/com/netflix/kayenta/stackdriver/metrics/StackdriverMetricsService.java
#	kayenta-stackdriver/src/test/java/com/netflix/kayenta/stackdriver/metrics/StackdriverMetricsServiceTest.java

* fix(mergify): fix conflicts in cherry-pick

* fix(stackdrive): add mockito for tests

---------

Co-authored-by: Shlomo Daari <104773977+shlomodaari@users.noreply.github.com>
Co-authored-by: Edgar Garcia <edgar.garcia@harness.io>
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.

3 participants