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

Rename image.ImageStore to image.Provider #79

Merged

Conversation

santihernandezc
Copy link
Contributor

@santihernandezc santihernandezc commented Apr 26, 2023

This PR renames our images.ImageStore to images.Provider for two main reasons:

  • This interface is supposed to provide images. It does not store them, nor does it interact with the DB.
  • This new naming avoids confusion with other similarly named interfaces in grafana/grafana like ImageStore (which interacts with the DB) and ImageService.

This interface will be refactored to support the use cases described in https://github.com/grafana/alerting-squad/issues/480

The number of modified files is pretty big, but this is just a rename, no functionality has been changed.

images/images.go Outdated Show resolved Hide resolved
@santihernandezc santihernandezc changed the title Rename ImageStore to ImageProvider Rename image.ImageStore to image.Provider Apr 26, 2023
Copy link
Contributor

@alexweav alexweav 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 5828396 into main Apr 26, 2023
@santihernandezc santihernandezc deleted the santihernandezc/rename_image_store_to_image_provider branch April 26, 2023 21:49
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

3 participants