geonode
geonode copied to clipboard
[Backport to 4.x][Fixes #9604] Report empty thumbnail in case a thumbnail has not been…
… generated for a resource (#9613)
-
-[Fixes #9604] Report empty thumbnail in case a thumbnail has not been generated for a resource
-
- update tests
-
-remove unused import
-
-remove unused import
-
- create Thumbnail Link if thumbnail_url exists
-
- fix tests
-
- fix pep8
-
- add command to clean resources thumbs
-
- fix lgtm
-
- rename migration file
-
- fix migration dependence
Co-authored-by: Alessio Fabiani [email protected] (cherry picked from commit 38cbd9dd752f188a4ac1f3cffb498ad0cd0e24eb)
Checklist
Reviewing is a process done by project maintainers, mostly on a volunteer basis. We try to keep the overhead as small as possible and appreciate if you help us to do so by completing the following items. Feel free to ask in a comment if you have troubles with any of them.
For all pull requests:
- [ ] Confirm you have read the contribution guidelines
- [ ] You have sent a Contribution Licence Agreement (CLA) as necessary (not required for small changes, e.g., fixing typos in the documentation)
- [ ] Make sure the first PR targets the master branch, eventual backports will be managed later. This can be ignored if the PR is fixing an issue that only happens in a specific branch, but not in newer ones.
The following are required only for core and extension modules (they are welcomed, but not required, for contrib modules):
- [ ] There is a ticket in https://github.com/GeoNode/geonode/issues describing the issue/improvement/feature (a notable exemption is, changes not visible to end-users)
- [ ] The issue connected to the PR must have Labels and Milestone assigned
- [ ] PR for bug fixes and small new features are presented as a single commit
- [ ] Commit message must be in the form "[Fixes #<issue_number>] Title of the Issue"
- [ ] New unit tests have been added covering the changes, unless there is an explanation on why the tests are not necessary/implemented
- [ ] This PR passes all existing unit tests (test results will be reported by travis-ci after opening this PR)
- [ ] This PR passes the QA checks: flake8 geonode
- [ ] Commits changing the settings, UI, existing user workflows, or adding new functionality, need to include documentation updates
- [ ] Commits adding new texts do use gettext and have updated .po / .mo files (without location infos)
Submitting the PR does not require you to check all items, but by the time it gets merged, they should be either satisfied or inapplicable.
Codecov Report
Merging #9810 (fa2e555) into 4.x (f4f4fbf) will increase coverage by
0.01%
. The diff coverage is83.14%
.
@@ Coverage Diff @@
## 4.x #9810 +/- ##
==========================================
+ Coverage 61.28% 61.29% +0.01%
==========================================
Files 821 822 +1
Lines 50165 50204 +39
Branches 7726 7736 +10
==========================================
+ Hits 30742 30771 +29
- Misses 17742 17751 +9
- Partials 1681 1682 +1