Skip to content

Remove Certificate GenServer, call initializer directly from Application#232

Merged
thiagoesteves merged 1 commit into
mainfrom
thiagoesteves/remove-certificate-gen-server
Jun 19, 2026
Merged

Remove Certificate GenServer, call initializer directly from Application#232
thiagoesteves merged 1 commit into
mainfrom
thiagoesteves/remove-certificate-gen-server

Conversation

@thiagoesteves

Copy link
Copy Markdown
Owner

Foundation.Certificate no longer runs as a supervised GenServer. The initialization logic is now triggered explicitly by the Application start/2 callback via initialize_certificate_manager/0, mirroring the pattern already used by Foundation.Notifications.

  • Drop Foundation.Certificate from the supervisor child list
  • Call initialize_certificate_manager/0 after the supervisor starts
  • Remove the if_not_test macro guard; the function is now unconditional
  • Make initialize_certificate_manager/0 public and add @SPEC
  • Add @SPEC and explicit :ok return to initialize_notification_manager/0
  • Remove GenServer-specific tests; update test config with certificates: []
  • Update @moduledoc to reflect the module's new role

Foundation.Certificate no longer runs as a supervised GenServer. The
initialization logic is now triggered explicitly by the Application
start/2 callback via initialize_certificate_manager/0, mirroring the
pattern already used by Foundation.Notifications.

- Drop Foundation.Certificate from the supervisor child list
- Call initialize_certificate_manager/0 after the supervisor starts
- Remove the if_not_test macro guard; the function is now unconditional
- Make initialize_certificate_manager/0 public and add @SPEC
- Add @SPEC and explicit :ok return to initialize_notification_manager/0
- Remove GenServer-specific tests; update test config with certificates: []
- Update @moduledoc to reflect the module's new role
@thiagoesteves thiagoesteves self-assigned this Jun 19, 2026
@thiagoesteves thiagoesteves moved this to In Progress in DeployEx Project Jun 19, 2026
@thiagoesteves thiagoesteves merged commit 4077a7c into main Jun 19, 2026
5 of 6 checks passed
@thiagoesteves thiagoesteves deleted the thiagoesteves/remove-certificate-gen-server branch June 19, 2026 17:38
@github-project-automation github-project-automation Bot moved this from In Progress to Done in DeployEx Project Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant