-
Notifications
You must be signed in to change notification settings - Fork 45
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
Confidence score changes for DB #523
Confidence score changes for DB #523
Conversation
self._get_snippet_details( | ||
topic_data["snippetIds"], app_data["owner"] | ||
) | ||
for entity, entity_data in app_data.get("docEntities").items(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if app_data.get("docEntities") is None this line will throw an error
if not findings_exists: | ||
logger.debug("finding not exist") | ||
findings = { | ||
"appName": app_data["name"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name , count , and snippetId, documents, owner will always have all these values present. any scenario when they will be missing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These values will always be there
total_snippet_count += findings["snippetCount"] | ||
shallow_copy = findings.copy() | ||
self.loader_findings_list.append(shallow_copy) | ||
del findings["snippets"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will snippet be always there any scenario where it will not be present
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will be always there, as we are creating findings
in line no 103
Added confidence score functionality for apps with storage as DB