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

Renamed fields for API's variantdata requests #137

Merged
merged 7 commits into from
Oct 17, 2024

Conversation

Shettland
Copy link
Member

As per the title, this PR includes some field renaming that was leading to errors when trying to update variant data through API requests. This change had to be done because the input file (long_table.json) was reformatted and could not be parsed the same way as before.

@@ -10,7 +10,7 @@ def create_or_get_filter_obj(filter_value):
if core.models.Filter.objects.filter(filter__iexact=filter_value).exists():
return core.models.Filter.objects.filter(filter__iexact=filter_value).last()
filter_serializer = core.api.serializers.CreateFilterSerializer(
data={"filter": filter_value}
Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer this in low case, is it possible?

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe we can apply lowercase to all the fields prior to sending the request

@luissian luissian merged commit fc582f0 into BU-ISCIII:develop Oct 17, 2024
2 checks passed
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.

3 participants