-
Notifications
You must be signed in to change notification settings - Fork 210
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
create logical albums by selecting multiple photos by ticking checkboxes #301
Comments
This FR is totally reasonable, I was also thinking if implementing #45 makes still sense. I kinda came to the conclusion that it does and want to that first (and create place for normal albums). There is an other blocker on it, namely I consider the DB as cache that I delete from time-to-time. I guess you would not want to recreate your albums after a update or if gallery indexing goes wrong. Blocked on: |
@bpatrik , I also think that #45 still makes sense. It's just another use case although both are related.
Sure, losing logical albums when the DB needs to be recreated would be fatal. However, to solve this issue, PiGallery2 could make a backup of the logical album table and restore it after the DB has been recreated. It only requires that photo identifiers are deterministic and as such are immutable. Are they? I understand your wish to improve SQL performance, especially if you found already one of the biggest performance bottlenecks, TypeORM, and an alternative for it, mikro-orm. However, as the benchmark shows, even if mikro-orm outperformans TypeORM, the gain for Of course, nobody would complain if adding or removing photos or re-indexing them were faster but, as for me, I'm satisfied with the actual speed already. |
That need to be fixed to have reliable DB.
Earlier I made a lot of effort to make sure that the disk Gallery state matches the DB gallery state. There are quiet some test also for race conditions too. Even after all the efforts, I still encounter DB inconsistencies (eg.: #285) from what the app cannot recover.
Indeed You are right inserting photos should not matter. With #299 I mainly want to improve the #299 wants to improve the selects, not the inserts. According to my experiences, there is some inefficiency in getting data to nodejs from sqlite. Not sure if that is TypeORM or the sqlite adapter itself.
True #299 is not really a blocker here. What I mean gallery inconsistency should be improved and #299 will be a good opportunity to tidy that up too. (This is what I wanted to hint under "soft blocker")
I was thinking sofar in virtual directories that appears in the directory structure. But I find that an odd representation. So I will probably add albums and "virtual directories" (or saved searches) to separate tab. What do you think? Disclaimer: |
True. I'd find it odd too.
@bpatrik, would this mean that everybody who is visiting the gallery could see and click these tabs? I'd prefer that only PiGallery2 administrators see these tabs and are able to share the underlying URL(s). Users who receive this URL would see only the corresponding virtual album, nothing more.
I'm impressed how much you achieved already! I certainly invested already at least 40 hours into PiGallery2 only since I discovered it a few weeks ago but my contribution is still very limited. I try to get into the code but it's quite difficult for a TypesScript/Angular2/Nodejs newbie like me... |
As an PiGallery2 administrator I'd like to be able to select multiple photos in order to create a virtual album of them that can be shared by an URL.
This feature request is related to #38 and #45. However, unlike #38, tags don't need to be written back to photos since this information is ephemeral. Instead, the identifiers of photos that have been selected to make up a virtual album should be stored in PiGallery's database. When the URL to the virtual album expires, the database can remove these photo identifiers.
Unlike #45 , a virtual album is not based on an advanced search. Instead, photos should be selectable by ticking checkboxes on the photos to select them for the virtual album.
The idea is inspired from the app "Photo Station" of the Synology DSM software (see screenshot below or try out the demo).
The text was updated successfully, but these errors were encountered: