-
Notifications
You must be signed in to change notification settings - Fork 499
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
Fix #3325: Domain layer mechanism for saving checkpoints. #3408
Conversation
…/oppia/oppia-android into add-controller-for-checkpointing
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.
Thanks @MaskedCarrot. I haven't been focusing as much on the specifics of the controllers or even code quality (though I've commented on things when I notice them), and instead have been focused on the actual data flow mechanisms. My remaining comments cover all of my remaining concerns; please address & respond to all of them (some older ones haven't yet been responded to by you--please make sure to respond to these also). Once all are addressed, I'm happy to approve this.
Also, please follow up in chat regarding the bit about not needing a DataProvider in ExplorationActivity if we should discuss that further.
app/src/main/java/org/oppia/android/app/home/recentlyplayed/RecentlyPlayedFragmentPresenter.kt
Show resolved
Hide resolved
@@ -26,6 +26,9 @@ android { | |||
|
|||
kotlinOptions { | |||
jvmTarget = JavaVersion.VERSION_1_8 | |||
freeCompilerArgs += [ | |||
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi" |
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.
Reminder to address this comment fully @prayutsu.
* @param shouldSavePartialProgress the boolean that indicates if partial progress has to be saved | ||
* for the current exploration | ||
* @return a one-time [LiveData] to observe whether initiating the play request succeeded. | ||
* The exploration may still ail to load, but this provides early-failure detection. |
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.
Typo in word 'fail'
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.
Do you mean these words: early-failure
?
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.
may still fail to load
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
domain/src/main/java/org/oppia/android/domain/exploration/ExplorationProgress.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/org/oppia/android/domain/exploration/ExplorationProgressController.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/org/oppia/android/domain/exploration/ExplorationProgressController.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/org/oppia/android/domain/exploration/ExplorationProgressController.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/org/oppia/android/domain/exploration/ExplorationProgressController.kt
Show resolved
Hide resolved
domain/src/main/java/org/oppia/android/domain/exploration/ExplorationProgressController.kt
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.
LGTM thanks!
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.
Thanks @MaskedCarrot. I have 4 nits and 1 reminder comment--please make sure to address all of these. The PR otherwise LGTM.
domain/src/main/java/org/oppia/android/domain/exploration/ExplorationProgressController.kt
Outdated
Show resolved
Hide resolved
* @param shouldSavePartialProgress the boolean that indicates if partial progress has to be saved | ||
* for the current exploration | ||
* @return a one-time [LiveData] to observe whether initiating the play request succeeded. | ||
* The exploration may still ail to load, but this provides early-failure detection. |
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.
may still fail to load
domain/src/main/java/org/oppia/android/domain/state/StateDeck.kt
Outdated
Show resolved
Hide resolved
@@ -26,6 +26,9 @@ android { | |||
|
|||
kotlinOptions { | |||
jvmTarget = JavaVersion.VERSION_1_8 | |||
freeCompilerArgs += [ | |||
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi" |
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.
@prayutsu reminder.
Disregarding the review as all the changes have been approved and we are running low on time.
Explanation
Fixes #3325
Checklist
Tests