Skip to content

Fixes invalid authorname in explore #4054

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

Merged
merged 3 commits into from
Dec 1, 2020

Conversation

ashishkumar468
Copy link
Collaborator

Description (required)
Fixed invalid author name in explore

Fixes #4018 & #3341 (possibly)
Ref: #3714
What changes did you make and why?

  • Introduced a new field "user" in Media.

  • modified HTML parsing in getArtist.

  • Replaced "creator" with "author".

  • removed getAuthorName.

  • fixed delete helper since we no longer need to remove page does not exist from the username.

Tests performed (required)

Tested betaDebugApi 27

Screenshots (for UI changes only)
Screenshot_1606589872

* Defined two feild author and user in Media and used them at the corresponding places
Minor bug fixes
-displaying userName in uploadedBy.
-modified HTML parsing in getArtist.
-Replaced creator with author.
* Defined two feild author and user in Media and used them at the corresponding places
Minor bug fixes
-displaying userName in uploadedBy.
-modified HTML parsing in getArtist.
-Replaced creator with author.
@codecov-io
Copy link

Codecov Report

Merging #4054 (ae70351) into master (c93ab86) will decrease coverage by 0.04%.
The diff coverage is 11.76%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #4054      +/-   ##
============================================
- Coverage     10.65%   10.61%   -0.05%     
  Complexity      476      476              
============================================
  Files           343      343              
  Lines         12821    12874      +53     
  Branches        995      996       +1     
============================================
  Hits           1366     1366              
- Misses        11387    11440      +53     
  Partials         68       68              
Impacted Files Coverage Δ Complexity Δ
app/src/main/java/fr/free/nrw/commons/Media.kt 11.42% <0.00%> (-0.70%) 3.00 <0.00> (ø)
.../java/fr/free/nrw/commons/auth/SessionManager.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
.../fr/free/nrw/commons/category/GridViewAdapter.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
.../fr/free/nrw/commons/contributions/Contribution.kt 40.54% <0.00%> (-1.13%) 2.00 <0.00> (ø)
.../commons/contributions/ContributionViewHolder.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...rc/main/java/fr/free/nrw/commons/db/AppDatabase.kt 0.00% <ø> (ø) 0.00 <0.00> (ø)
...ree/nrw/commons/explore/media/PagedMediaAdapter.kt 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...fr/free/nrw/commons/media/MediaDetailFragment.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...ee/nrw/commons/media/MediaDetailPagerFragment.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...r/free/nrw/commons/upload/PageContentsCreator.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c93ab86...ae70351. Read the comment docs.

@misaochan misaochan merged commit d720750 into commons-app:master Dec 1, 2020
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.

"Uploaded by" bugged in Explore
3 participants