-
Notifications
You must be signed in to change notification settings - Fork 527
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 #2825: Added label for profile rename activity #2928
Fix #2825: Added label for profile rename activity #2928
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.
@justdvnsh Generally LGTM, just suggested a few nit changes and fix the newly added test case.
app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileRenameActivityTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileRenameActivityTest.kt
Outdated
Show resolved
Hide resolved
@justdvnsh Also please go through our Guidance On Submitting A PR once. Thanks! |
@prayutsu Sure I'll keep that in mind. For the PR name , I was following the reference PR which was mentioned in the issue. |
@justdvnsh Thanks for addressing all the comments, you can now resolve all conversations initiated by me. |
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 @justdvnsh
Just had one doubt for @rt4914 , is it okay to use the existing string @profile_rename_title
or a new one for the label should be created?
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.
@justdvnsh Suggested changes. PTAL
app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileRenameActivityTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileRenameActivityTest.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.
Suggested nit change.
app/src/main/java/org/oppia/android/app/settings/profile/ProfileRenameActivityPresenter.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.
@justdvnsh Suggested nit change.
app/src/sharedTest/java/org/oppia/android/app/settings/profile/ProfileRenameActivityTest.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.
@rt4914 the tests are failing ? Just by adding a single space ? What is that about ?? |
@justdvnsh Its not because of space. I am inspecting the code to know the reason of failure. Also in future PRs please use |
@rt4914 Yep, it passed now. Sure. Will keep in mind from future PR's |
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 @justdvnsh! Just had one nit. PTAL.
) | ||
) | ||
|
||
val title = activityTestRule.activity.title |
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.
Please add a comment above this like the one listed here to provide some context about what this check is attempting to do.
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.
PTAL
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.
@justdvnsh The comment that you added does not match with the one mentioned in the reference. Please use same comment for better clarity and consistency.
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 @justdvnsh. I think something might have gone wrong with the commit history in the latest commit--PTAL at my comment.
application = ProfileRenameActivityTest.TestApplication::class, | ||
qualifiers = "port-xxhdpi" | ||
) | ||
class ProfileRenameActivityTest { |
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.
@justdvnsh it appears the entire file has been changed. Did you by any chance upload the file using Windows line endings? We generally use Unix line endings everywhere (e.g. rather than ). I suggest looking at https://stackoverflow.com/questions/2517190/how-do-i-force-git-to-use-lf-instead-of-crlf-under-windows if you are using Windows.
We don't want to mark the entire file as changed in this way.
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 Sure. I'll make sure to fix this issue by today itself.
@justdvnsh are you still working on this issue? |
@BenHenning Yeah. Sorry, I was not as regular to this as usual. Actually, was trying out few things for the feature I want to work on in my proposal. But I'll make sure to fix this by today |
@BenHenning @rt4914 Created a new PR here. |
Explanation
Fix #2825 Added label for profile rename activity to read the title "Profile Rename Activity" when talkback is on
Checklist