-
Notifications
You must be signed in to change notification settings - Fork 426
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
AC-742 refactoring code for better support for localization #723
Conversation
@f4ww4z Sir please review the strings I have added to the resources file ,after which I will add the translations for them!!. |
fe0b72d
to
c6b0f0e
Compare
openmrs-client/schemas/org.openmrs.mobile.databases.AppDatabase/1.json
Outdated
Show resolved
Hide resolved
c6b0f0e
to
ae3f78e
Compare
...s-client/src/main/java/org/openmrs/mobile/activities/dialog/CameraOrGalleryPickerDialog.java
Outdated
Show resolved
Hide resolved
...client/src/main/java/org/openmrs/mobile/activities/formdisplay/FormDisplayMainPresenter.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LuGO0 See my comments below.
openmrs-client/src/main/java/org/openmrs/mobile/activities/ACBaseActivity.java
Outdated
Show resolved
Hide resolved
openmrs-client/src/main/java/org/openmrs/mobile/activities/ACBaseActivity.java
Outdated
Show resolved
Hide resolved
openmrs-client/src/main/java/org/openmrs/mobile/activities/ACBaseActivity.java
Outdated
Show resolved
Hide resolved
openmrs-client/src/main/java/org/openmrs/mobile/activities/ACBaseActivity.java
Outdated
Show resolved
Hide resolved
...lient/src/main/java/org/openmrs/mobile/activities/addeditpatient/AddEditPatientActivity.java
Outdated
Show resolved
Hide resolved
openmrs-client/src/main/java/org/openmrs/mobile/services/ConceptDownloadService.java
Outdated
Show resolved
Hide resolved
...client/src/main/java/org/openmrs/mobile/utilities/ActiveAndroid/content/ContentProvider.java
Outdated
Show resolved
Hide resolved
...client/src/main/java/org/openmrs/mobile/utilities/ActiveAndroid/content/ContentProvider.java
Outdated
Show resolved
Hide resolved
623dedf
to
ad4e246
Compare
@f4ww4z can you please review again so that I can finally add translations to the added string resources!! |
@f4ww4z any updates on this ?? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LuGO0 Sorry for the delay, see my comments below.
openmrs-client/src/main/java/org/openmrs/mobile/activities/dashboard/DashboardFragment.java
Show resolved
Hide resolved
openmrs-client/src/main/java/org/openmrs/mobile/activities/dashboard/DashboardFragment.java
Outdated
Show resolved
Hide resolved
openmrs-client/src/main/java/org/openmrs/mobile/databases/entities/VisitEntity.java
Outdated
Show resolved
Hide resolved
openmrs-client/src/main/java/org/openmrs/mobile/databases/entities/ConceptEntity.java
Outdated
Show resolved
Hide resolved
openmrs-client/src/main/java/org/openmrs/mobile/services/ConceptDownloadService.java
Outdated
Show resolved
Hide resolved
0c21bed
to
f527260
Compare
some translations were tough I had to use google Translate XD !! |
The Hindi translations are appropriate. Make sure to add JIRA ticket to the title and resolve the ci errors. |
f527260
to
5ed26c7
Compare
merge conflicts resolved and the build works fine for me idk why the CI build fails |
You can click on CI details to see which particular test is failing and then run that test locally to check for exact error... You can run the entire presenter folder all together to see if all the tests are passing or not. |
@LuGO0 Please fix the merge conflicts and also take a look at these null pointer exceptions in the CI. |
@f4ww4z I am looking into these errors !! and will resolve conflicts |
@f4ww4z I found out that |
@LuGO0 Yes you need to change test files. You can either use mocks to mock the |
Okay @f4ww4z |
@rishabh-997 @f4ww4z I have removed all instances of |
the best I could think was a callback interface which would be implemented in the view and delegated down uptill the repository class or add a appContext to repository class. |
bdda201
to
67b0ee8
Compare
@rishabh-997 I coudnt test it on my phone how do we log in when demo server is down is there any way ?? |
Codecov Report
@@ Coverage Diff @@
## master #723 +/- ##
==========================================
- Coverage 11.84% 11.77% -0.07%
==========================================
Files 237 238 +1
Lines 10571 10641 +70
Branches 1018 1028 +10
==========================================
+ Hits 1252 1253 +1
- Misses 9237 9306 +69
Partials 82 82
Continue to review full report at Codecov.
|
You can use alternative server. |
thanks Rishabh Ill check the app now and then request review !! |
67b0ee8
to
a2c0bd1
Compare
@f4ww4z @rishabh-997 I have run all the tests locally now it works fine and the app also runs fine as far as I have tested please review !! |
...s-client/src/main/java/org/openmrs/mobile/activities/dialog/CameraOrGalleryPickerDialog.java
Outdated
Show resolved
Hide resolved
...client/src/main/java/org/openmrs/mobile/activities/formdisplay/FormDisplayMainPresenter.java
Show resolved
Hide resolved
openmrs-client/src/main/java/org/openmrs/mobile/activities/login/LoginFragment.java
Outdated
Show resolved
Hide resolved
openmrs-client/src/main/java/org/openmrs/mobile/api/RestServiceBuilder.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reviewed the Activities package, kindly address the above comments. Also pull recent changes and resolve merge conflicts.
Also, make sure to edit only the required files next time so we can be specific to the files that have to reviewed...
@rishabh-997 I was doing a code parsing for all the hard coded string and it did code reformatting I dont know how bt It was good so I let it that way. |
a2c0bd1
to
177cb49
Compare
@f4ww4z @rishabh-997 please further review it .Its getting difficult to merge conflicts with this PR and keep it upto date with master 😅 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LuGO0 Yes, fixing code formatting should be in another issue and now it's difficult to review your changes. Please address my comments and then we should be good to merge.
...client/src/main/java/org/openmrs/mobile/activities/formdisplay/FormDisplayMainPresenter.java
Show resolved
Hide resolved
import static org.junit.Assert.assertEquals; | ||
import static org.junit.Assert.assertNotSame; | ||
import static org.junit.Assert.assertNull; | ||
import static org.junit.Assert.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't change to star imports.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed this @f4ww4z Sir.
DateTime dateTime; | ||
String nullDateAsString = null; | ||
DateTimeFormatter formatter = DateTimeFormat | ||
@RunWith(PowerMockRunner.class) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to reindent this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done @f4ww4z Sir.
4d36a9f
to
7fe0821
Compare
@f4ww4z Sir I have made requested changes and will sqash changes once you approve of them!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @LuGO0 !
Description of what I changed
Issue I worked on
JIRA Issue: https://issues.openmrs.org/projects/AC/issues/AC-742
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.