Skip to content

feat(gateways): show gateway creator in the list view - #181

Open
maknop wants to merge 5 commits into
mainfrom
created_by_field
Open

feat(gateways): show gateway creator in the list view#181
maknop wants to merge 5 commits into
mainfrom
created_by_field

Conversation

@maknop

@maknop maknop commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a "Created by" column to the gateway list table. The API server resolves the owner username by querying the RBAC role bindings table for the user holding the gateway:owner role, then surfaces it as a read-only created_by field on the Gateway response. The lookup runs only on the list endpoint to avoid unnecessary extra queries on create, patch, and get. The UI renders the username with a "Not available" fallback when no owner binding exists.

Screenshot 2026-08-21 at 12 44 32 PM

Assisted-by: Crush:claude-sonnet-4-6

Adds a "Created by" column to the gateway list table. The API server
resolves the owner username by querying the RBAC role bindings table
for the user holding the gateway:owner role, then surfaces it as a
read-only created_by field on the Gateway response. The lookup runs
only on the list endpoint to avoid unnecessary extra queries on create,
patch, and get. The UI renders the username with a "Not available"
fallback when no owner binding exists.

💘 Generated with Crush

Assisted-by: Crush:claude-sonnet-4-6
@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 63a333b4-43b2-447a-9a07-5e961174280f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@maknop
maknop marked this pull request as draft August 21, 2026 18:59
maknop added 4 commits August 21, 2026 13:01
- Format Go files (presenter.go, dao.go) to satisfy gofmt
- Use roles.RoleGatewayOwner constant instead of hardcoded string in DAO
- Move 'owner' message key to correct alphabetical position in messages.ts
- Restore createdBy on GatewayConnection (required by the table render)
- Regenerate TypeScript SDK to include the new created_by field
- Rebuild SDK dist so web-console picks up the updated types
- Extract active_sandbox_count and console_address via typed helpers in
  the web-console adapter to satisfy no-unsafe-assignment
- Add created_by to the web-console test fixture to satisfy the
  non-optional type emitted by the SDK generator

💘 Generated with Crush

Assisted-by: Crush:claude-sonnet-4-6
The new 'Created by' column caused the e2e locator for the 'Created'
column header to match two elements. Adding exact: true scopes the
match to the precise label.

💘 Generated with Crush

Assisted-by: Crush:claude-sonnet-4-6
@maknop
maknop marked this pull request as ready for review August 21, 2026 20:19
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