Skip to content

Show Edit button for gitlab connections#29

Merged
murbard merged 1 commit into
mainfrom
fix/edit-button-includes-gitlab
Jun 19, 2026
Merged

Show Edit button for gitlab connections#29
murbard merged 1 commit into
mainfrom
fix/edit-button-includes-gitlab

Conversation

@murbard

@murbard murbard commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

GitLab connections in status=reauth_required (e.g. PAT revoked / expired) had no remedy UI: the Re-authenticate button is google-only, and the Edit button was gated on http_proxy / mcp_proxy / github. The operator was stuck — no clickable way to update the token.

Add gitlab to the Edit-button condition. The GitLab connector's Meta().SetupFields already declare both token and base_url as Editable=true, so the generic data-driven edit page is the right landing place. Operator pastes a fresh PAT, hits Save, and the existing UpdateConfig path clears reauth_required on success.

Test plan

  • Place a gitlab connection in reauth_required (e.g. via a sql UPDATE connections SET status='reauth_required' WHERE id='...').
  • The Edit link is visible on the connection row.
  • Clicking Edit lands on /connections/{id}/edit with the token field empty (Secret) and base_url pre-filled.
  • Pasting a fresh PAT and Saving returns to /connections with the row back to active.

🤖 Generated with Claude Code

GitLab uses a personal access token (no OAuth refresh / no
Re-authenticate flow), so when a gitlab connection lands in
status=reauth_required (e.g. token revoked or expired and Validate
returned ErrNeedsReauth) the operator had no remedy: the
Re-authenticate button is google-only and the Edit button was
gated on http_proxy / mcp_proxy / github.

Add gitlab to the Edit-button condition. GitLab's connector Meta()
already declares both fields (token + base_url) as Editable=true, so
the generic data-driven /connections/{id}/edit page is the right
landing place — the operator pastes a fresh PAT, saves, and the
update flows through the existing UpdateConfig path which clears
reauth_required on success.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a UI dead-end for GitLab connections that enter status=reauth_required by ensuring the Connections list displays an Edit link for gitlab connector rows. This aligns the list UI with the existing generic, data-driven edit page backed by connector Meta().SetupFields.

Changes:

  • Allow the Edit action link to appear for gitlab connector types in the connections table.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@murbard murbard merged commit a4aa46f into main Jun 19, 2026
1 check passed
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.

2 participants