Skip to content
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

Merged
merged 60 commits into from
Jul 16, 2021

Conversation

MaskedCarrot
Copy link
Contributor

@MaskedCarrot MaskedCarrot commented Jul 5, 2021

Explanation

Fixes #3325

Checklist

  • The PR title starts with "Fix #bugnum: ", followed by a short, clear summary of the changes. (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • The PR explanation includes the words "Fixes #bugnum: ..." (or "Fixes part of #bugnum" if the PR only partially fixes an issue).
  • The PR follows the style guide.
  • The PR does not contain any unnecessary auto-generated code from Android Studio.
  • The PR is made from a branch that's not called "develop".
  • The PR is made from a branch that is up-to-date with "develop".
  • The PR's branch is based on "develop" and not on any other branch.
  • The PR is assigned to an appropriate reviewer in both the Assignees and the Reviewers sections.

Tests

test class Screenshot
ExplorationActivityTest (Tests ignored here are due to an existing issue.) Screenshot from 2021-07-07 22-36-43

Copy link
Sponsor Member

@BenHenning BenHenning left a 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.

@@ -26,6 +26,9 @@ android {

kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
freeCompilerArgs += [
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi"
Copy link
Sponsor Member

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.
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in word 'fail'

Copy link
Contributor Author

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 ?

Copy link
Sponsor Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor

@vinitamurthi vinitamurthi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks!

@vinitamurthi vinitamurthi removed their assignment Jul 15, 2021
Copy link
Sponsor Member

@BenHenning BenHenning left a 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.

model/src/main/proto/exploration.proto Outdated Show resolved Hide resolved
model/src/main/proto/exploration.proto 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.
Copy link
Sponsor Member

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

@@ -26,6 +26,9 @@ android {

kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
freeCompilerArgs += [
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi"
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@prayutsu reminder.

@aggarwalpulkit596 aggarwalpulkit596 enabled auto-merge (squash) July 16, 2021 04:20
@aggarwalpulkit596 aggarwalpulkit596 dismissed BenHenning’s stale review July 16, 2021 04:47

Disregarding the review as all the changes have been approved and we are running low on time.

@aggarwalpulkit596 aggarwalpulkit596 merged commit c325fc8 into develop Jul 16, 2021
@aggarwalpulkit596 aggarwalpulkit596 deleted the saving-checkpoints-alternate branch July 16, 2021 04:47
@MaskedCarrot MaskedCarrot restored the saving-checkpoints-alternate branch July 16, 2021 04:50
@MaskedCarrot MaskedCarrot deleted the saving-checkpoints-alternate branch July 16, 2021 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement domain layer mechanism to save checkpoints
6 participants