Repository navigation
fix(dao): use context-aware methods for database operations in MetaDAO - #23074
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #23074 +/- ##
=======================================
Coverage 66.02% 66.02%
=======================================
Files 1074 1074
Lines 116677 116677
Branches 2941 2941
=======================================
+ Hits 77035 77036 +1
- Misses 35370 35371 +1
+ Partials 4272 4270 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR updates the OIDC MetaDAO implementation to use context-aware Beego ORM methods so request cancellations/timeouts can propagate down to database operations, addressing connection starvation concerns reported in #22653.
Changes:
- Use
RawWithCtxfor raw SQL execution inDeleteByUserIDandGetByUsername. - Use
UpdateWithCtx,InsertWithCtx, andAllWithCtxfor update/insert/list operations to propagatectx.
đź’ˇ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@mxab Please rebase the main branch then I can merge this PR. |
Signed-off-by: Max Froehlich <max.froehlich@serviceware.de>
Head branch was pushed to by a user without write access
|
done |
… in MetaDAO Upstream-PR: goharbor/harbor#23074 Upstream-Author: @mxab Signed-off-by: Prasanth Baskar <bupdprasanth@gmail.com>
… in MetaDAO Upstream-PR: goharbor/harbor#23074 Upstream-Author: @mxab Signed-off-by: Prasanth Baskar <bupdprasanth@gmail.com>
… in MetaDAO Upstream-PR: goharbor/harbor#23074 Upstream-Author: @mxab Signed-off-by: Prasanth Baskar <bupdprasanth@gmail.com>
… in MetaDAO Upstream-PR: goharbor/harbor#23074 Upstream-Author: @mxab Signed-off-by: Prasanth Baskar <bupdprasanth@gmail.com> (cherry picked from commit cd6ddfe) Signed-off-by: Prasanth Baskar <bupdprasanth@gmail.com>
Uses the context-aware methods of the ORM so cancel/timeouts can be detected by the underlying ORM provider
Fixes #22653
Please indicate you've done the following: