Repository navigation
refactor(roles,feedback): share one projection per shape and name projection arguments - #642
Merged
StevenTCramer merged 4 commits intoNov 5, 2026
Conversation
…jection arguments GetRole and GetRoles now read Role members through RoleContractMap.Project, and the upload handler and FeedbackContractMap.AttachmentsAsync share FeedbackContractMap.Project. Every response, DTO, admin-view, activity, and attachment constructor call in the Roles and Feedback application layers uses named arguments. Behavior and wire shapes are unchanged. Task 479. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
StevenTCramer
deleted the
task/479-share-one-projection-for-getrole-and-getroles-and
branch
November 5, 2026 09:30
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
Review disposition
claude-opus-5-5).
./bin/dev buildgave 0 warnings and 0 errors, and./bin/dev test --no-build -qgave 23 of 23 projects passed.review/review-framework.md,review/round-1/general.md,review/round-1/merged.md,review/disposition.md.What changed
source/container-apps/web/features/admin/roles/role-contract-map-application.cs(new):RoleContractMap.Project(Role)readsRoleId,Name,Description,Permissions, andAgentScopesonce intoRoleContractMap.RoleProjection. Task 478 had landed, so it readsrole.AgentScopesas is; there is noAgentScopeOrder.OrderKnowncall.RoleContractMap.Projectand wrap it intoGetRole.Response/
GetRoles.RoleDtowith named arguments. The two contract types stay separate(
ResponseimplementsIRoleDetailswith settable details;RoleDtois an immutable row), sothe wire shape is unchanged.
FeedbackContractMap.Project(FeedbackAttachment)is the one attachment projection(
FeedbackContractMap.AttachmentProjection).AttachmentsAsyncwraps it intoGetFeedback.Attachment; the upload handler wraps it intoUploadFeedbackAttachment.Response.The upload handler no longer builds the download path itself.
set-agent-scopes) and Feedback (list, list-mine, get, get-for-admin, submit, change-status,
set-severity, reply, add-note, reply-as-filer, upload, remove, download), plus
FeedbackAdminViewandFeedbackActivityEntryinFeedbackContractMap.(task 479) and drop the "task 476 evaluates generating it" note.
Out of scope, not changed:
FeedbackListFilterandEmailMessageconstructors (not responseprojections), the contract-side mock factories, and the Principals slice
(
set-principal-*,list-principals,get-principal), which is not Roles.Gates
./bin/dev build: Build succeeded, 0 warnings, 0 errors../bin/dev test --no-build -q: 23 of 23 projects passed (including web-jaribu-tests,web-server-integration-tests, aspire-tests, web-spa-playwright-tests). No test files edited.
ganda repo audit: exit 0, "Repository passes — 2 advisory (non-blocking) warning(s)". Bothwere already there:
kanban-landed(other tasks' claims with no worktree on this machine) andsource-file-line-cap(EF migration designers and an archived research runfile; that check isset to warning, and TWA0038 enforces the cap). Nothing to fix on this task.
Test plan
Smoke:
Expect: build reports 0 warnings and 0 errors;
23 of 23 projects passed; the grep showsRoleContractMap.Projectin the GetRole and GetRoles handlers andFeedbackContractMap.Projectin the upload handler and
AttachmentsAsync(Select(Project)), with no other copy of eithermember list. In the app, Admin > Roles list and role detail show the same permissions and agent
scopes as before, and a feedback attachment uploaded on the submit form shows the same name,
size, and download link before and after submit.
Kanban task 479
Session: 1002142