Skip to content

node: Add hidden maybe_init_the_site/2 function - #44

Merged
ieQu1 merged 1 commit into
masterfrom
dev/override-default-cluster
Aug 3, 2026
Merged

node: Add hidden maybe_init_the_site/2 function#44
ieQu1 merged 1 commit into
masterfrom
dev/override-default-cluster

Conversation

@ieQu1

@ieQu1 ieQu1 commented Aug 3, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR extends classy_node initialization with a second arity of maybe_init_the_site/… that supports (intentionally hidden) one-time bootstrapping of a cluster ID during migrations, while keeping the existing maybe_init_the_site/1 API behavior unchanged.

Changes:

  • Export maybe_init_the_site/2 and route maybe_init_the_site/1 through it with MaybeCluster = undefined.
  • Add a -doc false migration-only maybe_init_the_site/2 that conditionally allows overriding the initial cluster ID only when the site is newly created.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/classy_node.erl
@ieQu1
ieQu1 merged commit f550f0d into master Aug 3, 2026
6 of 7 checks passed
@ieQu1
ieQu1 deleted the dev/override-default-cluster branch August 4, 2026 09:57
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.

2 participants