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

don't filter results while sharing #5645

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

akhil1508
Copy link
Contributor

@akhil1508 akhil1508 commented Dec 26, 2023

  • Share only works by display name right now

  • Search by email to share calendar is broken completely as there is a filterBy option in vue-select whose return value defaults to return (label || '').toLocaleLowerCase().indexOf(search.toLocaleLowerCase()) > -1

    • label in our code is set to displayName so only search by displayName works
  • Since we already get our results by searching(DAV & OCS), I don't see why we need the filterBy option in the first place

    • So I just make the return value true
    • In case we do need the option, we should make it check for both displayName and email attributes

Signed-off-by: Akhil <akhil@e.email>
Copy link

codecov bot commented Dec 27, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (f45fc62) 24.45% compared to head (6e1945d) 24.44%.
Report is 7 commits behind head on main.

Files Patch % Lines
.../AppNavigation/EditCalendarModal/SharingSearch.vue 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #5645      +/-   ##
============================================
- Coverage     24.45%   24.44%   -0.01%     
  Complexity      418      418              
============================================
  Files           243      243              
  Lines         10833    10835       +2     
  Branches       1776     1776              
============================================
  Hits           2649     2649              
- Misses         8184     8186       +2     
Flag Coverage Δ
javascript 15.50% <0.00%> (-0.01%) ⬇️
php 61.63% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ChristophWurst
Copy link
Member

Not verified but if the limitation comes from with NcSelect we introduced this limitation with #5323. cc @hamza221

@akhil1508
Copy link
Contributor Author

@ChristophWurst Any update? It is crucial for me to allow share using email addresses :)

I've tested the code and it works well.

@hamza221
Copy link
Contributor

hamza221 commented Jan 5, 2024

@akhil1508 Thank you for your contribution

@hamza221 hamza221 merged commit 976466b into nextcloud:main Jan 5, 2024
35 of 37 checks passed
@hamza221
Copy link
Contributor

hamza221 commented Jan 5, 2024

/backport to stable4.4

@backportbot-nextcloud backportbot-nextcloud bot added the backport-request A backport was requested for this pull request label Jan 5, 2024
@hamza221
Copy link
Contributor

hamza221 commented Jan 5, 2024

/backport to stable4.5

@hamza221
Copy link
Contributor

hamza221 commented Jan 5, 2024

/backport to stable4.6

Copy link

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

@DnlKI
Copy link

DnlKI commented Oct 7, 2024

Relates to #5691

Right now, one can only search for mail addresses and not for names nor groups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews backport-request A backport was requested for this pull request bug Feature: Sharing feedback-requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants