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

Update project_insights code to account for multiple family external ids changes #986

Merged
merged 2 commits into from
Nov 4, 2024

Conversation

jmarshall
Copy link
Contributor

When on the final phase of merging #896, I did not exhaustively recheck the code base for newly arrived references to the soon-to-be-obsolete family.external_id field. Since that PR had been begun, this code had been merged and uses this field. And unluckily the project_insights test cases tested only the summary not the details, so the old field access was not detected via the unit tests.

Fix this instance to use the new separate family_external_id table, and add a details test case that just causes the relevant code to be run.

Note that as for pext.external_id and sext.external_id, this might benefit from being aggregated (or alternatively maybe joining also on fext.name = '') as at present multiple rows may be returned if an an item actually does have multiple external ids. But that can be adjusted as and when it actually occurs.

Note that as for pext.external_id and sext.external_id, this might
benefit from being aggregated (or maybe joining also on fext.name = '')
as at present multiple rows may be returned if an item actually does
have multiple external ids.
Invoke this in a test case; for now, we don't validate the results as
it returns [] as we haven't set up enough data to get a proper result.
Copy link

codecov bot commented Nov 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.75%. Comparing base (630ec68) to head (48d0554).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #986      +/-   ##
==========================================
+ Coverage   81.54%   81.75%   +0.21%     
==========================================
  Files         184      184              
  Lines       15965    15969       +4     
==========================================
+ Hits        13018    13056      +38     
+ Misses       2947     2913      -34     

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

Copy link

@ckrishk ckrishk left a comment

Choose a reason for hiding this comment

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

LGTM

@jmarshall jmarshall merged commit 57ebb91 into dev Nov 4, 2024
8 of 9 checks passed
@jmarshall jmarshall deleted the SET-243-family-extid branch November 4, 2024 23:39
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.

2 participants