Search by location is messy #2980

Closed
opened 2026-02-05 07:17:37 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @hermesespinola on GitHub (Apr 20, 2024).

The bug

On the Search tab, use "Search Location", when selecting the filters top to bottom, it correctly constraints the following fields (i.e.: selecting "Italy" as a country limits the State and City select fields to states and cities in Italy. If you select "City" before "state" and "country" it won't limit the previous fields, making it possible to create invalid location filters:

location-search-bug

The OS that Immich Server is running on

Linux raspberrypi 6.1.0-rpi7-rpi-2712

Version of Immich Server

v1.101.0

Version of Immich Mobile App

v1.101.0 build.147

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

I don't think this is relevant

Your .env content

I don't think this is relevant

Reproduction steps

1. Go to search tab
2. Click on the "search your photos" bar
3. Click on the "Location" chip
4. Select a city, then a state, then a country

Relevant log output

No response

Additional information

I noticed on web what it does is it clears the next fields to whatever you just set (i.e.: if you select "Rome" in the City field, then select "Spain" in the Country field it will clear "Rome from the search). I think it would be nice to have this same behavior on mobile.

Originally created by @hermesespinola on GitHub (Apr 20, 2024). ### The bug On the Search tab, use "Search Location", when selecting the filters top to bottom, it correctly constraints the following fields (i.e.: selecting "Italy" as a country limits the State and City select fields to states and cities in Italy. If you select "City" before "state" and "country" it won't limit the previous fields, making it possible to create invalid location filters: ![location-search-bug](https://github.com/immich-app/immich/assets/6611754/5dc93066-f2ac-4d5e-a1c2-ff17e2a48119) ### The OS that Immich Server is running on Linux raspberrypi 6.1.0-rpi7-rpi-2712 ### Version of Immich Server v1.101.0 ### Version of Immich Mobile App v1.101.0 build.147 ### Platform with the issue - [ ] Server - [ ] Web - [X] Mobile ### Your docker-compose.yml content ```YAML I don't think this is relevant ``` ### Your .env content ```Shell I don't think this is relevant ``` ### Reproduction steps ```bash 1. Go to search tab 2. Click on the "search your photos" bar 3. Click on the "Location" chip 4. Select a city, then a state, then a country ``` ### Relevant log output _No response_ ### Additional information I noticed on web what it does is it clears the next fields to whatever you just set (i.e.: if you select "Rome" in the City field, then select "Spain" in the Country field it will clear "Rome from the search). I think it would be nice to have this same behavior on mobile.
OVERLORD added the good first issue📱mobile labels 2026-02-05 07:17:37 +03:00
Author
Owner

@ciccioska commented on GitHub (Apr 26, 2024):

When you select Country> State> City and change Country it should clear State and City, if we shift State leaving the previous Country selected it should clear City as the web app works.

@ciccioska commented on GitHub (Apr 26, 2024): When you select Country> State> City and change Country it should clear State and City, if we shift State leaving the previous Country selected it should clear City as the web app works.
Author
Owner

@Tushar-Harsora commented on GitHub (May 4, 2024):

Attempted Fix in #9261

@Tushar-Harsora commented on GitHub (May 4, 2024): Attempted Fix in #9261
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#2980