-
Notifications
You must be signed in to change notification settings - Fork 3
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
Flattening sets out of data_exporter output #113
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #113 +/- ##
===========================================
+ Coverage 72.47% 72.54% +0.07%
===========================================
Files 24 24
Lines 1544 1548 +4
===========================================
+ Hits 1119 1123 +4
Misses 425 425 ☔ View full report in Codecov by Sentry. |
27dbd48
to
ab00677
Compare
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.
A couple minor points in the _index_obj
function.
obj_type = obj[2].split("-")[0] | ||
if obj_type in IGNORED_TYPES: | ||
return | ||
obj_upa = generate_upa(item[OBJ_INFO]) |
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.
You already have obj
defined as that above, might as well use it!
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.
Doh!
def _index_obj( | ||
item: dict[str, Any], type_info: dict[str, Any], indexed_data: dict[str, Any] | ||
) -> None: | ||
"""Index by object ID and save the type information.""" |
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.
May want to note for posterity that this has the side effects of updating the input dicts.
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.
LGTM
Description of PR purpose/changes
Jira Ticket / Issue
Related Jira ticket: https://kbase-jira.atlassian.net/browse/DATAUP-X
DATAUP-69 Adds a PR template
)Testing Instructions
Dev Checklist:
StaticNarrativeImpl.py
,StaticNarrativeServer.py
, andcompile_report.json
to this PR.Updating Version and Release Notes (if applicable)