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

Add list and detail serializer patient external serializer #1539

Conversation

GeekGawd
Copy link
Contributor

@GeekGawd GeekGawd commented Aug 21, 2023

Proposed Changes

  • Add list and detaiil serialiser to patient_external.py
  • Add test cases to test the changes.

Associated Issue

Merge Checklist

  • Tests added/fixed
  • Linting Complete

Only PR's with test cases included and passing lint and test pipelines will be reviewed

@coronasafe/care-backend-maintainers @coronasafe/care-backend-admins

@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

Attention: Patch coverage is 33.33333% with 42 lines in your changes are missing coverage. Please review.

Project coverage is 59.01%. Comparing base (2829067) to head (f138a04).
Report is 247 commits behind head on develop.

Files Patch % Lines
.../facility/api/serializers/patient_external_test.py 30.50% 41 Missing ⚠️
...are/facility/api/viewsets/patient_external_test.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1539      +/-   ##
===========================================
- Coverage    59.11%   59.01%   -0.10%     
===========================================
  Files          207      207              
  Lines        11264    11325      +61     
  Branches      1599     1613      +14     
===========================================
+ Hits          6659     6684      +25     
- Misses        4405     4437      +32     
- Partials       200      204       +4     

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

Comment on lines 14 to 18
class PatientExternalTestSerializer(serializers.ModelSerializer):
# TODO: Remove when #5492 is completed and merged
ward_object = WardSerializer(source="ward", read_only=True)
local_body_object = LocalBodySerializer(source="local_body", read_only=True)
district_object = DistrictSerializer(source="district", read_only=True)
Copy link
Member

Choose a reason for hiding this comment

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

remove this serializer

jwcrypto==1.5.0 # https://github.com/latchset/jwcrypto/releases
pycryptodome==3.16.0
pycryptodomex==3.16.0
Faker==19.3.0
Copy link
Member

Choose a reason for hiding this comment

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

we have switched to pipenv
run pipenv install --dev faker

@sainak sainak added the to-be-closed PRs with no updates in the last 3 weeks will be closed label May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to-be-closed PRs with no updates in the last 3 weeks will be closed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants