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

Allow bloodhound rateLimitWait params to be settable in gmf #3343

Merged
merged 3 commits into from Jan 11, 2018

Conversation

llienher
Copy link
Member

@llienher llienher commented Jan 8, 2018

This PR allow the rateLimitWait parameter, that is used with the Bloodhound engine for debouncing fulltext-search requests, to be set up. That allow as well to set different values for each interfaces. Like mobile could get a higher value in order to get less request / bandwidth used with the backend for fulltext-search.

If the value is not set from the directive html, or not existing in the interface controller, the search component is going to set it to the default value: 50 ms. This was the value we previously hard-coded. There should be no issue for project that have outdated html for the search component as the component is going to initialize the value correctly in any cases.

I updated every interface, only desktop_alt have a different value that the default one.
Fixed the gmf example as well.

@llienher llienher requested a review from fredj January 8, 2018 11:13
@@ -298,6 +302,12 @@ gmf.SearchController = function($scope, $compile, $timeout, $injector, gettextCa
*/
this.placeholder;

/**
* @type {string}
Copy link
Contributor

Choose a reason for hiding this comment

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

@type {string} shouldn't this be @type {number}

@llienher llienher added this to the 2.2 milestone Jan 11, 2018
@llienher llienher self-assigned this Jan 11, 2018
@llienher llienher merged commit 1bfc841 into 2.2 Jan 11, 2018
@llienher llienher deleted the gmf-search-delay branch January 11, 2018 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants