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

Fixed abha linking issue #2456

Merged
merged 3 commits into from
Sep 17, 2024
Merged

Fixed abha linking issue #2456

merged 3 commits into from
Sep 17, 2024

Conversation

khavinshankar
Copy link
Member

@khavinshankar khavinshankar commented Sep 17, 2024

Proposed Changes

  • Fixed 404 issue in get abha_number.
  • Added link_patient api

Associated Issue

@ohcnetwork/care-backend-maintainers @ohcnetwork/care-backend-admins

@khavinshankar khavinshankar requested a review from a team as a code owner September 17, 2024 01:50
Copy link

codecov bot commented Sep 17, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 18 lines in your changes missing coverage. Please review.

Project coverage is 64.19%. Comparing base (fa64e18) to head (a5d936b).
Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
care/abdm/api/viewsets/healthid.py 15.00% 17 Missing ⚠️
care/abdm/api/viewsets/abha_number.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2456      +/-   ##
===========================================
- Coverage    64.26%   64.19%   -0.07%     
===========================================
  Files          240      240              
  Lines        13549    13572      +23     
  Branches      1943     1950       +7     
===========================================
+ Hits          8707     8713       +6     
- Misses        4484     4501      +17     
  Partials       358      358              

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

@khavinshankar khavinshankar changed the title Fixed 404 issue in get abha_number Fixed abha linking issue Sep 17, 2024
@nihal467
Copy link
Member

LGTM

@@ -28,7 +28,7 @@ def get_object(self):
Q(abha_number=id) | Q(health_id=id) | Q(patient__external_id=id)
).first()

if not instance or get_patient_queryset(self.request.user).contains(
if not instance or not get_patient_queryset(self.request.user).contains(
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a relevant test case for this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

Currently, we don't have any tests for ABDM, opened up an issue (ohcnetwork/care_abdm#12) to track it.

@gigincg gigincg merged commit 0a630f1 into develop Sep 17, 2024
8 of 10 checks passed
@gigincg gigincg deleted the khavinshankar-patch-1 branch September 17, 2024 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ABDM profile card and care context is missing in staging
6 participants