Repository navigation
fix(core): a module page's offer review finds the installation a host named itself - #62
Merged
Conversation
… named itself ReviewOffer looked a target's installation up by the stable id the core mints. A host that installs modules (Config.HostInstallsModules) names a module installation itself, so a module page's review there answered no installation, and the Setup UI had no installation to grant roles on. Such a host's installation is now found by its target, as held() finds it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Collaborator
Author
#62 review, head 5e276bf (base 9577d43)No blockers. The fix is in the right place, it is complete, and no test was weakened (the diff only adds lines). The new test fails when the fix is reverted (I checked that; the revert was undone). Findings, most important first:
VERDICT: merge — the lookup is bound to the org, matches what issuance already does, and the member path still refuses on the org check. |
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.
What changed
ReviewOfferlooked up a target's installation by the stable id the core mints (Config.InstallationID). A host that installs modules itself (Config.HostInstallsModules, for example module-saas-starter accounts) gives each module installation its own id. On such a host, a module page's review came back with an empty installation. Themodule_page_rolescase added in #61 catches this: "the administrator reviews roles [installer viewer] at installation """.On such a host, the installation is now found by its target (
installationOf), the same wayheld()finds it. Solutions and the local authority are unchanged: the stable id still answers first.Classification
This is a fix at the owning place, the core's offer review.
Tests
TestAHostNamedModulePageInstallationIsReviewed. It fails when the change is reverted (checked).go test ./...,go vetandgofmtare clean in authority-core, conformance and the local authority.Review
An independent review is still pending.
🤖 Generated with Claude Code