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

Email autocomplete for link shares #30987

Merged
merged 6 commits into from Apr 3, 2018

Conversation

PVince81
Copy link
Contributor

@PVince81 PVince81 commented Apr 3, 2018

Description

Bring back email autocomplete for link shares.

Related Issue

#30670

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@PVince81 PVince81 added this to the development milestone Apr 3, 2018
@PVince81
Copy link
Contributor Author

PVince81 commented Apr 3, 2018

I managed to recover this code from before the squash of #30645.

It doesn't seem to work so maybe it wasn't the latest version. Or there were further changes.

@felixheidecke @DeepDiver1975

// return query data ASAP
query.callback({results: data});

if (query.term.length >= 3) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

plug OC.getCapabilities().files_sharing.search_min_length here.

@codecov
Copy link

codecov bot commented Apr 3, 2018

Codecov Report

Merging #30987 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #30987      +/-   ##
============================================
- Coverage     62.31%   62.29%   -0.02%     
  Complexity    18208    18208              
============================================
  Files          1142     1142              
  Lines         68190    68210      +20     
  Branches       1232     1234       +2     
============================================
  Hits          42494    42494              
- Misses        25335    25355      +20     
  Partials        361      361
Flag Coverage Δ Complexity Δ
#javascript 51.97% <0%> (-0.08%) 0 <0> (ø)
#phpunit 63.47% <0%> (-0.02%) 18208 <0> (ø)
Impacted Files Coverage Δ Complexity Δ
apps/dav/lib/CardDAV/AddressBookImpl.php 72.61% <0%> (-1.78%) 26 <0> (ø)
core/js/sharedialogmailview.js 57.44% <0%> (-6.84%) 0 <0> (ø)
core/ajax/share.php 0% <0%> (ø) 0 <0> (ø) ⬇️
lib/public/Util/UserSearch.php 100% <0%> (ø) 4% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6e2b8aa...a6aebb5. Read the comment docs.

@DeepDiver1975 DeepDiver1975 force-pushed the select2-link-share-email-autocomplete branch from 7347268 to 7e91eca Compare April 3, 2018 10:25
@DeepDiver1975
Copy link
Member

What is this? @PVince81 @tomneedham

There was 1 failure:

1) Test\Repair\RepairOrphanedSubshareTest::testLargeSharesWithOrphans
Failed asserting that 82 matches expected 81.

/drone/src/tests/lib/Repair/RepairOrphanedSubshareTest.php:288

--

@PVince81
Copy link
Contributor Author

PVince81 commented Apr 3, 2018

this was merged recently, it's from @sharidas' #30186, maybe a random test side effect of some sorts :-S

let's see if reproducible

@PVince81
Copy link
Contributor Author

PVince81 commented Apr 3, 2018

  • add search_min_length on backend as well

@PVince81
Copy link
Contributor Author

PVince81 commented Apr 3, 2018

Tested:

  • TEST: local users not returned

  • TEST: federated users not returned

  • TEST: contacts from contacts app returned

  • TEST: min-length respected on client side

  • TEST: min-length respected on backend

@DeepDiver1975 DeepDiver1975 force-pushed the select2-link-share-email-autocomplete branch from cc31af1 to 6db6fcc Compare April 3, 2018 14:16
@PVince81
Copy link
Contributor Author

PVince81 commented Apr 3, 2018

👍 for the changes from @felixheidecke @DeepDiver1975 (I can't approve my own PR)

CI will likely fail randomly due to issues, waiting for #30992

@PVince81
Copy link
Contributor Author

PVince81 commented Apr 3, 2018

@ownclouders rebase

@ownclouders
Copy link
Contributor

Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently ⚠️

@ownclouders
Copy link
Contributor

Automated rebase with GitMate.io was successful! 🎉

@ownclouders ownclouders force-pushed the select2-link-share-email-autocomplete branch from 6db6fcc to a6aebb5 Compare April 3, 2018 16:17
@PVince81 PVince81 merged commit da41f5b into master Apr 3, 2018
@PVince81 PVince81 deleted the select2-link-share-email-autocomplete branch April 3, 2018 19:39
@PVince81
Copy link
Contributor Author

PVince81 commented Apr 3, 2018

stable10: #30998

@lock
Copy link

lock bot commented Jul 31, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants