Skip to content

Search by location is messy #8940

Closed

Description

@hermesespinola

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.

Activity

  1. ciccioska commented on Apr 26, 2024

    @ciccioska

    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.

  2. Tushar-Harsora commented on May 4, 2024

    @Tushar-Harsora
    Contributor

    Attempted Fix in #9261

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions