-
Notifications
You must be signed in to change notification settings - Fork 121
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
[WIP] Integrate TaskSequenceHandler with DataCollectionViewModel #2986
Conversation
# Conflicts: # ground/src/main/java/com/google/android/ground/ui/datacollection/TaskSequenceHandler.kt
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2986 +/- ##
============================================
- Coverage 63.43% 63.32% -0.12%
+ Complexity 1259 1248 -11
============================================
Files 269 269
Lines 6548 6525 -23
Branches 927 924 -3
============================================
- Hits 4154 4132 -22
+ Misses 1793 1791 -2
- Partials 601 602 +1
|
Let's hold this one until the latest release candidate is cut. |
The problem with current existing and proposed is that we aren't caching the value of sequence. It getting generated 5-10 times during each screen. Ideally, we only need to generate the sequence when data is updated. |
af94eb3
to
a511ecb
Compare
…value is emitted.
# Conflicts: # ground/src/main/java/com/google/android/ground/ui/datacollection/DataCollectionViewModel.kt # ground/src/main/java/com/google/android/ground/ui/datacollection/TaskSequenceHandler.kt # ground/src/test/java/com/google/android/ground/ui/datacollection/TaskSequenceHandlerTest.kt
# Conflicts: # ground/src/main/java/com/google/android/ground/ui/datacollection/TaskDataHandler.kt
# Conflicts: # app/src/main/java/com/google/android/ground/ui/datacollection/DataCollectionViewModel.kt # app/src/main/java/com/google/android/ground/ui/datacollection/tasks/AbstractTaskFragment.kt
# Conflicts: # app/src/main/java/com/google/android/ground/ui/datacollection/TaskSequenceHandler.kt # app/src/test/java/com/google/android/ground/ui/datacollection/TaskSequenceHandlerTest.kt
Closing in favour of #3008 |
Fixes #2958
@... PTAL?