[BUG] Number of assets for person incorrect on merge #1839

Closed
opened 2026-02-05 04:08:02 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @EnochPrime on GitHub (Dec 19, 2023).

The bug

When merging people the asset count of the original unnamed person is displayed rather than the total asset count for the merged person.

The OS that Immich Server is running on

Linux Mint

Version of Immich Server

v1.91.3

Version of Immich Mobile App

v1.91.0

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

# swarm deployment extension
x-deploy-swarm: &deploy_swarm
  mode: replicated
  replicas: 1
  update_config:
    parallelism: 1
    delay: 10s
    order: stop-first

# immich environment
x-immich-env: &immich_environment
  NODE_ENV: production
  DB_HOSTNAME: db
  DB_DATABASE_NAME: ${IMMICH_DB:-immich}
  DB_USERNAME: ${IMMICH_DB_USERNAME:-immich}
  DB_PASSWORD: ${IMMICH_DB_PASSWORD:-immich}

services:
  app:
    image: ghcr.io/immich-app/immich-server:v1.91.3
    command: start-server.sh
    environment:
      <<: *immich_environment
    volumes:
      - /media/pictures/immich:/usr/src/app/upload/library
      - ${STORAGE_PATH}/{{index .Service.Labels "com.docker.stack.namespace"}}/upload:/usr/src/app/upload/upload
      - ${STORAGE_PATH}/{{index .Service.Labels "com.docker.stack.namespace"}}/profile:/usr/src/app/upload/profile
      - ${STORAGE_PATH}/{{index .Service.Labels "com.docker.stack.namespace"}}/thumbs:/usr/src/app/upload/thumbs
      - ${STORAGE_PATH}/{{index .Service.Labels "com.docker.stack.namespace"}}/encoded-video:/usr/src/app/upload/encoded-video
      - /media/pictures:/media/pictures:ro
    networks:
      - frontend
      - database
      - machine-learning
      - redis
    deploy:
      <<: *deploy_swarm
      resources:
        limits:
          cpus: ${IMMICH_APP_CPU_LIMIT}
          memory: ${IMMICH_APP_MEM_LIMIT}
      restart_policy:
        delay: 120s
        max_attempts: 3
      placement:
        constraints:
          - node.hostname == McMint

  microservices:
    image: ghcr.io/immich-app/immich-server:v1.91.3
    command: start-microservices.sh
    environment:
      <<: *immich_environment
    volumes:
      - /media/pictures/immich:/usr/src/app/upload/library
      - ${STORAGE_PATH}/{{index .Service.Labels "com.docker.stack.namespace"}}/upload:/usr/src/app/upload/upload
      - ${STORAGE_PATH}/{{index .Service.Labels "com.docker.stack.namespace"}}/profile:/usr/src/app/upload/profile
      - ${STORAGE_PATH}/{{index .Service.Labels "com.docker.stack.namespace"}}/thumbs:/usr/src/app/upload/thumbs
      - ${STORAGE_PATH}/{{index .Service.Labels "com.docker.stack.namespace"}}/encoded-video:/usr/src/app/upload/encoded-video
      - /media/pictures:/media/pictures:ro
    networks:
      - database
      - machine-learning
      - redis
    deploy:
      <<: *deploy_swarm
      resources:
        limits:
          cpus: ${IMMICH_MICROSERVICES_CPU_LIMIT}
          memory: ${IMMICH_MICROSERVICES_MEM_LIMIT}
      restart_policy:
        delay: 120s
        max_attempts: 3
      placement:
        constraints:
          - node.hostname == McMint

  machine-learning:
    image: ghcr.io/immich-app/immich-machine-learning:v1.91.3
    volumes:
      - ${STORAGE_PATH}/immich/ml-cache:/cache
    networks:
      - machine-learning
    deploy:
      <<: *deploy_swarm
      placement:
        constraints:
          - node.platform.arch == x86_64
      resources:
        limits:
          cpus: ${IMMICH_ML_CPU_LIMIT}
          memory: ${IMMICH_ML_MEM_LIMIT}

  db:
    image: tensorchord/pgvecto-rs:pg14-v0.1.11
    environment:
      POSTGRES_DB: ${IMMICH_DB:-immich}
      POSTGRES_USER: ${IMMICH_DB_USERNAME:-immich}
      POSTGRES_PASSWORD: ${IMMICH_DB_PASSWORD:-immich}
    volumes:
      - ${STORAGE_PATH}/{{index .Service.Labels "com.docker.stack.namespace"}}/db:/var/lib/postgresql/data
    networks:
      - database
    deploy:
      <<: *deploy_swarm
      resources:
        limits:
          cpus: ${IMMICH_DB_CPU_LIMIT}
          memory: ${IMMICH_DB_MEM_LIMIT}

  redis:
    image: redis:6.2.14
    networks:
      - redis
    deploy:
      <<: *deploy_swarm
      resources:
        limits:
          cpus: '0.1'
          memory: 32M

networks:
  frontend:
    external: true
    name: core_frontend
  database:
    driver: overlay
  machine-learning:
    driver: overlay
  redis:
    driver: overlay

Your .env content

N/A

Reproduction steps

