nextcloud / nextcloud/maps

remove duplicate entries in photos

Open
#129 10 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature: 🖼 photos
Dominant language
JavaScript
Stars
598
Forks
113
PR merge metrics
No merged PRs in 30d

Description

I have noticed that many of the photo entries are listed twice

Reason 1:
there are two identical copies of the photo - two files got scanned, fair enough, but it still would be nice to have only one photo shown on the map if the files are identical (sometimes there are reasons to have two copies of the same photo)

Reason 2:
Some photos do not have a duplicate file on my system as I am aware, but still I can see duplicate entries.. Could the reason be that I ran the occ scan command twice?

I assumed that the second run will just update the information. Is that the case or does the information get added every time? If the information gets added, is there a way to erase all the information and then run the scan again?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the duplicate-photo behavior with the occ scan command, including running the scan twice, and trace how photo entries are stored and updated. Determine whether identical files and repeated scans create separate entries; done means duplicate entries are handled consistently and existing data can be safely corrected or rebuilt.

Written by the indexing model from the issue text.

Assessment

Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.