Uh oh!
There was an error while loading. Please reload this page.
New search standard and user search - #9912
Conversation
MorrisJobke
commented
Jun 19, 2018
Conflicts :/ |
juliusknorr
left a comment
There was a problem hiding this comment.
👍 Works nicely also with multiple instances on one page.
MorrisJobke
commented
Jun 19, 2018
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
|
skjnldsv
commented
Jun 19, 2018
@MorrisJobke done |
MorrisJobke
commented
Jun 19, 2018
I found another small issue:
|
skjnldsv
commented
Jun 19, 2018
@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) <skjnldsv@protonmail.com>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| } | ||
| } | ||
| // Show search | ||
| document.getElementById('searchbox').style.display = 'block'; |
There was a problem hiding this comment.
This line is wreaking havoc on my automated tests, throwing this on the login page:
TypeError: document.getElementById(...)isnullinsearch.js:84:4initializehttp://localhost/core/search/js/search.js:84:4Searchhttp://localhost/core/search/js/search.js:37:3initializehttp://localhost/core/search/js/searchprovider.js:384:11Searchhttp://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:14Firefox shows this as well.
There was a problem hiding this comment.
It's a deeper issue as there is no real reason why the search needs to me initiated on the login page :p
nickvergessen
commented
Jul 18, 2018
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? |
skjnldsv
commented
Jul 18, 2018
@nickvergessen this shouldn't. Who is registering the search on those apps? |
I added a break point at ¯\(ツ)/¯ |
skjnldsv
commented
Jul 18, 2018
This registration shouldn't be there on every page :/ |



This is a tricky one!
Fixes#2657
new OCA.Search(searchfunction, resetfunction)OCA.Searchis nowOCA.Search.Coreto ensure devs migrate their search system to this as well.