-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
New search standard and user search #9912
Conversation
Conflicts :/ |
0f3876d
to
15e179c
Compare
15e179c
to
6d841e6
Compare
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.
👍 Works nicely also with multiple instances on one page.
Codecov Report
@@ Coverage Diff @@
## master #9912 +/- ##
===========================================
+ Coverage 52.08% 52.1% +0.01%
Complexity 25910 25910
===========================================
Files 1642 1642
Lines 95898 95721 -177
Branches 1318 1289 -29
===========================================
- Hits 49950 49873 -77
+ Misses 45948 45848 -100
|
@MorrisJobke done |
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.
Tested and works 👍
I found another small issue:
|
@MorrisJobke the app management need to be updated to this standard as well, I'll handle it in a sec :) |
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: Morris Jobke <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
72e16a6
to
259f70d
Compare
} | ||
} | ||
// Show search | ||
document.getElementById('searchbox').style.display = 'block'; |
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.
This line is wreaking havoc on my automated tests, throwing this on the login page:
TypeError: document.getElementById(...) is null in search.js:84:4
initialize http://localhost/core/search/js/search.js:84:4
Search http://localhost/core/search/js/search.js:37:3
initialize http://localhost/core/search/js/searchprovider.js:384:11
Search http://localhost/core/search/js/searchprovider.js:34:3
<anonymous> http://localhost/core/search/js/searchprovider.js:432:16
_.delay/< http://localhost/core/vendor/core.js:781:14
Firefox shows this as well.
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.
It's a deeper issue as there is no real reason why the search needs to me initiated on the login page :p
Since this patch the search icon/bar is visible on any app again, although there might not be search functionality available, eg activity, talk, settings, … Can we do something about this? |
@nickvergessen this shouldn't. Who is registering the search on those apps? |
I added a break point at
¯\(ツ)/¯ |
This registration shouldn't be there on every page :/ |
This is a tricky one!
Fixes #2657
new OCA.Search(searchfunction, resetfunction)
OCA.Search
is nowOCA.Search.Core
to ensure devs migrate their search system to this as well.