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

Alerting: Bump grafana/alerting and refactor the ImageStore/Provider to provide image URL/bytes #70182

Merged

Conversation

santihernandezc
Copy link
Contributor

@santihernandezc santihernandezc commented Jun 15, 2023

Description

This PR implements the images.Provider interface described in our grafana/alerting repository (link).

This new implementation has two methods:

  • GetImageURL(): Gets a URL that can be used directly in our notifications.
  • GetRawImage(): Returns an io.ReadCloser to read the bytes of an image, useful for integrations that require the images to be uploaded.

Other Changes

Duplicate of #67693

…ernandezc/refactor_image_store_implementation
@santihernandezc santihernandezc changed the title Alerting: Refactor the ImageStore/Provider to provide image URL/bytes Alerting: Bump grafana/alerting and refactor the ImageStore/Provider to provide image URL/bytes Jun 21, 2023
Copy link
Member

@JacobsonMT JacobsonMT left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@santihernandezc santihernandezc merged commit ff9eff4 into main Jun 21, 2023
13 checks passed
@santihernandezc santihernandezc deleted the santihernandezc/refactor_image_store_implementation branch June 21, 2023 23:53
LudoVio pushed a commit that referenced this pull request Jun 26, 2023
…to provide image URL/bytes (#70182)

* implement alerting.images.Provider interface in our ImageStore

* add URLExists() method to fakeConfigStore

* make linter happy

* update integration tests
harisrozajac pushed a commit that referenced this pull request Jun 30, 2023
…to provide image URL/bytes (#70182)

* implement alerting.images.Provider interface in our ImageStore

* add URLExists() method to fakeConfigStore

* make linter happy

* update integration tests
@ricky-undeadcoders ricky-undeadcoders modified the milestones: 10.1.x, 10.1.0 Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

5 participants