Skip to content

sharedWithDisplayName & sharedWithAvatar - #5280

Merged
MorrisJobke merged 3 commits into
masterfrom
shared-with-display-name
Jul 13, 2018
Merged

sharedWithDisplayName & sharedWithAvatar#5280
MorrisJobke merged 3 commits into
masterfrom
shared-with-display-name

Conversation

@ArtificialOwl

@ArtificialOwlArtificialOwl commented Jun 7, 2017

Copy link
Copy Markdown
Member

Add displayName and Avatatar to IShare.

@mention-bot

Copy link
Copy Markdown

@daita, thanks for your PR! By analyzing the history of the files in this pull request, we identified @rullzer, @blizzz and @schiessle to be potential reviewers.

@ArtificialOwl

Copy link
Copy Markdown
MemberAuthor

selection_006

This PR fix nextcloud/circles#78 and allow Circles to display its own avatar

@ArtificialOwlArtificialOwl added the 3. to review Waiting for reviews label Jun 7, 2017
LukasReschke
LukasReschke previously requested changes Jun 12, 2017

@LukasReschkeLukasReschke 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.

Can I haz some unit tests on the new functions in Share.php? 😇

* Set the display name of the receiver of this share.
*
* @param string $displayName
* @return \OCP\Share\IShare The modified object

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.

13 everywhere

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.

can I go 12.0.1 ?

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.

I don't think we want to backport this 🙈

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.

Why is wrong on having this on 12.0.1 ?

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.

We only backport serious bug fixes usually 😄

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.

ok

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.

@MorrisJobkeMorrisJobke added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Jun 13, 2017
@ArtificialOwl

Copy link
Copy Markdown
MemberAuthor

you know have few tests @LukasReschke

Comment threadlib/public/Share/IShare.php Outdated
public function setSharedWithAvatar($src);

/**
* Get the display name of the receiver of this share.

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.

I guess you mean avatar.

@MorrisJobke

Copy link
Copy Markdown
Member

@daita Should we try to get this in 13 or is 14 fine?

@ArtificialOwl

Copy link
Copy Markdown
MemberAuthor

14 is fine

@MorrisJobke
MorrisJobkeforce-pushed the shared-with-display-name branch from a5568fe to a5b1357CompareMarch 7, 2018 14:35
@MorrisJobke

Copy link
Copy Markdown
Member

Rebased on current master, squashed some commits and updated the @since PHPDoc tags.

@MorrisJobke
MorrisJobke dismissed stale reviews from nickvergessen and LukasReschkeMarch 7, 2018 14:35

Fixed

@nextcloudnextcloud deleted a comment from codecovBotMar 7, 2018

@MorrisJobkeMorrisJobke 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.

The avatars work nicely 👍

@MorrisJobke

Copy link
Copy Markdown
Member

cc @nextcloud/sharing

@MorrisJobkeMorrisJobke added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Mar 7, 2018
@MorrisJobke
MorrisJobke requested a review from rullzerMarch 7, 2018 14:53
@schiessle

Copy link
Copy Markdown
Member

I just tried it... but no avatars. Maybe something got lost during the rebase?

@MorrisJobke

Copy link
Copy Markdown
Member

@daita Also there is another merge conflict :(

@MorrisJobke

Copy link
Copy Markdown
Member

Merge conflict caused by 2c073dc - maybe @danxuliu could help to rebase this.

@MorrisJobkeMorrisJobke added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Apr 3, 2018
@danxuliu
danxuliuforce-pushed the shared-with-display-name branch from a5b1357 to 836ac8eCompareApril 17, 2018 11:27
@codecov

codecovBot commented Apr 17, 2018

Copy link
Copy Markdown

Codecov Report

Merging #5280 into master will increase coverage by 0.02%.
The diff coverage is 87.87%.

@@ Coverage Diff @@## master #5280 +/- ##
============================================
+ Coverage 51.69% 51.71% +0.02% - Complexity 25744 25751 +7 
============================================
Files 1643 1643 Lines 96506 96536 +30 Branches 1393 1396 +3 ============================================
+ Hits 49888 49928 +40 + Misses 46618 46608 -10
Impacted FilesCoverage ΔComplexity Δ
core/js/sharedialogshareelistview.js49.48% <100%> (+1.06%)0 <0> (ø)⬇️
...iles_sharing/lib/Controller/ShareAPIController.php69.95% <100%> (+1.92%)161 <0> (+1)⬆️
core/js/sharedialogresharerinfoview.js91.42% <50%> (-2.52%)0 <0> (ø)
core/js/shareitemmodel.js88.02% <80%> (-0.13%)0 <0> (ø)
lib/private/Share20/Share.php93.79% <85.71%> (-0.87%)63 <6> (+6)
apps/files_trashbin/lib/Trashbin.php72.7% <0%> (+0.24%)136% <0%> (ø)⬇️
core/js/js.js65.96% <0%> (+0.55%)0% <0%> (ø)⬇️

@danxuliu

Copy link
Copy Markdown
Member

Merge conflict caused by 2c073dc - maybe @danxuliu could help to rebase this.

I have rebased again and fixed the conflict; now the display name provided by the circle share is used and, if none is given, then the old code to extract it from share_with is used.

I just tried it... but no avatars. Maybe something got lost during the rebase?

I have fixed that too; avatars were not shown in the list due to ed4b445, as since that commit modSeed was false when using circle avatars, and thus the imageplaceholderseed CSS class was not set.

Note, however, that the default avatar is still shown in the share dialog; showing the circle avatar there would require adding it in the Circles app and then using it from the dialog.

@danxuliu

Copy link
Copy Markdown
Member

Oops, tests are failing :-) I will fix them.

Signed-off-by: Maxence Lange <maxence@nextcloud.com>
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Signed-off-by: Maxence Lange <maxence@nextcloud.com>
Signed-off-by: Maxence Lange <maxence@nextcloud.com>
@danxuliu
danxuliuforce-pushed the shared-with-display-name branch from 836ac8e to 4f5814cCompareMay 20, 2018 23:36
@danxuliudanxuliu added 3. to review Waiting for reviews and removed 2. developing Work in progress labels May 20, 2018
@danxuliu

Copy link
Copy Markdown
Member

Oops, tests are failing :-) I will fix them.

I forgot to push... 🤦

Anyway, I made a good use of my slip by adding more unit tests ;-) I have also rebased the commits onto current master.

This pull request should be ready for review again!

@MorrisJobkeMorrisJobke added the stale Ticket or PR with no recent activity label Jun 19, 2018
@MorrisJobke

Copy link
Copy Markdown
Member

@rullzer@danxuliu Mind to give a final review? Or should we push it to 15?

@nextcloud-botnextcloud-bot removed the stale Ticket or PR with no recent activity label Jun 29, 2018
@MorrisJobke

Copy link
Copy Markdown
Member

@rullzer@danxuliu Mind to give a final review? Or should we push it to 15?

Ping 🏓

@MorrisJobke

Copy link
Copy Markdown
Member

@skjnldsv@danxuliu Mind to +1?

@MorrisJobke
MorrisJobke merged commit 82021b2 into masterJul 13, 2018
@MorrisJobke
MorrisJobke deleted the shared-with-display-name branch July 13, 2018 15:30
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@ArtificialOwl@mention-bot@MorrisJobke@schiessle@danxuliu@nickvergessen@LukasReschke@rullzer@nextcloud-bot