immich/open-api
Justin Forseth d3a5490e71
feat(server): search unknown place (#10866)
* Allow submission of null country

* Update searchAssetBuilder to handle nulls

andWhere({country:null}) produces `"exifInfo"."country" = NULL`. We want
`"exifInfo"."country" IS NULL`, so we have to treat NULL as a special
case

* Allow null country in frontend

* Make the query code a bit more straightforward

* Remove unused brackets import

* Remove log message

* Don't change whitespace for no reason

* Fix prettier style issue

* Update search.dto.ts validators per @jrasm91's recommendation

* Update api types

* Combine null country and state into one guard clause

* chore: clean up

* chore: add e2e for null/empty city, state, country search

* refactor: server returns suggestion for null values

* chore: clean up

---------

Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
Co-authored-by: Jason Rasmussen <jason@rasm.me>
2024-08-02 03:27:40 +00:00
..
bin test: sync open api spec (#9687) 2024-05-23 07:40:57 -04:00
patch deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
templates/mobile/serialization/native deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
typescript-sdk feat(server): search unknown place (#10866) 2024-08-02 03:27:40 +00:00
immich-openapi-specs.json feat(server): search unknown place (#10866) 2024-08-02 03:27:40 +00:00
openapitools.json chore: bump open-api (#9522) 2024-05-15 16:52:52 -05:00