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

Favorite / filter by tag file lists do not have share status icon #22708

Closed
PVince81 opened this issue Feb 29, 2016 · 13 comments
Closed

Favorite / filter by tag file lists do not have share status icon #22708

PVince81 opened this issue Feb 29, 2016 · 13 comments

Comments

@PVince81
Copy link
Contributor

Steps

  1. Create a folder "test"
  2. Create a file "test/test.txt"
  3. Mark a file "test/test.txt" as favorite
  4. Tag that file with a tag "test1"
  5. Share this file with link or with another user
  6. Go to "Favorites" file list and check the share icon in the list row
  7. Go to "Tags" file list, filter by "test1", check the share icon in the list row

Expected

Status shows that the file is shared

Actual

Status looks unshared

This is because now we use the OCS Share API's "get shares with subfiles from a given folder". However in these lists we're not technically in any folder, so we can't find the matching statuses.

It looks like the only way to solve this properly is to add new Webdav properties that contain sharing status information like recipients and share types.

@rullzer @DeepDiver1975

This is a regression from 8.2.2 but would be a bigger change, so setting it to 9.0.1 to investigate.
Normally I'd set it to 9.1 but as it's a regression, we'll need a proper solution soon...
However, since it only affects "Favorites" and "Tag filtered lists" it's not as bad as if it was "All files".

@cmonteroluque do you agree ? (setting to 9.0 until we discussed this)

@PVince81 PVince81 added this to the 9.0-current milestone Feb 29, 2016
@rullzer
Copy link
Contributor

rullzer commented Feb 29, 2016

I really like this approach of exposing this information via webdav. So much more elegant than the calls to the OCS Share API. While the webdav call needs to happen anyway.

@rullzer
Copy link
Contributor

rullzer commented Feb 29, 2016

But I agree also that 9.0.0 is way to risky

@PVince81
Copy link
Contributor Author

Discussed with @cmonteroluque, moving to 9.0.1 for now. I hope we can find a quickfix until then.

@PVince81 PVince81 modified the milestones: 9.0.1-next-maintenance, 9.0-current Feb 29, 2016
@PVince81
Copy link
Contributor Author

PVince81 commented Mar 2, 2016

POC PR for new Webdav property: #22789

@PVince81 PVince81 self-assigned this Mar 9, 2016
@PVince81
Copy link
Contributor Author

PVince81 commented Mar 9, 2016

@DeepDiver1975 you also mentioned the extra Webdav property back when we discussed this, so I guess you'll agree with the proposed solution ?

I'll carry on working on it to bring it to completion.

@PVince81
Copy link
Contributor Author

PVince81 commented Mar 9, 2016

Unfortunately this means "new APIs" in 9.0.1 due to the new Webdav property, if we consider such property an API...

@karlitschek
Copy link
Contributor

hmm. not ideal. but a new property is a relatively small change

@PVince81
Copy link
Contributor Author

Yeah, but to get the value of this property we need to go to the share manager.

On the other hand, only the web UI will be using this in 9.0 (and triggering the new logic when explicitly requesting the property) so it won't break other stuff.

I'll finish the implementation then. Thanks for the feedback.

@PVince81
Copy link
Contributor Author

Looks like the new property isn't enough.

Well, the new property will only fix the "Tags" section to also have share info, since it also uses Webdav.

However the "Favorites" part is older and doesn't use Webdav, and I'm not sure we want to do this in a minor release. I'll see if I can find a way to pass around the same info in its own API call.

@PVince81
Copy link
Contributor Author

Raised #23263 for 9.1 to port the "Favorites" file list to use Webdav too.

@PVince81
Copy link
Contributor Author

PR is done: #22789
For "favorites" is just changed its API to also return the share types.

@MorrisJobke MorrisJobke modified the milestones: 9.1-current, 9.0.1-current-maintenance Mar 21, 2016
@PVince81
Copy link
Contributor Author

Was fixed in 9.0 through #22789

@lock
Copy link

lock bot commented Aug 4, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants