Skip to content
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

Metadata: Automatically remove orphan countries #982

Closed
jean-louis67 opened this issue Jan 31, 2021 · 5 comments
Closed

Metadata: Automatically remove orphan countries #982

jean-louis67 opened this issue Jan 31, 2021 · 5 comments
Assignees
Labels
enhancement Optimization, improvement or maintenance task released Available in the stable release

Comments

@jean-louis67
Copy link
Contributor

The list of countries should be purged, if possible.
A number of countries appear in the list although no photo is attached.
image

This results, for example, from a temporary error in entering coordinates.
It also happens to me for convenience to enter corrdinates by pasting the longitude of several photos, applying to each photo, then pasting the latitude. In doing so, the coordinates are temporarily incorrect and we show countries located on the equator…
image

@lastzero lastzero changed the title The list of countries should be purged Countries: Remove unused countries from search dropdown Feb 5, 2021
@lastzero lastzero added the enhancement Optimization, improvement or maintenance task label Feb 5, 2021
@lastzero lastzero self-assigned this Feb 5, 2021
@lastzero lastzero changed the title Countries: Remove unused countries from search dropdown Search: Remove unused countries from dropdown Feb 5, 2021
@lastzero lastzero added the please-test Ready for acceptance test label Feb 5, 2021
@lastzero lastzero changed the title Search: Remove unused countries from dropdown Metadata: Automatically remove orphan countries Feb 5, 2021
@jean-louis67
Copy link
Contributor Author

For testing, I suppose I've to wait for the next update of the docker image? Or should I be able to test in an on line instance of PhotoPrism?
However, thank you very much for your work!

@lastzero
Copy link
Member

lastzero commented Feb 7, 2021

You may use the preview image or demo.

@jean-louis67
Copy link
Contributor Author

I added a photo about 2 hours ago on demo. By modifying the coordinates, it went to Algeria, then to Zambia
The photo has now disappeared, I don't really know why, but the 2 countries still appear in the list. Maybe we have to wait a bit before updating the list.
On the other hand, if you click on Places, no photo appears in these countries.

@graciousgrey graciousgrey added released Available in the stable release and removed please-test Ready for acceptance test labels Feb 8, 2021
@lastzero
Copy link
Member

lastzero commented Feb 8, 2021

Lists only get purged when indexing.

@jean-louis67
Copy link
Contributor Author

Hello,
I just updated my docker image, and indexed. The country list is now purged.
Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Optimization, improvement or maintenance task released Available in the stable release
Projects
Status: Release 🌈
Development

No branches or pull requests

3 participants