Repository navigation
feat(message-policies): expose hub.message_policies to web and pin project capabilities - #5763
Conversation
…oject capabilities (U0)
…te CLI subcommand
|
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. |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
| srv.getProject(rec, req, project.ID) | |
| srv.getProject(rec, req) |
…olicies description" This reverts commit 9b207b3.
Message-policy UI slice U0 (backend only, no UI): expose
hub.message_policiesto 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 webMESSAGE_POLICIES_FLAGconstant, updates the perf-budget fixture, and pins the project_capabilitiesmessage-policy and System One actions with a test. No authz change. Fork PR: ptone#9700.