Skip to content

refactor(api): use sessionmaker in trigger provider service & dataset…#34774

Merged
asukaminato0721 merged 2 commits intolanggenius:mainfrom
carlos4s:refactor/sessionmaker-trigger-provider-rag
Apr 8, 2026
Merged

refactor(api): use sessionmaker in trigger provider service & dataset…#34774
asukaminato0721 merged 2 commits intolanggenius:mainfrom
carlos4s:refactor/sessionmaker-trigger-provider-rag

Conversation

@carlos4s
Copy link
Copy Markdown
Contributor

@carlos4s carlos4s commented Apr 8, 2026

Summary

  • Replace with Session(db.engine) + session.commit() with sessionmaker(bind=db.engine).begin()
    in trigger_provider_service (6 blocks) and dataset_retrieval (1 block)
  • Read-only session blocks left unchanged
  • Updated one test mock to match new sessionmaker pattern

Part of #24245

Test plan

  • ruff check passes
  • 122 dataset_retrieval tests pass
  • No trigger_provider_service test changes needed

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. refactor labels Apr 8, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Pyrefly Diff

No changes detected.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Pyrefly Diff

No changes detected.

@asukaminato0721 asukaminato0721 added this pull request to the merge queue Apr 8, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Apr 8, 2026
Merged via the queue into langgenius:main with commit 4c70bfa Apr 8, 2026
27 checks passed
@carlos4s
Copy link
Copy Markdown
Contributor Author

carlos4s commented Apr 9, 2026

@asukaminato0721
Thank you for merging my PRs.

@carlos4s carlos4s deleted the refactor/sessionmaker-trigger-provider-rag branch April 9, 2026 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer refactor size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants