Skip to content

Fix mismatch between epid and esid in create_test_subset #815

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

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

vivbak
Copy link
Contributor

@vivbak vivbak commented Jun 11, 2024

Closes #814

When the sample_to_sg_attribute_map is created, the keys are created like so:

exid_old_sid = (s['participant']['externalId'], s['id'])

When the code later references this map, it creates the keys like so

seid_sid_key = (new_sample['externalId'], old_sid)

Using the externalID from the participant when setting up the map, and using the externalID from the sample when accessing it later.

We often use the same name for both, so this can go relatively unnoticed in production.

@vivbak vivbak requested a review from michael-harper June 11, 2024 02:54
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.30%. Comparing base (b8121aa) to head (9b912d5).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #815   +/-   ##
=======================================
  Coverage   77.30%   77.30%           
=======================================
  Files         157      157           
  Lines       13010    13010           
=======================================
  Hits        10057    10057           
  Misses       2953     2953           

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

Copy link
Contributor

@michael-harper michael-harper left a comment

Choose a reason for hiding this comment

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

Ooo annoying how this went unnoticed, looks like using sample external ID is more robust way to approach 👏

@vivbak vivbak merged commit f177019 into dev Jun 12, 2024
5 checks passed
@vivbak vivbak deleted the fix-subset-script-pid branch June 12, 2024 23:14
@jmarshall jmarshall mentioned this pull request Jun 13, 2024
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.

Create Test Subset Fails When epid != esid
3 participants