-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix 4615: Option for editing caption and description #4672
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 4615: Option for editing caption and description #4672
Conversation
Hey @Ayan-10 , it would be amazing if you could fix the conflicts :) |
Codecov Report
@@ Coverage Diff @@
## master #4672 +/- ##
============================================
- Coverage 40.04% 39.67% -0.38%
- Complexity 1719 1732 +13
============================================
Files 354 356 +2
Lines 14887 15141 +254
Branches 1277 1304 +27
============================================
+ Hits 5962 6007 +45
- Misses 8509 8706 +197
- Partials 416 428 +12
Continue to review full report at Codecov.
|
Hi @neslihanturan and @Ayan-10 I noticed that Butterknife is used here, we are actually moving away from it (#4664) If the changes are not urgent, I would suggest you wait till the view binding dependencies are added. |
…_edit_description
…ps-android-commons into 4615_edit_description
# Conflicts: # app/src/main/java/fr/free/nrw/commons/description/DescriptionEditActivity.java
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.
Otherwise, the code looks okay to me. Please ping us when the code is no more [WIP] :)
app/src/main/AndroidManifest.xml
Outdated
</application> | ||
|
||
</manifest> | ||
xmlns:tools="http://schemas.android.com/tools" |
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.
Oh seems like some auto indentation fix is made with this file. I don't thnik this file should be edited for this PR @Ayan-10 , shall we revert these 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.
@neslihanturan Yes, The manifest file got auto intended. I revert the changes now.
@neslihanturan The PR is ready to use. I made the PR [WIP] because of the butterknife issue. Now as @madhurgupta10 said, I can use view binding. I will replace butterknife with view binding as soon as possible and will remove the WIP. @madhurgupta10 Sure, I will add the required tests. Thanks. |
@madhurgupta10 I was trying to add test for GET call for getting Wikitext. But I am getting this error at the last line. Is this error occurring because of asynchronize call? I was trying to find some solution but can't find any.
Error
|
It seems like there is a NPE in your expected result |
@neslihanturan @madhurgupta10 Can you please review this PR? |
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.
Hey @Ayan-10 , thanks a lot it works as intended:)
Description (required)
Fetched current wikitext, extracted descriptions from it by in-built algorithm, compare and merge them with caption according to language code, reflected description and caption in an activity for adding and editing, get new description and made new wikitext and put it into the server.
Fixes #4615
Tests performed (required)
Tested master on Pixel 3 with API level 30.