Skip to content

AC-732 : offline update bug fixed#718

Merged
f4ww4z merged 1 commit intoopenmrs:masterfrom
dino-saurabh:offline_update_bug
Apr 18, 2020
Merged

AC-732 : offline update bug fixed#718
f4ww4z merged 1 commit intoopenmrs:masterfrom
dino-saurabh:offline_update_bug

Conversation

@dino-saurabh
Copy link
Collaborator

Description of what I changed

Provided a WorkManager Implementation for handling deferred updates to server after modification in the details of a patient.

  1. added support for WorkManager in app level Build.gradle work_version ="2.3.3"
  2. implemented worker for deferred update operations to the server.

Issue I worked on

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

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 marked this pull request as ready for review March 29, 2020 10:17
@dino-saurabh
Copy link
Collaborator Author

@f4ww4z please review the changes .

@codecov-io
Copy link

codecov-io commented Mar 31, 2020

Codecov Report

Merging #718 into master will decrease coverage by 0.08%.
The diff coverage is 1.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #718      +/-   ##
==========================================
- Coverage   11.90%   11.81%   -0.09%     
==========================================
  Files         236      237       +1     
  Lines       10502    10589      +87     
  Branches     1006     1015       +9     
==========================================
+ Hits         1250     1251       +1     
- Misses       9171     9257      +86     
  Partials       81       81              
Impacted Files Coverage Δ
...ivities/addeditpatient/AddEditPatientActivity.java 0.00% <0.00%> (ø)
...vities/addeditpatient/AddEditPatientPresenter.java 45.91% <0.00%> (ø)
...a/org/openmrs/mobile/api/workers/UpdateWorker.java 0.00% <0.00%> (ø)
...enmrs/mobile/api/repository/PatientRepository.java 12.82% <4.54%> (-0.30%) ⬇️

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 fb1d450...3e80289. Read the comment docs.

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.

@LuGO0 Please fix formatting errors, and see my other comments.

Provided a WorkManager Implementation for handling deferred updates to server after modification in the details of a patient.
@dino-saurabh dino-saurabh requested a review from f4ww4z April 10, 2020 20:32
@dino-saurabh
Copy link
Collaborator Author

@f4ww4z I have fixed all the formatting errors and made the requested changes please review .

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 b8f9c5e into openmrs:master Apr 18, 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.

5 participants