Skip to content

feat[go]: add router for connectors/<connector_id> PATCH - #16358

Merged
JinHai-CN merged 2 commits into
infiniflow:mainfrom
Haruko386:main
Jun 25, 2026
Merged

JinHai-CN merged 2 commits into
infiniflow:mainfrom
Haruko386:main

Conversation

@Haruko386

Copy link
Copy Markdown
Member

What problem does this PR solve?

As title

/api/v1/connectors/<connector_id> PATCH was implemented in #15512

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • Refactoring

@Haruko386 Haruko386 added the ci Continue Integration label Jun 25, 2026
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 25, 2026
@Haruko386
Haruko386 marked this pull request as draft June 25, 2026 09:15
@Haruko386
Haruko386 marked this pull request as ready for review June 25, 2026 09:15
@coderabbitai

coderabbitai Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 931f8ac8-9ba2-4df0-ad3c-3842cf715625

📥 Commits

Reviewing files that changed from the base of the PR and between 6e7aa75 and 7795948.

📒 Files selected for processing (1)
  • internal/router/router.go

📝 Walkthrough

Walkthrough

The router adds a PATCH endpoint for /v1/connectors/:connector_id that calls the connector update handler. No other routing behavior changes.

Changes

Connector route update

Layer / File(s) Summary
PATCH connector route
internal/router/router.go
PATCH /:connector_id is registered in the /v1/connectors group and routed to r.connectorHandler.UpdateConnector.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

A tiny hop, a PATCH appears,
🐇 through connector lanes and rabbit ears.
One route more, the burrow sings,
update hops on simple springs.
Soft nose twitch, the path is clear.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately describes the new PATCH router for connectors by connector_id.
Description check ✅ Passed It includes the required problem statement and type-of-change section, though the problem context is terse.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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.

@codecov

codecov Bot commented Jun 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.16%. Comparing base (06d45c5) to head (7795948).
⚠️ Report is 22 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #16358   +/-   ##
=======================================
  Coverage   93.16%   93.16%           
=======================================
  Files          10       10           
  Lines         717      717           
  Branches      118      118           
=======================================
  Hits          668      668           
  Misses         29       29           
  Partials       20       20           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JinHai-CN
JinHai-CN merged commit 43b9622 into infiniflow:main Jun 25, 2026
8 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants