Skip to content

#3601 [structured-commons] Wrong thumbnails at the "depictions" step when uploading #3696

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 6 commits into from
Apr 25, 2020

Conversation

macgills
Copy link
Contributor

Description (required)

Fixes #3601

What changes did you make and why?
fix imageview rendering code
Rework Rx flow to return lists of data that are inserted into LiveData

Tests performed (required)

TestedProdDebug on Nexus5x with API level 27

Screenshots (for UI changes only)

Need help? See https://support.google.com/android/answer/9075928
image

…when uploading - fix imageview rendering code
Copy link

@tests-checker tests-checker bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add tests to make sure this change works as expected?

@macgills
Copy link
Contributor Author

Even if this were passing the tests I don't think it is ready yet, I realised I had forgot to retrieve the selected depictions and insert them at top of the list and the images began to load a bit weirdly, will investigate further

…when uploading - show selected depictions at the top - ensure updates to nearby places are reflected
…when uploading - don't set imageUrl when the url is none
@codecov-io
Copy link

codecov-io commented Apr 23, 2020

Codecov Report

Merging #3696 into master will increase coverage by 0.06%.
The diff coverage is 48.27%.

Impacted file tree graph

@@             Coverage Diff             @@
##             master   #3696      +/-   ##
===========================================
+ Coverage      7.35%   7.42%   +0.06%     
- Complexity      335     340       +5     
===========================================
  Files           292     292              
  Lines         12883   12874       -9     
  Branches       1016    1014       -2     
===========================================
+ Hits            948     956       +8     
+ Misses        11858   11842      -16     
+ Partials         77      76       -1     
Impacted Files Coverage Δ Complexity Δ
.../nrw/commons/explore/depictions/DepictsClient.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...s/explore/depictions/SearchDepictionsRenderer.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...nrw/commons/repository/UploadRemoteDataSource.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
.../free/nrw/commons/repository/UploadRepository.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...n/java/fr/free/nrw/commons/upload/FileProcessor.kt 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...free/nrw/commons/upload/UploadDepictsRenderer.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...ee/nrw/commons/upload/depicts/DepictsFragment.java 0.00% <0.00%> (-1.62%) 0.00 <0.00> (-1.00)
...mons/upload/mediaDetails/UploadMediaPresenter.java 67.85% <0.00%> (-2.52%) 17.00 <0.00> (ø)
...commons/upload/structure/depictions/DepictModel.kt 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...ree/nrw/commons/upload/depicts/DepictsPresenter.kt 88.88% <88.88%> (ø) 17.00 <17.00> (?)
... and 4 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 67faa40...39d0eee. Read the comment docs.

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, it fixes the bug, thanks! :-)

@neslihanturan
Copy link
Collaborator

I can't manually test this PR because I experience this bug #3706 and can not go further steps:/ How do you test?

@macgills
Copy link
Contributor Author

@neslihanturan turn do not keep activities off

Copy link
Collaborator

@neslihanturan neslihanturan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works and improves my user experience a lot, thanks @macgills !

@neslihanturan neslihanturan merged commit 707e314 into master Apr 25, 2020
@macgills macgills deleted the macgills/3601-depiction-thumbnails branch May 5, 2020 09:08
ashishkumar468 pushed a commit to ashishkumar468/apps-android-commons that referenced this pull request Oct 10, 2020
…ions" step when uploading (commons-app#3696)

* commons-app#3601 [structured-commons] Wrong thumbnails at the "depictions" step when uploading - fix imageview rendering code

* commons-app#3601 [structured-commons] Wrong thumbnails at the "depictions" step when uploading - show selected depictions at the top - ensure updates to nearby places are reflected

* commons-app#3601 [structured-commons] Wrong thumbnails at the "depictions" step when uploading - don't set imageUrl when the url is none

* commons-app#3601 [structured-commons] Wrong thumbnails at the "depictions" step when uploading - rewrite unit tests

* commons-app#3601 [structured-commons] Wrong thumbnails at the "depictions" step when uploading - minor cleanup

* commons-app#3601 [structured-commons] Wrong thumbnails at the "depictions" step when uploading - fix erroneous cache access
ashishkumar468 pushed a commit to ashishkumar468/apps-android-commons that referenced this pull request Oct 10, 2020
…ions" step when uploading (commons-app#3696)

* commons-app#3601 [structured-commons] Wrong thumbnails at the "depictions" step when uploading - fix imageview rendering code

* commons-app#3601 [structured-commons] Wrong thumbnails at the "depictions" step when uploading - show selected depictions at the top - ensure updates to nearby places are reflected

* commons-app#3601 [structured-commons] Wrong thumbnails at the "depictions" step when uploading - don't set imageUrl when the url is none

* commons-app#3601 [structured-commons] Wrong thumbnails at the "depictions" step when uploading - rewrite unit tests

* commons-app#3601 [structured-commons] Wrong thumbnails at the "depictions" step when uploading - minor cleanup

* commons-app#3601 [structured-commons] Wrong thumbnails at the "depictions" step when uploading - fix erroneous cache access
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.

[structured-commons] Wrong thumbnails at the "depictions" step when uploading
4 participants