Skip to content

feat(message-policies): expose hub.message_policies to web and pin project capabilities - #5763

Merged
ptone merged 4 commits into
GoogleCloudPlatform:mainfrom
ptone:scion/mp-ui-u0
Nov 28, 2026
Merged

ptone merged 4 commits into
GoogleCloudPlatform:mainfrom
ptone:scion/mp-ui-u0

Conversation

@ptone

@ptone ptone commented Nov 28, 2026

Copy link
Copy Markdown
Member

Message-policy UI slice U0 (backend only, no UI): expose hub.message_policies to the web layer and refresh its Description to the current coverage (agent_to_user, agent_to_conversation, agent_dm, mention_delivery; uncovered: group_post, group_set, mention_fanout, broadcast). Adds a web MESSAGE_POLICIES_FLAG constant, updates the perf-budget fixture, and pins the project _capabilities message-policy and System One actions with a test. No authz change. Fork PR: ptone#9700.

@google-cla

google-cla Bot commented Nov 28, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request expands the hub.message_policies experiment to cover both the server and web layers, enabling UI presentation of project message policies. It introduces the necessary feature flags, tests, and configuration updates across the Go backend and TypeScript frontend. Feedback is provided regarding a critical compilation error in pkg/hub/capabilities_test.go where srv.getProject is called with too many arguments.

rec := httptest.NewRecorder()
req := httptest.NewRequest(http.MethodGet, "/api/v1/projects/"+project.ID, nil).
WithContext(contextWithIdentity(ctx, ident))
srv.getProject(rec, req, project.ID)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

The srv.getProject handler is a standard HTTP handler and only accepts two arguments: (http.ResponseWriter, *http.Request). Passing project.ID as a third argument will cause a compilation error. If the handler relies on route parameters, they should be injected into the request context instead.

Suggested change
srv.getProject(rec, req, project.ID)
srv.getProject(rec, req)

@ptone
ptone merged commit 0833263 into GoogleCloudPlatform:main Nov 28, 2026
78 of 79 checks passed
@ptone
ptone deleted the scion/mp-ui-u0 branch November 28, 2026 04:50
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