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

903 - Update Test Bucket to 2024-09-10 #908

Merged
merged 4 commits into from
Sep 27, 2024

Conversation

avrohomgottlieb
Copy link
Contributor

@avrohomgottlieb avrohomgottlieb commented Sep 24, 2024

Issue Number

Closes #903

Purpose/Implementation Notes

This PR updates the test bucket from scpca-portal-public-test-inputs/2024-07-19/ to scpca-portal-public-test-inputs/2024-09-10/.

In order to accommodate the change in how the Project attribute diagnoses is handled, a PROJECT_METADATA_VALUES_TRANSFORMS constant and transform_values helper function were added to metadata_file.

Values in the expected_values/ files were also updated in order to match any changed values in the metadata files in the new test bucket.

Types of changes

What types of changes does your code introduce?

  • Refactor (addresses code organization and design mentioned in corresponding issue)

Functional tests

N/A

Checklist

  • Lint and unit tests pass locally with my changes

Screenshots

N/A

@avrohomgottlieb
Copy link
Contributor Author

avrohomgottlieb commented Sep 24, 2024

@davidsmejia
This PR is not very controversial, the one thing to discuss is the handling of the way that we update Project.diagnoses.
In light of https://github.com/AlexsLemonade/ScPCA-admin/pull/958/files, the diagnoses value in the projects_metadata.csv file is now correct. As such, we can now use it to populate Project.diagnoses, instead of what we used to do, which was to throw that value away and to collect the value from the aggregation of sample diagnosis values.

I proposed transforming the semi-colon separated list which we get in the project_metadatas.csv file to our intended comma (and space) separated output inside of metadata_file, where we're already doing key transformations, but we can discuss other options as well. The direction should be that this value should be updated in Project::get_from_dict, like all other values pulled from the projects_metadata.csv, and not to be calculated in Project::update_project_aggregate_properties at the end.

@avrohomgottlieb avrohomgottlieb marked this pull request as ready for review September 24, 2024 21:05
@avrohomgottlieb avrohomgottlieb linked an issue Sep 25, 2024 that may be closed by this pull request
@avrohomgottlieb avrohomgottlieb changed the title 903 - Update test bucket to 2024-09-10 903 - Update Test Bucket to 2024-09-10 Sep 25, 2024
Copy link
Contributor

@davidsmejia davidsmejia left a comment

Choose a reason for hiding this comment

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

LGTM

I do have some reservations about changing the source of truth for diseases on a project away from the aggregate evaluation. Mainly because I am unsure about possible states where the actual samples and the aggregate value from projects_metadata.csv may no longer be in sync.

This is not a problem and only a concern so I will open an issue to discuss this along with some other changes to Project::update_project_aggregate_properties for improving code reliability / consistency.

@avrohomgottlieb
Copy link
Contributor Author

This is not a problem and only a concern so I will open an issue to discuss this along with some other changes to Project::update_project_aggregate_properties for improving code reliability / consistency.

Sounds good. I opened up an issue related to aggregate value updating a few weeks ago to have as a place holder until we would devise a plan of attack for this. I'll attach it here for reference.

#880

@avrohomgottlieb avrohomgottlieb merged commit 7208b49 into feature/loader Sep 27, 2024
5 checks passed
@avrohomgottlieb avrohomgottlieb deleted the avrohom/903-update-test-bucket branch September 27, 2024 20:28
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.

Update test bucket to 2024-09-10
2 participants