-
Notifications
You must be signed in to change notification settings - Fork 173
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
Move users_picker profile custom picker to contacts #4231
base: main
Are you sure you want to change the base?
Conversation
Hi @julien-nc How do I test? What am I looking for. |
@SebastianKrupinski This adds a "profile picker" entry in the smart picker and a reference widget (link preview) for |
a705e1a
to
cfa86a0
Compare
Signed-off-by: Julien Veyssier <[email protected]>
cfa86a0
to
23fc538
Compare
Signed-off-by: Julien Veyssier <[email protected]>
bde8497
to
69b73de
Compare
Signed-off-by: Julien Veyssier <[email protected]>
9090d67
to
4fb561f
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4231 +/- ##
=============================================
- Coverage 66.33% 12.48% -53.85%
- Complexity 263 290 +27
=============================================
Files 25 122 +97
Lines 799 5647 +4848
Branches 0 1216 +1216
=============================================
+ Hits 530 705 +175
- Misses 269 4821 +4552
- Partials 0 121 +121 ☔ View full report in Codecov by Sentry. |
@SebastianKrupinski I made a few more adjustments. CI is green. It is now ready to be tested. |
Dear @julien-nc, Thank you for your contribution!
That is correct for the part of searching. But once a reference is selected, there is no more check in ProfilePickerReferenceProvider. I suggest we test this specific scenario and see how the code behaves. I just want to have clarity on this point before the code goes into the main branch. |
@julien-nc on a higher level, what do you think about moving the app/code into server instead? The picker picks users, not contacts. There is nothing specific to contacts (or event teams) in the code. |
a8bdf1e
to
686282e
Compare
@ChristophWurst Yes we can move it to server. I'd still like to have your opinion on the last changes. We now check the visibility of the profile fields with the ProfileManager. This respects the scopes and the visibility settings.
Now the preview can't display any information that would not be visible by clicking the link to browse the profile page. |
686282e
to
cbc1051
Compare
Signed-off-by: Julien Veyssier <[email protected]>
cbc1051
to
a7cc035
Compare
This replaces #3487. I can't push in the branch there.
@ChristophWurst
About #3487 (review) I'm not sure I see the issue. The frontend is using the
ocs/v2.php/core/autocomplete/get
endpoint which should respect the sharing settings.The reference provider now checks if the profile is enabled or not with the
IAccountManager::PROPERTY_PROFILE_ENABLED
account property.It seems fine to resolve any
/u/USER_ID
link as long as the profile is enabled.