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

Refactor notifier package #41

Closed
wants to merge 5 commits into from

Conversation

yuri-tceretian
Copy link
Contributor

@yuri-tceretian yuri-tceretian commented Jan 13, 2023

During moving the code from Grafana repository I moved all pieces with as little changes as possible persisting the history. Now the switch is done and it is time to take it apart.
This PR moves logger, imageStorage, templates, configs and clients (a sender that sends webhook and email) to dedicated packages.
All receiver configs are moved to the config package (similar to Alertamanager structure).

Also, it copies a factory from https://github.com/grafana/grafana/blob/f990be58cbfe8635d4970e97e4a4fb63a9e1997c/pkg/services/ngalert/notifier/channels_config/factory.go
which will let us move more code from Grafana to alerting

NOTE: the diff does not really make sense but the new dir structure is.

move services to deciated packages
split configurations and implementations
@yuri-tceretian yuri-tceretian self-assigned this Jan 13, 2023
@gotjosh
Copy link
Collaborator

gotjosh commented Jan 19, 2023

Discussed this offline with Yuri. We're moving into a different more aggressive direction.

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

2 participants