-
-
Notifications
You must be signed in to change notification settings - Fork 45
Master to connect #2979
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
Closed
Closed
Master to connect #2979
Changes from all commits
Commits
Show all changes
129 commits
Select commit
Hold shift + click to select a range
2518b23
Adds a worker task to prime entity cache
shubham1g5 878c09c
Schedule prime cache task after 412 and on initializing user session
shubham1g5 c1e6a35
Set up progress indicator on entity list screen
shubham1g5 aa616b4
-pr review bug fixes
pm-dimagi 9aa1220
Creates a Android specific async factory to bind to any existing prim…
shubham1g5 c4a68a6
Move methods to schedule/cancel cache work to cache helper
shubham1g5 d78960d
Re-schedule cancelled work when expediting a detail sepcific cache
shubham1g5 dd05545
Improve progress tracking by providing information on individual enti…
shubham1g5 acd3aa6
Handle for new cache config while initiating entity factory
shubham1g5 7122c92
Cancellation handling
shubham1g5 63743aa
Always clear state after prime cache worker run
shubham1g5 ede6caf
correct eval context by including command id
shubham1g5 f145dd6
Fixes progress tracking plus tracking the live worker in async task
shubham1g5 8b53cbf
Uses datum id to track progress instead of detail as a detail can pot…
shubham1g5 1e8dfd3
Thread safety
shubham1g5 32d554e
lint
shubham1g5 918d1af
Merge branch 'master' into dv/connectid_foundation
OrangeAndGreen 90b0c96
Make clear distinction in between old and new cache and index switch
shubham1g5 66cf541
- retrofit changes for api call
pm-dimagi 4f42de2
-bug fix for language change
pm-dimagi ab5d325
Priming cache for normal and sort values for the detail fields marked…
shubham1g5 6c9be03
Tweaks
shubham1g5 dbbcfd4
fixes test dependent on work manager init
shubham1g5 a91d8ab
-foundation pr review changes
pm-dimagi f51fc58
- making clint id as constant value
pm-dimagi c7fd1ec
-making dynamic url builder
pm-dimagi b1e4eff
-coderabbit review changes
pm-dimagi 15cf20a
use a % indicator for progress
shubham1g5 7198161
Adds init validation for new android async factory
shubham1g5 d793b9a
-coderabbit review changes
pm-dimagi aa65ba4
Bind PrimeEntityCacheHelper to CommCareApp lifecycle
shubham1g5 1473e3e
putting non null check on job records
pm-dimagi 6d0dedb
-removed null safety
pm-dimagi f207335
Update pull_request_template.md
shubham1g5 c9661f7
lint
shubham1g5 cc38e15
-suggested changes from coderabitai
pm-dimagi 50b8a51
-rid of local paraphrase
pm-dimagi 66ed0dc
-jobs tore changes and coderabbit changes
pm-dimagi 917639f
-build break
pm-dimagi 7860093
Only provide progress updates for new cache config
shubham1g5 1d37be1
-pr reviews related to models
pm-dimagi c49c22a
-pr reviews comments changes
pm-dimagi 55c8b2b
fixes cache priming bugs
shubham1g5 5726518
Use livedata/stateflow based observers for traching prime cache progr…
shubham1g5 d6dcfed
Lazy loading tweaks, introduces a flag to skip lazy loading in backgr…
shubham1g5 b24d580
Better status message
shubham1g5 6deec22
rename skipLazyLoad -> inBackground, better logic to calculate uncach…
shubham1g5 9c88874
-pr review requested changes
pm-dimagi 2949559
-pr review
pm-dimagi 84b2b99
return null when date is not confirmed
f1c9a26
optimize -> cache_enabled
shubham1g5 be1e7f3
return null when secondary phone is not verified
f75ba1f
handle recover db at place at first insatnce only
0bc14c9
added logs for on internet is available
1fdb815
Lint
avazirna b060e6f
Set case detail page title
avazirna 8323e54
Merge pull request #2946 from dimagi/update-pr-template
shubham1g5 1279ed5
-added field for the update of the job
pm-dimagi fe9337c
Remove media permissions
avazirna ef38792
-jobstore manager store job logic update
pm-dimagi 7a8288a
-nit issue resolved
pm-dimagi 81e47cb
Merge branch 'master' of https://github.com/dimagi/commcare-android i…
pm-dimagi 6b3cc8d
-test case issue resolved
pm-dimagi e8fddc6
-request change by dave
pm-dimagi c606dca
-updated the code for store payment units and modules
pm-dimagi 5b46b0c
-updated the code for store jobs and refactored the comparing unit
pm-dimagi 98e3291
-fixed the problem of storing calue in db
pm-dimagi cde4e2d
-fixed issue of storing app info
pm-dimagi 7b41370
-nit issue fixed
pm-dimagi beb545a
-removed sorting query from sql storage
pm-dimagi dfac1f9
-lint issue
pm-dimagi ec417d8
-lint issue and job store manger db transaction synchronus
pm-dimagi f2eca90
-renaming of the function name getJobs
pm-dimagi ed588bd
-remove unnecessary use of lock
pm-dimagi 6f1e556
-remove unnecessary use of lock in complete file
pm-dimagi 3fca48f
-removed unused import
pm-dimagi d3f29f1
Merge pull request #2847 from dimagi/dv/connectid_foundation
OrangeAndGreen b112546
Bump AndroidX Appcompat to 1.7.0
avazirna af1b934
Use ACTION_PICK_IMAGES when appropriate component is present
avazirna cfbf901
Enable automatic installation of backported photo picker
avazirna 2333553
Merge branch 'master' into remove-media-permissions
avazirna 14b063e
Nit
avazirna bab015c
Refactor inBackground as a constructor param to entity factory
shubham1g5 7530f94
reword progress message
shubham1g5 99329d3
uniformly use getCurrentAppId() when dealing with work manager
shubham1g5 89a054f
key prime cache request with app id
shubham1g5 0e7d208
Merge branch 'master' into primeCacheAheadOfTime
shubham1g5 b73d40e
Adds is_dirty and is_shallow columns to entity cache table and insert…
shubham1g5 bd45ea8
abstract to getAllOwners [no op refactor]
shubham1g5 bcf637c
Adds shallow records to cache and propogate them as dirty records in …
shubham1g5 630ec83
blocks cache priming to process shallow records as the first thing
shubham1g5 1a985d8
Test to verify cache invalidation
shubham1g5 1fd858f
rename method
shubham1g5 1f04887
schedule entity cache invalidation task after restore
shubham1g5 137251a
error handling
shubham1g5 6b57655
fix for workmanager initialization issues in test
shubham1g5 b6668b9
Skip cache invalidation for demo user to get past a weird robolectric…
shubham1g5 25382c7
Let parent view align children views
avazirna a0db6a6
Increase progress bar vertical padding
avazirna be42905
removed un-necessary demo user check and adds a more useful check on …
shubham1g5 867c254
schedule entity cache invalidation after form upload has finished, ch…
shubham1g5 78f2e5d
correct transaction calls
shubham1g5 4d1e04b
get db lock before processing shallow records
shubham1g5 fdcabfc
Avoid un-ncessary String conversion
shubham1g5 a3bd499
Correct method access, minor lint cleanup
shubham1g5 23836b6
use bulk query method
shubham1g5 190cf05
Better method names and docstring
shubham1g5 9e0ccf0
Downgrade AndroidX AppCompat to 1.3.0
avazirna 329600b
Adjust font size
avazirna 37e9e45
Downgrade AndroidX AppCompat to 1.2.0
avazirna 876f0e7
Update navigation arrows
avazirna 0c7268f
Merge pull request #2955 from dimagi/cacheExpirationChanges
shubham1g5 d1c9089
Only observe cache worker when caching is on
shubham1g5 e27a912
Correct bulk fetch of records ids
shubham1g5 b533cc6
Merge pull request #2928 from dimagi/primeCacheAheadOfTime
shubham1g5 df0c184
Merge pull request #2963 from dimagi/remove-media-permissions
avazirna 2cabe0a
Merge pull request #2969 from dimagi/minor-ui-corrections
avazirna c97a152
Merge pull request #2953 from dimagi/fix-case-detail-tabs
avazirna e0f8beb
Use LocationManager when in airplane mode
avazirna 635aa5b
Improve messaging when capture is cancelled
avazirna 61ac361
Handle HTTP 403 response
avazirna 309db47
Add user message about lack of permission
avazirna 8ba5745
Improve action wording
avazirna 5e35022
Merge pull request #2975 from dimagi/handle-failed-login-due-to-insuf…
avazirna 934c13f
Merge pull request #2974 from dimagi/fix-location-capture-when-in-air…
avazirna c927ed0
Remove directly bundled libraries
avazirna 21aa424
Bump LibSimprints to 2024.2.2
avazirna 7cd97d3
Update Kujaku transitive dependencies
avazirna 475f469
Merge pull request #2981 from dimagi/address-directly-bundled-depende…
avazirna File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,29 +1,41 @@ | ||
| ## Summary | ||
| ## Product Description | ||
| <!-- | ||
| Delete this section if the PR does not contain any visible changes. | ||
| For non-invisible changes, describe the user-facing effects. | ||
| --> | ||
|
|
||
| ## Technical Summary | ||
| <!-- | ||
| Provide a link to the ticket or document which prompted this change, | ||
| Describe the rationale and design decisions. | ||
| - Provide a link to the ticket or document which prompted this change. | ||
| - Describe the rationale and design decisions. | ||
| --> | ||
|
|
||
| ## Feature Flag | ||
| <!-- If this is specific to a feature flag, which one? --> | ||
|
|
||
| ## Product Description | ||
| <!-- For non-invisible changes, describe user-facing effects. Would be good to add screenshots/videos for any major user facing changes --> | ||
| ## Safety Assurance | ||
|
|
||
| ## PR Checklist | ||
| ### Safety story | ||
| <!-- | ||
| Describe: | ||
| - how you became confident in this change (such as local testing). | ||
| - why the change is inherently safe, and/or plans to limit the defect blast radius. | ||
|
|
||
| - [ ] If I think the PR is high risk, "High Risk" label is set | ||
| - [ ] I have confidence that this PR will not introduce a regression for the reasons below | ||
| - [ ] Do we need to enhance manual QA test coverage ? If yes, "QA Note" label is set correctly | ||
| - [ ] Does the PR introduce any major changes worth communicating ? If yes, "Release Note" label is set and a "Release Note" is specified in PR description. | ||
| In particular consider how existing data may be impacted by this change. | ||
| --> | ||
|
|
||
| ### Automated test coverage | ||
| <!-- Identify the related test coverage and the conditions it will catch --> | ||
|
|
||
| <!-- Identify the related test coverage and the tests it would catch --> | ||
| ### QA Plan | ||
| <!-- | ||
| - Describe QA plan that (along with test coverage) proves that this PR is regression free. | ||
| - Link to QA Ticket | ||
| --> | ||
|
|
||
| ## Labels and Review | ||
|
|
||
| ### Safety story | ||
| <!-- | ||
| Describe any other pieces to the safety story including | ||
| local testing, why the change is inherently safe, and/or plans to limit the blast radius of a defect. | ||
| --> | ||
| - [ ] Do we need to enhance the manual QA test coverage ? If yes, the "QA Note" label is set correctly | ||
| - [ ] Does the PR introduce any major changes worth communicating ? If yes, the "Release Note" label is set and a "Release Note" is specified in PR description. | ||
| - [ ] Risk label is set correctly | ||
| - [ ] The set of people pinged as reviewers is appropriate for the level of risk of the change |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+28.1 KB
(4900%)
app/res/drawable-ldpi/ic_blue_backward.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+28.3 KB
(10000%)
app/res/drawable-ldpi/icon_chevron_left_brand.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+27.5 KB
(10000%)
app/res/drawable-ldpi/icon_chevron_right_brand.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+28.3 KB
(3900%)
app/res/drawable-mdpi/ic_blue_backward.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+27.4 KB
(9000%)
app/res/drawable-mdpi/icon_chevron_left_brand.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+28.1 KB
(9300%)
app/res/drawable-mdpi/icon_chevron_right_brand.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+29.2 KB
(1900%)
app/res/drawable-xhdpi/ic_blue_backward.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+27 KB
(3200%)
app/res/drawable-xhdpi/icon_chevron_left_brand.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+27 KB
(3300%)
app/res/drawable-xhdpi/icon_chevron_right_brand.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+29.1 KB
(4300%)
app/res/drawable-xxhdpi/ic_blue_backward.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+27 KB
(3300%)
app/res/drawable/icon_auto_advance_arrow.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+27.9 KB
(2300%)
app/res/drawable/icon_chevron_left_brand.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+27.9 KB
(5200%)
app/res/drawable/icon_chevron_left_primary.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+31.6 KB
(2600%)
app/res/drawable/icon_chevron_right_brand.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+28.7 KB
(5500%)
app/res/drawable/icon_chevron_right_primary.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Resolve conflicting JSON library dependencies.
You've included two different versions of the same JSON library as test dependencies:
org.json:json:20231013(line 46)org.json:json:20140107(line 48)This could lead to unpredictable behavior in tests depending on which version gets loaded first.
testImplementation 'org.json:json:20231013' -testImplementation 'org.json:json:20140107'Choose the newer version and remove the older one, unless there's a specific requirement for the older version.
📝 Committable suggestion