-
Notifications
You must be signed in to change notification settings - Fork 523
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
Fixes #4294 'added profile deleted message' #4560
Conversation
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 @mbobiosio. I took a first pass. Please make sure to fix all failing CI checks, including the ones for static checks (which should require KDocs and tests to be added).
Also, please fill out the part of the PR description asking for various screenshots and videos for different cases to demonstrate how this UI looks and behaves. That context is really important to make sure that everything works the way we expect even for cases that we might not normally consider or try during development.
app/src/main/java/org/oppia/android/app/fragment/FragmentComponentImpl.kt
Outdated
Show resolved
Hide resolved
@mbobiosio please don't resolve reviewers' conversation threads. Responding is sufficient to indicate that you've addressed the comment (otherwise it makes it hard for us to keep track of things across review iterations). Also, please make sure to address all points in my previous comment before assigning the PR back (unless you get stuck). CI checks still appear to have failures (and haven't actually finished running). |
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.
@mbobiosio Suggested changes. Thanks.
app/src/main/java/org/oppia/android/app/settings/profile/DeleteProfileSuccessDialogFragment.kt
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/settings/profile/DeleteProfileSuccessDialogFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/settings/profile/DeleteProfileSuccessDialogFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/settings/profile/DeleteProfileSuccessDialogFragment.kt
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.
Thanks @mbobiosio. Took another pass. I think CI checks are still failing--PTAL.
app/src/main/java/org/oppia/android/app/settings/profile/DeleteProfileSuccessDialogFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/settings/profile/DeleteProfileSuccessDialogFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/settings/profile/DeleteProfileSuccessDialogFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/settings/profile/DeleteProfileSuccessDialogFragment.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.
Thanks @mbobiosio, followed up to the comments.
Please also make sure the CI tests are fixed before sending this back for review. I can't approve this until the CI checks are passing.
* This function is responsible for displaying content in DialogFragment. | ||
* | ||
* @return [DeleteProfileSuccessDialogFragment]: DialogFragment | ||
* This function returns a new instance of [DeleteProfileSuccessDialogFragment] |
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.
This should actually be the exact wording I suggest, i.e.:
/** Returns a new instance of [DeleteProfileSuccessDialogFragment]. */
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.
Updated 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.
This doesn't seem updated in the latest version of the PR. Did you push your changes?
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.
Updated now
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.
This still seems unchanged--I see the old documentation wording in the latest changes of the PR.
app/src/main/java/org/oppia/android/app/settings/profile/DeleteProfileSuccessDialogFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/settings/profile/DeleteProfileSuccessDialogFragment.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.
@mbobiosio Please apply changes as per open comments.
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.
Not all comments have been responded to or addressed.
app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileEditActivityTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileEditActivityTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileEditActivityTest.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.
@mbobiosio I don't think the test changes are matching the reference I sent. Please revise.
app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileEditActivityTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileEditActivityTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileEditActivityTest.kt
Outdated
Show resolved
Hide resolved
Also @mbobiosio this branch needs to be brought up-to-date with the latest changes in develop since there are conflicts to resolve. |
updated with develop
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 @mbobiosio. Took another pass--PTAL.
app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileEditActivityTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileEditActivityTest.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.
Thanks @mbobiosio. I took another scan, and looked at all old comment threads. I think 2 old threads still need to be resolved, and I noticed two things per the latest changes. The remaining comments should be all of the changes needed for this PR to be finished up.
Also, please update to the latest develop and resolve the pending conflicts so that we can get an accurate CI result.
* This function is responsible for displaying content in DialogFragment. | ||
* | ||
* @return [DeleteProfileSuccessDialogFragment]: DialogFragment | ||
* This function returns a new instance of [DeleteProfileSuccessDialogFragment] |
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.
This still seems unchanged--I see the old documentation wording in the latest changes of the PR.
app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileEditActivityTest.kt
Outdated
Show resolved
Hide resolved
@@ -365,6 +375,12 @@ class ProfileEditActivityTest { | |||
} | |||
} | |||
|
|||
private fun verifyTextInDialog(@StringRes textInDialogId: Int) { | |||
onView(withText(context.getString(textInDialogId))) |
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 can just use withId()
here, no need for the extra getString
.
@@ -229,45 +231,53 @@ class ProfileEditActivityTest { | |||
} | |||
|
|||
@Test | |||
fun testProfileEdit_deleteProfile_checkReturnsToProfileListOnPhoneOrAdminControlOnTablet() { |
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.
I finally realized what I thought has been missing from the changed tests: we still need to verify that deletion occurs via the dialog. I think you need to add a test that finishes the deletion and then verifies that the correct destination activity has been routed to (using the same intends logic as this test used).
@@ -371,6 +371,7 @@ exempted_file_path: "app/src/main/java/org/oppia/android/app/recyclerview/StartS | |||
exempted_file_path: "app/src/main/java/org/oppia/android/app/resumelesson/ResumeLessonActivityPresenter.kt" | |||
exempted_file_path: "app/src/main/java/org/oppia/android/app/resumelesson/ResumeLessonFragmentPresenter.kt" | |||
exempted_file_path: "app/src/main/java/org/oppia/android/app/resumelesson/ResumeLessonViewModel.kt" | |||
exempted_file_path: "app/src/main/java/org/oppia/android/app/settings/profile/DeleteProfileSuccessDialogFragment.kt" |
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.
This is still unresolved.
Hi @mbobiosio, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
Explanation
Fixes #4294
This PR includes a dialog to indicate profile deleted status.
I have used a new Fragment that extends
InjectableDialogFragment
to show the dialogEssential Checklist
For UI-specific PRs only
If your PR includes UI-related changes, then: