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

[WIP] Added tags/favorites support #2

Closed
wants to merge 21 commits into from
Closed

[WIP] Added tags/favorites support #2

wants to merge 21 commits into from

Conversation

PVince81
Copy link

🚧 WIP

@PVince81
Copy link
Author

@nickvergessen FYI

This is still WIP and doesn't work (JS loading issues, etc)

@PVince81
Copy link
Author

The "favorites" list is now populated. It is extremely experimental and uses a horribly wrong* approach. It seems we'll need to make many changes to core to support a proper approach.

@icewind1991 I'll need your support for this: 3b864a1#diff-19747901543244a55807cbd25aac2737R71

Seems we'll need to add new API to be able to resolve fileids to proper Storage + FileInfo (FileInfo needs a Storage instance, which might be resolve-able based on the file id).

Also the file list will need to return the correct path because we have a flat list of files, but every file must know its path relative to the current user (for shared files)

* Core
*/
$container->registerService('UserId', function(IContainer $c) {
return \OCP\User::getUser();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mhm. Why not inject IUser/IUserSession instead?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied this from another app, so you might want to ask that person the same question 😉

@PVince81
Copy link
Author

PVince81 commented Dec 1, 2014

  • BUG: cannot tag on external storage...

@PVince81
Copy link
Author

PVince81 commented Dec 1, 2014

  • BUG: cannot favorite a shared folder or subfolder, only files

@PVince81
Copy link
Author

PVince81 commented Dec 3, 2014

  • BUG: creating a folder doesn't close "new" dropdown
  • BUG: favorite icon column too wide

@PVince81
Copy link
Author

PVince81 commented Dec 4, 2014

  • test: sharing multiple times with same user, go to "Favorites" section
  • TODO: delete/unshare hooks must delete tags

@PVince81
Copy link
Author

PVince81 commented Dec 4, 2014

Needs the following changes from core to work:

@PVince81
Copy link
Author

PVince81 commented Dec 4, 2014

@DeepDiver1975
Copy link

@PVince81 please use this travis.yaml - https://github.com/owncloud/files_antivirus/blob/master/.travis.yml - it will already setup core as required - including oracle - THX

@PVince81
Copy link
Author

PVince81 commented Dec 5, 2014

Ok thanks. Thing is, I used the ocdev tool and it auto-generated the Travis config.
Should I update ocdev then as well to use that ?

@DeepDiver1975
Copy link

Should I update ocdev then as well to use that ?

that would be great - THX

@PVince81
Copy link
Author

Obsolete. Favorites feature was moved to core owncloud/core#12360 as suggested by @jancborchardt

This means the "metadata" app will stay empty until we work on the next step which is providing tags support (tag management, etc) inside this separate app.

@PVince81 PVince81 closed this Dec 11, 2014
@PVince81 PVince81 reopened this Dec 11, 2014
@PVince81
Copy link
Author

Hmm thinking about it, let's keep it open but I'll strip out the favorites part.
We probably still want to keep the basic stuff and travis test case for the future.

@PVince81
Copy link
Author

  • TODO: strip down this PR to the minimum, groundwork for the future tags feature

@PVince81 PVince81 closed this Jan 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants