Skip to content

Hybrid installs make one Other apps choice: CoderHelm's apps or fully private - #523

Merged
nambok merged 1 commit into
mainfrom
one-apps-choice
Nov 8, 2026
Merged

nambok merged 1 commit into
mainfrom
one-apps-choice

Conversation

@nambok

@nambok nambok commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

A hybrid install now makes one Other apps choice for the whole install instead of one per tool: Use Coderhelm's apps (easiest), the default, or Fully private. With Coderhelm's apps, every Hosted catalog entry except GitHub is on, including entries added in later releases, so a new app needs no per-install opt-in. A tool for which the install has its own app always uses that app. GitHub keeps its own separate choice.

Changes

  • hybrid_install.rs: adds a new Local.apps_mode field (coderhelm or private, with apps_v set to 2). uses_coderhelm is now simply "the mode is coderhelm and the tool has no own app". wanted_integrations covers every app_choice_ids() entry.
  • One-time migration (migrate_apps):
    • A tool counts as on Coderhelm's app if it was chosen coderhelm, or if nobody chose for it and Coderhelm holds it.
    • Any tool on Coderhelm's app means Coderhelm's apps.
    • All tools chosen as own means Fully private.
    • Nothing chosen means the default, Coderhelm's apps.
    • A mode that is already set is never overwritten.
    • Migration runs on registered installs (sync) and on unregistered ones (status).
  • Settings and guide bodies take apps_mode. For one release, the older apps (per tool) and integrations fields still work: any coderhelm means Coderhelm's apps, and only own means private. An older page can therefore make an install more private than it asked, never less. When apps_mode is sent, the older fields are ignored.
  • The status adds apps_mode at the top level and own_app on each tool covered by the choice.
  • integrations.rs: the doc comment on app_choice_ids now describes the install-wide choice.
  • Docs: rewrote the Other apps section of docs/self-host/hybrid.md (plain list, no table) and updated the Figma and knowledge lines in integrations.md and the guide body in setup-checks.md.

Verification

  • cargo fmt --all --check, cargo clippy -p gateway -p common --all-targets -- -D warnings: clean.
  • cargo test -p common -p gateway: 1568 + 763 + 2 passed.
  • New tests:
    • every_hosted_app_is_on_with_coderhelms_apps_and_none_when_private
    • a_new_hosted_entry_is_on_with_no_choice_to_make (from the catalog, and a record migrated before Figma gets Figma)
    • earlier_per_tool_choices_migrate_once
    • the_guide_and_settings_take_one_choice_and_older_bodies_for_now

… private

Every hosted catalog entry but GitHub is on for an install on CoderHelm's
apps, including entries added later, with no per-install opt-in. A tool
with the install's own app uses it either way. Per-tool choices migrate
once (any tool on CoderHelm's app: CoderHelm's apps; all own: private);
the older apps and integrations fields are still taken for one release.
@nambok
nambok merged commit bfbaf6c into main Nov 8, 2026
10 checks passed
@nambok
nambok deleted the one-apps-choice branch November 8, 2026 19:33
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