-
Notifications
You must be signed in to change notification settings - Fork 521
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 #4186: Uncheck all selection on developer options not working #4383
Fix #4186: Uncheck all selection on developer options not working #4383
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 @KevinGitonga! I think the approach looks good. My main pieces of feedback aside from the in-line comments are:
- The title is missing a ':' after the issue number (see other PRs for reference)
- The explanation for the PR should include 'Fix' with the issue being fixed, along with a description explaining what's being fixed, how, and why this is the best approach (+ any other relevant considerations). I suggest taking a look at other PRs for reference, particularly some of the larger ones submitted over the past couple of months that have really clear explanation sections.
- The checklist should use
[ ]
for unchecked items and[x]
for checked items (I think you have extra spaces in yours). If it's easier, you can actually click on the checkboxes once the PR description is saved so that you don't need to manually edit each one. - The recorded video is really nice--thanks for adding that!
- Please also include the other videos/screenshots requested in the PR description template (particularly for accessibility since tablet & landscape aren't likely to be different in behavior per the nature of the fix).
- The Espresso test screenshot isn't actually showing the results of running any Espresso tests. See other PRs that have provided screenshots for an idea on what's helpful to include.
- Please add tests for each of the updated presenters (we generally always add tests for all behaviors that are added, removed, or changed in the codebase, unless there's a specific reason why the change can't be tested).
...org/oppia/android/app/devoptions/marktopicscompleted/MarkTopicsCompletedFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
...oppia/android/app/devoptions/markchapterscompleted/MarkChaptersCompletedFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
...oppia/android/app/devoptions/markchapterscompleted/MarkChaptersCompletedFragmentPresenter.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.
@KevinGitonga Please add tests for this functionality. Thanks.
...oppia/android/app/devoptions/markchapterscompleted/MarkChaptersCompletedFragmentPresenter.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.
Ah, not sure if you intentionally re-assigned me @rt4914.
@KevinGitonga please make sure to address all points mentioned, and respond to all comments, before sending a PR back for review (I know you didn't send this back in this case, but I thought I'd mention this, anyway, so that you have this in mind when you send this PR back into review).
...oppia/android/app/devoptions/markchapterscompleted/MarkChaptersCompletedFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
...org/oppia/android/app/devoptions/marktopicscompleted/MarkTopicsCompletedFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
Hi @KevinGitonga, 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. |
@KevinGitonga are you still actively working on this? We should avoid PRs becoming stale. |
@BenHenning was blocked on tests for this patch. Will proceed as i can run tests on my Ubuntu now. |
Hi @KevinGitonga, 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. |
Hi @KevinGitonga, 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. |
@KevinGitonga PTAL at KevinGitonga#4 and assign back if it looks good & you can merge it. I have a separate follow-up fix PR to send once that's merged. |
Update PR oppia#4383 to latest develop
@KevinGitonga PTAL at KevinGitonga#3 and merge it if it looks good to you. I think that'll fix at least the obvious CI failures (though there may be others that I'm unaware of). Note that per that PR's description I tried running the tests a bunch of times and didn't see any flakes. After merging the PR, could you check again to see if you're still running into the flake issues that led to this being routed over to me for investigating? |
Update PR oppia#4383 with various fixes
@BenHenning have merged the changes will sync and run the test's on another device to check the status of this flake. |
@BenHenning noticed i still have some flakes when i run test's on MarkChaptersCompletedFragmentTest on the develop branch too this is both on my Mac and ubuntu. The tests have a tendency to fail and sometimes pass completely. Please check image below for the test results. First runNext run |
Just to confirm @KevinGitonga are those results from Robolectric or Espresso? |
@BenHenning this are from Espresso run from my Samsung device. Not sure what is causing this on espresso but since if ci is using robolectric and the same tests are passing and they are actually supposed to pass, my thinking is that the changes can merge to develop as the core issue is resolved. 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.
Agreed @KevinGitonga. Since the Espresso failures already exist on develop, approving & merging this. Thanks!
Explanation
Fix #4186
This pr fixes :--
User not able to unselect currently selected developer options using the "All Checkbox". I added more checks when the
checkbox is clicked to check scenario when the checkbox is already clicked, if clicked already initiate removal of all items that had been selected and uncheck the checkboxes.
Essential Checklist
For UI-specific PRs only
If your PR includes UI-related changes, then:
Before changes demo video
all_checkbox_uncheck_not_working.mp4
After Changes made demo video
developer_options_all_uncheck.mp4
Screenshots of failing tests before fix
Espresso Test Results
MarkChaptersCompletedFragmentTest results
MarkStoriesCompletedFragmentTest results
MarkTopicsCompletedFragmentTest results