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

prohibit triggering a query when the query is null in the indexVM #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mastermind1981
Copy link

This pull will prohibit launching search when the query is null Object is null.
With this pull we will be able to have a page with eui-filter with a eui-enabled = true without triggering a search when we didn't already have a query and with indexVM.false.

Besides that, no search will be triggered when other attributes of indexVM are changed if the query is null.

In the added code there is a special case when we launch the search even if the query is null, when it's old value is not null. The scenario is this:

  1. User enter a query string and launch the search.
  2. User gets the result.
  3. User remove the query and launch the search.
  4. User gets all the results.

This scenario will work with pull.

To prevent triggering the search on page load ng-init="indexVM.autoLoad = true" must be added.

…s null

There is a special case :
                  // when we launch the search when the query is not null except the case when we query with 
                 // an empty string after we had already launched a search 
                 // ex: query with string1 we got result after we remove the key and launch the search
                // we should get all the results
@mastermind1981 mastermind1981 changed the title prohibit triggering a query when the query attribute in the indexVM i… prohibit triggering a query when the query is null in the indexVM May 25, 2015
@mastermind1981
Copy link
Author

@YousefED could you please check the pull, i don't now if ti will compile fine in ts ?

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.

1 participant