Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENHANCEMENT] Duplicate files in Green Pass #268

Open
amarradi opened this issue Jun 12, 2024 · 2 comments
Open

[ENHANCEMENT] Duplicate files in Green Pass #268

amarradi opened this issue Jun 12, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@amarradi
Copy link

[ENHANCEMENT]

Is there a way to somehow summarize duplicate files by file name and display them more clearly? How do I find this? I open a mail with an attachment and use the Greenpass by default, so the attachment is loaded directly into the Greenpass again the second time I open it.

@amarradi amarradi added the enhancement New feature or request label Jun 12, 2024
@michaeltroger
Copy link
Owner

Yes, the app would currently always import the same file again and again.
This is due to the fact that the app is not like a classical PDF Reader. For this app, any file that is opened is immediately copied into the app's storage.
That's also one reason why I tended to disable the "open with Green Pass" option in earlier days, to avoid confusion. "Opening" is more like importing.

Currently I guess you would need to know the document name in question and then use the search functionally to manually remove duplicates. There is no way to show duplicates in an automated way.

From technical perspective, avoiding duplicates is doable. I think one could check the checksum of the file and save it in the database. Then when a new file is imported check if the same exists already.
But do you really think visualizing duplicates is something that would be useful? I would rather think of avoiding them in the first place. Building a specific UI for duplicates sounds like quite some overhead.

@michaeltroger michaeltroger changed the title Dublicate files in Green Pass [ENHANCEMENT] Duplicate files in Green Pass Jun 13, 2024
@amarradi
Copy link
Author

Avoiding this would be best, but it would then have to be checked with each import whether the checksum already exists or whether it is new.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants