-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
sharedWithDisplayName & sharedWithAvatar #5280
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
Conversation
|
@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. |
|
This PR fix nextcloud/circles#78 and allow Circles to display its own avatar |
LukasReschke
left a comment
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
13 everywhere
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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 🙈
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nickvergessen fixed
|
you know have few tests @LukasReschke |
lib/public/Share/IShare.php
Outdated
| public function setSharedWithAvatar($src); | ||
|
|
||
| /** | ||
| * Get the display name of the receiver of this share. |
There was a problem hiding this comment.
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.
|
@daita Should we try to get this in 13 or is 14 fine? |
|
14 is fine |
a5568fe to
a5b1357
Compare
|
Rebased on current master, squashed some commits and updated the |
MorrisJobke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The avatars work nicely 👍
|
cc @nextcloud/sharing |
|
I just tried it... but no avatars. Maybe something got lost during the rebase? |
|
@daita Also there is another merge conflict :( |
a5b1357 to
836ac8e
Compare
Codecov Report
@@ 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
|
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
I have fixed that too; avatars were not shown in the list due to ed4b445, as since that commit 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. |
|
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>
836ac8e to
4f5814c
Compare
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! |

Add displayName and Avatatar to IShare.