Skip to content

feat: add campfire email notifications for pending endpoint approvals#772

Open
notandy wants to merge 1 commit into
mainfrom
feature/campfire-email-notifications
Open

feat: add campfire email notifications for pending endpoint approvals#772
notandy wants to merge 1 commit into
mainfrom
feature/campfire-email-notifications

Conversation

@notandy
Copy link
Copy Markdown
Collaborator

@notandy notandy commented May 15, 2026

Adds a notifier package that sends email notifications via Campfire when endpoints are pending approval. Includes immediate notifications on new pending endpoints and a scheduled digest for stale ones.

@notandy notandy requested review from a team, m-kratochvil, notque and ronchi-oss as code owners May 15, 2026 20:52
@notandy notandy force-pushed the feature/campfire-email-notifications branch from eecd378 to 5482eda Compare May 15, 2026 20:53
Adds a notifier package that sends email notifications via Campfire
when endpoints are pending approval. Includes immediate notifications
on new pending endpoints and a scheduled digest for stale ones.
Uses separate queries in QueryPendingEndpoints to avoid scany
duplicate column errors from joined service/endpoint tables.
@notandy notandy force-pushed the feature/campfire-email-notifications branch from 5482eda to 098acde Compare May 16, 2026 00:19
@github-actions
Copy link
Copy Markdown

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/sapcc/archer/internal/agent/f5 0.00% (ø)
github.com/sapcc/archer/internal/agent/f5/as3 0.00% (ø)
github.com/sapcc/archer/internal/config 0.00% (ø)
github.com/sapcc/archer/internal/controller 0.00% (ø)
github.com/sapcc/archer/internal/notifier 0.00% (ø)
github.com/sapcc/archer/internal/scheduler 0.00% (ø)
github.com/sapcc/archer/restapi 0.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/sapcc/archer/internal/agent/f5/as3/proxy_protocol_2.go 0.00% (ø) 0 0 0
github.com/sapcc/archer/internal/config/config.go 0.00% (ø) 0 0 0
github.com/sapcc/archer/internal/controller/controller.go 0.00% (ø) 0 0 0
github.com/sapcc/archer/internal/controller/endpoint.go 0.00% (ø) 0 0 0
github.com/sapcc/archer/internal/notifier/campfire.go 0.00% (ø) 0 0 0
github.com/sapcc/archer/internal/notifier/digest.go 0.00% (ø) 0 0 0
github.com/sapcc/archer/internal/notifier/notifier.go 0.00% (ø) 0 0 0
github.com/sapcc/archer/internal/notifier/templates.go 0.00% (ø) 0 0 0
github.com/sapcc/archer/internal/scheduler/background.go 0.00% (ø) 0 0 0
github.com/sapcc/archer/internal/scheduler/elector.go 0.00% (ø) 0 0 0
github.com/sapcc/archer/restapi/configure_archer.go 0.00% (ø) 0 0 0

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/sapcc/archer/internal/agent/f5/mocks_test.go
  • github.com/sapcc/archer/internal/controller/suite_test.go
  • github.com/sapcc/archer/internal/notifier/campfire_test.go
  • github.com/sapcc/archer/internal/notifier/digest_test.go
  • github.com/sapcc/archer/internal/notifier/notifier_test.go
  • github.com/sapcc/archer/internal/notifier/templates_test.go
  • github.com/sapcc/archer/internal/scheduler/background_test.go
  • github.com/sapcc/archer/internal/scheduler/elector_integration_test.go

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.

1 participant