1. Navigate to People
2. Select any person without a name (note number of assets)
3. Type in an existing name and press done
4. In the merge dialog press yes to confirm
5. Page for person that assets were merged into loads with an asset count below name, this count is only from the previous person and not the total count
6. Refresh page to see correct count

Additional information

No response

Originally created by @EnochPrime on GitHub (Dec 19, 2023). ### The bug When merging people the asset count of the original unnamed person is displayed rather than the total asset count for the merged person. ### The OS that Immich Server is running on Linux Mint ### Version of Immich Server v1.91.3 ### Version of Immich Mobile App v1.91.0 ### Platform with the issue - [ ] Server - [X] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML # swarm deployment extension x-deploy-swarm: &deploy_swarm mode: replicated replicas: 1 update_config: parallelism: 1 delay: 10s order: stop-first # immich environment x-immich-env: &immich_environment NODE_ENV: production DB_HOSTNAME: db DB_DATABASE_NAME: ${IMMICH_DB:-immich} DB_USERNAME: ${IMMICH_DB_USERNAME:-immich} DB_PASSWORD: ${IMMICH_DB_PASSWORD:-immich} services: app: image: ghcr.io/immich-app/immich-server:v1.91.3 command: start-server.sh environment: <<: *immich_environment volumes: - /media/pictures/immich:/usr/src/app/upload/library - ${STORAGE_PATH}/{{index .Service.Labels "com.docker.stack.namespace"}}/upload:/usr/src/app/upload/upload - ${STORAGE_PATH}/{{index .Service.Labels "com.docker.stack.namespace"}}/profile:/usr/src/app/upload/profile - ${STORAGE_PATH}/{{index .Service.Labels "com.docker.stack.namespace"}}/thumbs:/usr/src/app/upload/thumbs - ${STORAGE_PATH}/{{index .Service.Labels "com.docker.stack.namespace"}}/encoded-video:/usr/src/app/upload/encoded-video - /media/pictures:/media/pictures:ro networks: - frontend - database - machine-learning - redis deploy: <<: *deploy_swarm resources: limits: cpus: ${IMMICH_APP_CPU_LIMIT} memory: ${IMMICH_APP_MEM_LIMIT} restart_policy: delay: 120s max_attempts: 3 placement: constraints: - node.hostname == McMint microservices: image: ghcr.io/immich-app/immich-server:v1.91.3 command: start-microservices.sh environment: <<: *immich_environment volumes: - /media/pictures/immich:/usr/src/app/upload/library - ${STORAGE_PATH}/{{index .Service.Labels "com.docker.stack.namespace"}}/upload:/usr/src/app/upload/upload - ${STORAGE_PATH}/{{index .Service.Labels "com.docker.stack.namespace"}}/profile:/usr/src/app/upload/profile - ${STORAGE_PATH}/{{index .Service.Labels "com.docker.stack.namespace"}}/thumbs:/usr/src/app/upload/thumbs - ${STORAGE_PATH}/{{index .Service.Labels "com.docker.stack.namespace"}}/encoded-video:/usr/src/app/upload/encoded-video - /media/pictures:/media/pictures:ro networks: - database - machine-learning - redis deploy: <<: *deploy_swarm resources: limits: cpus: ${IMMICH_MICROSERVICES_CPU_LIMIT} memory: ${IMMICH_MICROSERVICES_MEM_LIMIT} restart_policy: delay: 120s max_attempts: 3 placement: constraints: - node.hostname == McMint machine-learning: image: ghcr.io/immich-app/immich-machine-learning:v1.91.3 volumes: - ${STORAGE_PATH}/immich/ml-cache:/cache networks: - machine-learning deploy: <<: *deploy_swarm placement: constraints: - node.platform.arch == x86_64 resources: limits: cpus: ${IMMICH_ML_CPU_LIMIT} memory: ${IMMICH_ML_MEM_LIMIT} db: image: tensorchord/pgvecto-rs:pg14-v0.1.11 environment: POSTGRES_DB: ${IMMICH_DB:-immich} POSTGRES_USER: ${IMMICH_DB_USERNAME:-immich} POSTGRES_PASSWORD: ${IMMICH_DB_PASSWORD:-immich} volumes: - ${STORAGE_PATH}/{{index .Service.Labels "com.docker.stack.namespace"}}/db:/var/lib/postgresql/data networks: - database deploy: <<: *deploy_swarm resources: limits: cpus: ${IMMICH_DB_CPU_LIMIT} memory: ${IMMICH_DB_MEM_LIMIT} redis: image: redis:6.2.14 networks: - redis deploy: <<: *deploy_swarm resources: limits: cpus: '0.1' memory: 32M networks: frontend: external: true name: core_frontend database: driver: overlay machine-learning: driver: overlay redis: driver: overlay ``` ### Your .env content ```Shell N/A ``` ### Reproduction steps ```bash 1. Navigate to People 2. Select any person without a name (note number of assets) 3. Type in an existing name and press done 4. In the merge dialog press yes to confirm 5. Page for person that assets were merged into loads with an asset count below name, this count is only from the previous person and not the total count 6. Refresh page to see correct count ``` ### Additional information _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1839