Skip to content

refactor: pass db.session as parameter in tags.py - #38415

Closed
BlueLi66 wants to merge 2 commits into
langgenius:mainfrom
BlueLi66:fix/db-session-as-parameter-tags
Closed

BlueLi66 wants to merge 2 commits into
langgenius:mainfrom
BlueLi66:fix/db-session-as-parameter-tags

Conversation

@BlueLi66

@BlueLi66 BlueLi66 commented Jul 4, 2026 •

Copy link
Copy Markdown

Pass db.session as parameter to _enforce_snippet_tag_rbac_by_tag_id().

#37403

@BlueLi66
BlueLi66 requested a review from QuantumGhost as a code owner July 4, 2026 09:08
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. refactor labels Jul 4, 2026
@asukaminato0721
asukaminato0721 enabled auto-merge July 4, 2026 17:10
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 52.36% 52.36% 0.00%
Strict coverage 51.88% 51.88% 0.00%
Typed symbols 32,053 32,053 0
Untyped symbols 29,435 29,435 0
Modules 2973 2973 0



def _enforce_snippet_tag_rbac_by_tag_id(tag_id: str) -> None:
def _enforce_snippet_tag_rbac_by_tag_id(tag_id: str, *, session: scoped_session) -> None:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could we accept a concrete Session here instead of scoped_session and pass db.session() from the controller ?

@crazywoola

Copy link
Copy Markdown
Member

Hi @BlueLi66, thanks for opening this pull request.

Why this is being closed

The linked issue set has multiple open pull requests. Under the duplicate-PR rule, pull requests from the issue author are ranked first, then creation time is used as the FIFO tie-breaker. The retained result for this overlap is: issue #37403 -> PR #37716. This pull request is therefore being closed as a remaining duplicate.

Next steps

Please coordinate on the retained pull request if you would like to contribute further. Thank you for understanding.

@crazywoola crazywoola closed this Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants