Skip to content

Fix: rm role_id in user.go - #16771

Merged
wangq8 merged 1 commit into
infiniflow:mainfrom
Lynn-Inf:fix/go-db-model
Jul 9, 2026
Merged

wangq8 merged 1 commit into
infiniflow:mainfrom
Lynn-Inf:fix/go-db-model

Conversation

@Lynn-Inf

@Lynn-Inf Lynn-Inf commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

As title, fix create_user behavior in Go.

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. 🐞 bug Something isn't working, pull request that fix bug. labels Jul 9, 2026
@coderabbitai

coderabbitai Bot commented Jul 9, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The User struct in internal/entity/user.go was modified by removing the RoleID field and embedding BaseModel as a struct member instead.

Changes

User Entity Update

Layer / File(s) Summary
User struct field change
internal/entity/user.go
Removed the RoleID int64 field and embedded BaseModel in the User struct.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Poem

A tiny hop, a field set free,
RoleID gone, BaseModel's the key,
One small struct, refined with care,
This rabbit thumps approval there! 🐇

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title is concise and matches the main change: removing role_id from the Go user model.
Description check ✅ Passed The description includes the required Summary and states the PR fixes create_user behavior in Go.

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.

@Lynn-Inf Lynn-Inf added the ci Continue Integration label Jul 9, 2026
@Lynn-Inf
Lynn-Inf marked this pull request as draft July 9, 2026 06:42
@Lynn-Inf
Lynn-Inf marked this pull request as ready for review July 9, 2026 06:42
@Lynn-Inf
Lynn-Inf marked this pull request as draft July 9, 2026 06:43
@Lynn-Inf
Lynn-Inf marked this pull request as ready for review July 9, 2026 06:43
@wangq8
wangq8 merged commit 7fa2a0b into infiniflow:main Jul 9, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. 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