Skip to content

AC-826 Added repository abstraction for matchingPatients package#797

Merged
f4ww4z merged 2 commits intoopenmrs:masterfrom
dino-saurabh:AC-826
Aug 6, 2020
Merged

AC-826 Added repository abstraction for matchingPatients package#797
f4ww4z merged 2 commits intoopenmrs:masterfrom
dino-saurabh:AC-826

Conversation

@dino-saurabh
Copy link
Collaborator

@dino-saurabh dino-saurabh commented Aug 4, 2020

Description of what I changed

  1. added repository abstraction for matching patients package
  2. added string translations
  3. addressed previous commit suggestions
  4. reformatted code and refactored package name suitably.

Issue I worked on

JIRA Issue: https://issues.openmrs.org/browse/AC-826

Checklist: I completed these to help reviewers :)

  • My pull request only contains ONE single commit
    (the number above, next to the 'Commits' tab is 1).
  • I have added tests to cover my changes. (If you refactored
    existing code that was well tested you do not have to add tests)
  • All new and existing tests passed.
  • My pull request is based on the latest changes of the master branch.

@dino-saurabh dino-saurabh changed the title [WIP] AC-826 Added repository layer abstraction AC-826 Added repository layer abstraction Aug 5, 2020
@dino-saurabh dino-saurabh marked this pull request as ready for review August 5, 2020 08:23
@codecov-commenter
Copy link

Codecov Report

Merging #797 into master will increase coverage by 0.25%.
The diff coverage is 32.54%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #797      +/-   ##
==========================================
+ Coverage   13.70%   13.95%   +0.25%     
==========================================
  Files         228      229       +1     
  Lines        9289     9329      +40     
  Branches      897      903       +6     
==========================================
+ Hits         1273     1302      +29     
- Misses       7917     7921       +4     
- Partials       99      106       +7     
Impacted Files Coverage Δ
...ivities/addeditpatient/AddEditPatientFragment.java 0.00% <0.00%> (ø)
...activities/formadmission/FormAdmissionPresenter.kt 25.00% <ø> (ø)
...tivities/formdisplay/FormDisplayMainPresenter.java 0.00% <ø> (ø)
...patients/LastViewedPatientRecyclerViewAdapter.java 0.00% <ø> (ø)
...lastviewedpatients/LastViewedPatientsActivity.java 0.00% <0.00%> (ø)
...penmrs/mobile/activities/login/LoginPresenter.java 65.49% <ø> (ø)
...oard/allergy/PatientDashboardAllergyPresenter.java 36.66% <ø> (ø)
...oard/details/PatientDashboardDetailsPresenter.java 67.74% <ø> (ø)
...hboard/visits/PatientDashboardVisitsPresenter.java 78.94% <ø> (ø)
...hboard/vitals/PatientDashboardVitalsPresenter.java 80.55% <ø> (ø)
... and 23 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update feb5c00...9fc065b. Read the comment docs.

@@ -0,0 +1,29 @@
/*
* The contents of this file are subject to the OpenMRS Public License
* Version 1.0 (the "License"); you may not use this file except in
Copy link
Collaborator Author

@dino-saurabh dino-saurabh Aug 5, 2020

Choose a reason for hiding this comment

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

@f4ww4z Sir I dint convert this to kotlin because there were some problems in the kotlin java introperability due to default keyword.

@dino-saurabh
Copy link
Collaborator Author

@f4ww4z @rishabh-997 review again I fixed the tests they were wrong a bit.

@f4ww4z f4ww4z changed the title AC-826 Added repository layer abstraction AC-826 Added repository abstraction for matchingPatients package Aug 6, 2020
Copy link
Collaborator

@f4ww4z f4ww4z left a comment

Choose a reason for hiding this comment

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

LGTM @LuGO0

@f4ww4z f4ww4z merged commit 423695b into openmrs:master Aug 6, 2020
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.

4 participants