Skip to content

Albums: Invalid entries must be automatically flagged as missing #3481

Description

@lastzero

When a record in the photos table no longer exists, the corresponding record in the photos_albums table is not flagged as missing, because the corresponding query only checks if photos.deleted_at is not NULL.

To fix the album entry counts displayed in the UI, the query must additionally check if the photos_albums.photo_uid exists in the photos table or if it is unknown e.g. after a photo has been permanently deleted with the photoprism purge command or manually with SQL.

Metadata

Metadata

Assignees

Labels

releasedAvailable in a stable releaseuxImpacts User Experience

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Release 🌈

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions