photos icon indicating copy to clipboard operation
photos copied to clipboard

Select root folder for timeline

Open Mikescops opened this issue 4 years ago • 17 comments

Closes #141

Mikescops avatar Oct 23 '20 22:10 Mikescops

@skjnldsv I don't know why but .jpg (which are JPEG files) are not taken in account, for some reasons, and as of now i can't find why..

Mikescops avatar Oct 23 '20 22:10 Mikescops

Seems like the dav:or is not working and only the first mime type is taken in account.

Mikescops avatar Oct 24 '20 06:10 Mikescops

This only provides for one root folder, right? That would be a problem for me and I assume other folks too since there's a couple places photos go if you use the out-of-the-box defaults - brand new accounts have a "Photos" folder created for them, so that's a natural place to put them, but the Android app auto uploads photos to the "InstantUpload" folder by default.

strugee avatar Oct 24 '20 16:10 strugee

But when there is no photos directory select manually the app should function as it does with the default settings, I would assume. So this would also some your issue @strugee. Am I correct @Mikescops? :)

ntimo avatar Oct 24 '20 17:10 ntimo

@ntimo right, that would be a workaround. But then I have the original issue described in #141 again.

strugee avatar Oct 24 '20 18:10 strugee

By default no difference with the current version, but you can select one folder from where images on your timeline will be fetched from.

Mikescops avatar Oct 24 '20 20:10 Mikescops

By default no difference with the current version, but you can select one folder from where images on your timeline will be fetched from.

@Mikescops right, to clarify, I'm not suggesting this would break existing workflows - I'm just saying that the feature might not actually be complete enough for many(?) users due to defaults in the server/Android app. Speaking only for myself, for example, I would not be able to use this feature since given the way my Nextcloud is organized, if I turned it on I would end up missing a ton of images that I'd want to see in the Photos app.

@jancborchardt I'd be interested in hearing if you agree or if you think it's not worth the additional interface/code complexity.

strugee avatar Oct 31 '20 03:10 strugee

It's outside of the scope of this PR, if you're not happy with it, open a separate issue after it's merged, thanks.

Mikescops avatar Oct 31 '20 08:10 Mikescops

Which release will this go into? I'm looking forward to being able to use photos again, thank you @Mikescops

saywebsolutions avatar Nov 12 '20 17:11 saywebsolutions

NC 21 at least, for now we're stuck with a server issue.

Mikescops avatar Nov 12 '20 17:11 Mikescops

Hi! Sorry to bring this back, but I am hopeful this merge will resolve my issue. Is there any status update on this? I saw the 'server problem' pull had been merged, is there anything else that needs to be done or fixed in order to get this in asap?

StarSmasher44 avatar Dec 29 '20 19:12 StarSmasher44

I saw the 'server problem' pull had been merged, is there anything else that needs to be done or fixed in order to get this in asap?

Hey! The server hasn't received anything regarding this fix yet. Unfortunately this is not yet possible :/

skjnldsv avatar Dec 30 '20 08:12 skjnldsv

I saw the 'server problem' pull had been merged, is there anything else that needs to be done or fixed in order to get this in asap?

Hey! The server hasn't received anything regarding this fix yet. Unfortunately this is not yet possible :/

Ah well that sucks, I was referring to this one: https://github.com/nextcloud/server/pull/17941 mentioned some posts up.

But would you happen to know what still needs to be done/added/fixed to make this work? I have a limited background in web development languages so I might be able to pull something through, even though I highly doubt it.

StarSmasher44 avatar Dec 30 '20 10:12 StarSmasher44

But would you happen to know what still needs to be done/added/fixed to make this work? I have a limited background in web development languages so I might be able to pull something through, even though I highly doubt it.

It require a fair amount of rework on the backend dav search implementation :/

skjnldsv avatar Dec 30 '20 11:12 skjnldsv

But would you happen to know what still needs to be done/added/fixed to make this work? I have a limited background in web development languages so I might be able to pull something through, even though I highly doubt it.

It require a fair amount of rework on the backend dav search implementation :/

Sorry for being overly asking questions or coming off as pushy in any regard, I am merely just trying to figure out a good entry point, I looked through the code twice but I can't find an obvious stopping point beside the mentioned error with single vs multiple mime types being used.

And I am unsure if you even know enough of this PR yourself to respond (It isn't easy going off using other people's work as a starting point for yourself, imo) but I still have no idea what is actually wrong with this code, what needs fixing and what doesn't.

To me it looks mostly fine, given all it really needs to do is enter/search a single folder and mark that as the 'Photos' folder for NextCloud, if I get this correct.

If I have more information I may try to play around with this to see if I can bring it to a working state somehow, I have a bad taste for using OneDrive as my image backup server ever since Samsung forced it upon me, and this still adds in 600 images from my several Unity projects.

StarSmasher44 avatar Dec 30 '20 12:12 StarSmasher44

@StarSmasher44 I suggest you read the original issues like https://github.com/nextcloud/server/pull/17941 https://github.com/nextcloud/photos/issues/141 entirely (with the folded comments too)

Again, this requires a fix on server. Currently there is a hard limitation for our webdav SEARCH that forces you to limit the search to a user home for performance issues. That is why we don't have external storage nor groupfolders. And if you ignore this, you will not be able to properly filter it anymore. This requires a big revamp for al the following points to be implemented:

  • Allow to search/filter by tags (favourites)
  • Allow to search/filter by mime
  • Allow to search/filter by user
  • Allow to search/filter within a folder OR from root (currently only root is allowed with filtering)
  • Allow to limit results
  • Allow to sort results

Currently, the combo search-from-folder AND filter-by-owner is missing. It's not enabled (hard-coded on server) Once it is here, we'll be able to tell the Photos app to search from within the provided root folder instead of the default root.

skjnldsv avatar Jan 07 '21 09:01 skjnldsv

A rewrite sounds like a long term goal. Should we just stick with the original Gallery plugin until then? I think most people's Photo apps are a mix-mash of random images from all over their cloud at this point due to this issue which makes it not viable.

@StarSmasher44 I suggest you read the original issues like nextcloud/server#17941 #141 entirely (with the folded comments too)

Again, this requires a fix on server. Currently there is a hard limitation for our webdav SEARCH that forces you to limit the search to a user home for performance issues. That is why we don't have external storage nor groupfolders. And if you ignore this, you will not be able to properly filter it anymore. This requires a big revamp for al the following points to be implemented:

  • Allow to search/filter by tags (favourites)
  • Allow to search/filter by mime
  • Allow to search/filter by user
  • Allow to search/filter within a folder OR from root (currently only root is allowed with filtering)
  • Allow to limit results
  • Allow to sort results

Currently, the combo search-from-folder AND filter-by-owner is missing. It's not enabled (hard-coded on server) Once it is here, we'll be able to tell the Photos app to search from within the provided root folder instead of the default root.

timsayshey avatar Jan 29 '21 15:01 timsayshey

@artonge I guess this PR is obsolete with #2319 having been merged?

AndyScherzinger avatar Mar 21 '24 08:03 AndyScherzinger