Skip to content

Show sharing recommendations - #14180

Merged
rullzer merged 2 commits into
masterfrom
feature/sharing-recommendations
Feb 25, 2019
Merged

Show sharing recommendations#14180
rullzer merged 2 commits into
masterfrom
feature/sharing-recommendations

Conversation

@ChristophWurst

@ChristophWurstChristophWurst commented Feb 13, 2019

Copy link
Copy Markdown
Member
  • Show recommendation on input focus
  • Client-side logic to show recommendations
  • Server-side logic to query recommendations

Bugs:

  • Does not render the label correctly
  • Might miss some share types
  • Loading spinner shouldn't be active while recommendations are shown
  • Loading spinner appears on second render but does not hide anymore can't reproduce anymore

@ChristophWurst

This comment has been minimized.

@juliusknorr

This comment has been minimized.

Comment threadapps/files_sharing/lib/Controller/ShareesAPIController.php
@ChristophWurst

This comment has been minimized.

@ChristophWurstChristophWurst added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Feb 21, 2019
@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

@blizzz please have a look. I think most of this code was originally from you 🙏

Note: there's a bit of duplication going on in the methods. They are very similar and yet slightly different. I don't know the code well enough to refactor it unfortunately, otherwise I would have tried to clean it up.

@skjnldsvskjnldsv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Works great!!
Very nice work @ChristophWurst 👌

The design is off though, but I'm guessing this have nothing to do with this pr ? :)
capture d ecran_2019-02-21_09-07-29

@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

The design is off though, but I'm guessing this have nothing to do with this pr ? :)

Nope, I did not change any of the design here but just the behavior ;)

@jancborchardtjancborchardt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Working nicely! :)

I guess the "Search globally" entry to appear on entry of search terms (to search the global user directory) is separate from this?

@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

The design is off though, but I'm guessing this have nothing to do with this pr ? :)

Nope, I did not change any of the design here but just the behavior ;)

I guess the "Search globally" entry to appear on entry of search terms (to search the global user directory) is separate from this?

Yep, this will happen in another PR!

@ChristophWurst
ChristophWurstforce-pushed the feature/sharing-recommendations branch from 33235cb to 4a2c3acCompareFebruary 21, 2019 15:07
@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

Lots of sh: 1: kill: No such process so I think this should be fine to merge. @juliushaertl@skjnldsv objections?

@ChristophWurstChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Feb 21, 2019
@skjnldsv

skjnldsv commented Feb 21, 2019

Copy link
Copy Markdown
Member

@ChristophWurst restarted just in case https://drone.nextcloud.com/nextcloud/server/16123

@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

And now other tests fail. What does this tell us? 🙈

@rullzer

This comment has been minimized.

@ChristophWurst
ChristophWurstforce-pushed the feature/sharing-recommendations branch 2 times, most recently from c25a839 to e596737CompareFebruary 22, 2019 14:25
ChristophWurstand others added 2 commits February 25, 2019 07:25
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@rullzer
rullzerforce-pushed the feature/sharing-recommendations branch from e596737 to c484507CompareFebruary 25, 2019 06:29
@rullzer
rullzer merged commit d48cc08 into masterFeb 25, 2019
@rullzer
rullzer deleted the feature/sharing-recommendations branch February 25, 2019 08:52
@blizzz

Copy link
Copy Markdown
Member

@blizzz please have a look. I think most of this code was originally from you

I only refactored it back in the day, apart of that I don't have much more insights to it than others :)

@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

Okay, no problem :)

'name' => 'ShareesAPI#findRecommended',
'url' => '/api/v1/sharees_recommended',
'verb' => 'GET',
],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please document this in the docs.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishenhancementfeature: sharing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@ChristophWurst@juliusknorr@skjnldsv@rullzer@blizzz@MorrisJobke@jancborchardt