Repository navigation
Hybrid installs make one Other apps choice: CoderHelm's apps or fully private - #523
Merged
Merged
Conversation
… 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 newLocal.apps_modefield (coderhelmorprivate, withapps_vset to 2).uses_coderhelmis now simply "the mode is coderhelm and the tool has no own app".wanted_integrationscovers everyapp_choice_ids()entry.migrate_apps):coderhelm, or if nobody chose for it and Coderhelm holds it.apps_mode. For one release, the olderapps(per tool) andintegrationsfields still work: anycoderhelmmeans Coderhelm's apps, and onlyownmeans private. An older page can therefore make an install more private than it asked, never less. Whenapps_modeis sent, the older fields are ignored.apps_modeat the top level andown_appon each tool covered by the choice.integrations.rs: the doc comment onapp_choice_idsnow describes the install-wide choice.docs/self-host/hybrid.md(plain list, no table) and updated the Figma and knowledge lines inintegrations.mdand the guide body insetup-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.every_hosted_app_is_on_with_coderhelms_apps_and_none_when_privatea_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_oncethe_guide_and_settings_take_one_choice_and_older_bodies_for_now