-
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 #3319: Create controller to save and retrieve checkpoints #3337
Conversation
...oppia/android/domain/exploration/lightweightcheckpointing/ExplorationCheckpointController.kt
Show resolved
Hide resolved
...oppia/android/domain/exploration/lightweightcheckpointing/ExplorationCheckpointController.kt
Show resolved
Hide resolved
...va/org/oppia/android/domain/exploration/lightweightcheckpointing/ExplorationStorageModule.kt
Show resolved
Hide resolved
...oppia/android/domain/exploration/lightweightcheckpointing/ExplorationCheckpointController.kt
Show resolved
Hide resolved
) { | ||
|
||
/** Different stages in which the exploration checkpoint database can exist. */ | ||
enum class ExplorationCheckpointDatabaseState { |
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.
@BenHenning @rt4914 The enum class here and below and replicated should we use a single enum class here or using two different classes is fine? I prefer we should use a single enum class instead of duplicating them for the particular scenario.
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.
@aggarwalpulkit596 Yes we can wrap this into single enum.
} | ||
|
||
/** Indicates that no checkpoint was found for the specified explorationId and profileId. */ | ||
class ExplorationCheckpointNotFoundException(message: String) : Exception(message) |
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.
We should use exceptionsController here @vinitamurthi correct?
...oppia/android/domain/exploration/lightweightcheckpointing/ExplorationCheckpointController.kt
Show resolved
Hide resolved
...oppia/android/domain/exploration/lightweightcheckpointing/ExplorationCheckpointController.kt
Show resolved
Hide resolved
...oppia/android/domain/exploration/lightweightcheckpointing/ExplorationCheckpointController.kt
Show resolved
Hide resolved
...oppia/android/domain/exploration/lightweightcheckpointing/ExplorationCheckpointController.kt
Show resolved
Hide resolved
@aggarwalpulkit596 PTAL. |
Unassigning @MaskedCarrot since a re-review was requested. @MaskedCarrot, please make sure you have addressed all review comments. 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.
Approving for code-owner file.
Assigning @fsharpasharp for code owner reviews. 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.
@MaskedCarrot Just realised that I am secondary reviwer.
Hi @MaskedCarrot, it looks like some changes were requested on this pull request by @rt4914. PTAL. 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.
@MaskedCarrot PTAL
) { | ||
|
||
/** Different stages in which the exploration checkpoint database can exist. */ | ||
enum class ExplorationCheckpointDatabaseState { |
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.
@aggarwalpulkit596 Yes we can wrap this into single enum.
...oppia/android/domain/exploration/lightweightcheckpointing/ExplorationCheckpointController.kt
Show resolved
Hide resolved
...va/org/oppia/android/domain/exploration/lightweightcheckpointing/ExplorationStorageModule.kt
Show resolved
Hide resolved
...a/android/domain/exploration/lightweightcheckpointing/ExplorationCheckpointControllerTest.kt
Outdated
Show resolved
Hide resolved
...a/android/domain/exploration/lightweightcheckpointing/ExplorationCheckpointControllerTest.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.
Approving for BUILD.bazel change
Unassigning @fsharpasharp since they have already approved the PR. |
…/oppia/oppia-android into add-controller-for-checkpointing
* | ||
* SUCCESS corresponds to successful AsyncResult with value as null. | ||
*/ | ||
enum class ExplorationCheckpointActionStatus { |
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.
Is this moved or not? I am bit confused.
...va/org/oppia/android/domain/exploration/lightweightcheckpointing/ExplorationStorageModule.kt
Show resolved
Hide resolved
One of the tests are failing @MaskedCarrot PTAL. Otherwise looks good to me |
Unassigning @aggarwalpulkit596 since they have already approved the PR. |
@aggarwalpulkit596 The failing checks are not related to the changes made in this PR. |
@BenHenning @rt4914 Can you approve this? Being code owners this PR cannot move forward. |
I plan to look at this tomorrow for codeowners. |
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. Approved for codeowners (BUILD files). I didn't review anything else--please let me know if you'd like me to.
@rt4914 Can you check 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.
LGTM, thanks.
Explanation
Fixes #3319
Checklist