Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not audit empty user #1672

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

do not audit empty user #1672

wants to merge 2 commits into from

Conversation

vangheem
Copy link
Contributor

Description

Do not audit when no user is provided.

How was this PR tested?

Describe how you tested this PR.

@vangheem vangheem requested a review from a team as a code owner December 15, 2023 13:41
Copy link

codecov bot commented Dec 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (40663e4) 81.34% compared to head (d53f1a3) 81.83%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1672      +/-   ##
==========================================
+ Coverage   81.34%   81.83%   +0.48%     
==========================================
  Files         332      332              
  Lines       19254    19288      +34     
==========================================
+ Hits        15663    15785     +122     
+ Misses       3591     3503      -88     
Flag Coverage Δ
ingest 69.14% <ø> (ø)
nucliadb 70.47% <100.00%> (+0.47%) ⬆️
reader 76.90% <ø> (ø)
sdk 40.52% <ø> (ø)
search 79.15% <100.00%> (+0.46%) ⬆️
standalone 81.40% <ø> (ø)
train 63.36% <ø> (ø)
utils 81.24% <ø> (-0.05%) ⬇️
writer 85.69% <ø> (+0.69%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@@ -316,6 +316,10 @@ async def maybe_audit_chat(
chat_history: List[ChatContextMessage],
query_context: List[str],
):
if user_id != "_INTERNAL_":
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be ==?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants