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

Fix inconsistent idQueue and ids in saved queries #730

Closed
wants to merge 1 commit into from
Closed

Fix inconsistent idQueue and ids in saved queries #730

wants to merge 1 commit into from

Conversation

octplane
Copy link

  • Some dashboard can be saved using non-compact ids array for queries,
  • PR ensures that nextId() returns a valid identifier:
    • either one from the queue that is not used in the ids array
    • or one that is not used in the array
    • of the usual ids.length when ids is compact and idQueue is empty.

also fix _q helper with a method. Debugging show that there the variable was not always up to date re the idQueue

- Some dashboard can be saved using non-compact ids array for queries,
- PR ensures that nextId() returns a valid identifier:
  - either one from the queue that is not used in the ids array
  - or one that is not used in the array
  - of the usual ids.length when ids is compact and idQueue is empty.
@octplane
Copy link
Author

I've completed the CLA.

Let me know if I should open a bug (although I'm not able to reproduce the steps that lead to a dashboard "corruption", with its first search starting a index 2 instead of 1).

@rashidkpc rashidkpc closed this in a02db6d Dec 2, 2013
bpezan pushed a commit to bpezan/kibana that referenced this pull request Dec 4, 2013
* master:
  Moved doc task to the end of the default task chain
  removed y_as_bytes, replaced with y_format
  Remove console.log
  Closes elastic#538. Closes elastic#722
  Potential fix for elastic#621
  More small table performance improvements
  Improve performance in the table. Re elastic#719 and elastic#732
  Remove idQueue from filter and query services in dashboards
  Eliminate idQueue property from filterSrv and querySrv. Replace with binary search for smallest id. Closes elastic#730. Closes elastic#739
  Skeleton API docs
  Doc updates
  Added scratchy tasks and config.js docs
  Bytes should not be default
  Fixing unsafe html binding
  fixed numeric terms in topN query
  do not auto-enable saved filters
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