Fix autocomplete limitation bug
jQuery at.js has a hard limit on how many items can be searched. Before it executes it's search function, it limits the array size to 1000 items. We have been hitting this bug because we have more than a thousand users or labels [0][1]. We are planning to replace at.js [2], but in order to fix this bug for now, we have forked at.js [3] and made adjustments, so that it works for our usecases. Performance wise this should have no big impact, as we are rendering a maximum of 5 results in the most cases anyway. The search on the javascript side is rather performant. [0]: https://gitlab.com/gitlab-org/gitlab/issues/204825 [1]: https://gitlab.com/gitlab-org/gitlab/issues/198650 [2]: https://gitlab.com/gitlab-org/gitlab/issues/27240 [3]: https://gitlab.com/gitlab-org/frontend/At.js
Showing
... | @@ -39,6 +39,7 @@ | ... | @@ -39,6 +39,7 @@ |
"@babel/plugin-syntax-dynamic-import": "^7.2.0", | "@babel/plugin-syntax-dynamic-import": "^7.2.0", | ||
"@babel/plugin-syntax-import-meta": "^7.2.0", | "@babel/plugin-syntax-import-meta": "^7.2.0", | ||
"@babel/preset-env": "^7.6.2", | "@babel/preset-env": "^7.6.2", | ||
"@gitlab/at.js": "^1.5.5", | |||
"@gitlab/svgs": "^1.96.0", | "@gitlab/svgs": "^1.96.0", | ||
"@gitlab/ui": "^9.6.0", | "@gitlab/ui": "^9.6.0", | ||
"@gitlab/visual-review-tools": "1.5.1", | "@gitlab/visual-review-tools": "1.5.1", | ||
... | @@ -49,7 +50,6 @@ | ... | @@ -49,7 +50,6 @@ |
"apollo-link": "^1.2.11", | "apollo-link": "^1.2.11", | ||
"apollo-link-batch-http": "^1.2.11", | "apollo-link-batch-http": "^1.2.11", | ||
"apollo-upload-client": "^10.0.0", | "apollo-upload-client": "^10.0.0", | ||
"at.js": "^1.5.4", | |||
"autosize": "^4.0.0", | "autosize": "^4.0.0", | ||
"aws-sdk": "^2.526.0", | "aws-sdk": "^2.526.0", | ||
"axios": "^0.19.0", | "axios": "^0.19.0", | ||
... | ... |
Please register or sign in to comment