Skip to content
This repository has been archived by the owner on Nov 22, 2017. It is now read-only.

Add file system based saved searches. #263

Open
wants to merge 1 commit into
base: kibana-ruby
Choose a base branch
from
Open

Add file system based saved searches. #263

wants to merge 1 commit into from

Conversation

bd808
Copy link

@bd808 bd808 commented Jan 22, 2013

A quick and dirty hack to add the ability to save searches to files on the
file system. There are no permissions checks to see who can save, load or
delete a search. The same list of searches is seen by all users of the
instance.

  • Adds "Load" and "Save" buttons to side bar.
  • "Load" button retrieves a list of currently saved searches from server and
    displays a dialog that allows the user to choose a search to load into the
    current session or to delete.
  • "Save" prompts for a name and sends the current search hash to the server
    for storage under that name. If the current search started from a saved
    search, the same name will be pre-populated in the save dialog.
  • Adds restful GET, PUT and DELETE endpoints at /api/saved/:name for server
    side handling of storage/retrieval activities.

Related to issue #114 at https://github.com/rashidkpc/Kibana

I won't be sad if this pull request is deemed to be duplicate, junk or crazy, but I thought there might be some folks out there who would like to use this or start their own hacks based on it.

A quick and dirty hack to add the ability to save searches to files on the
file system. There are no permissions checks to see who can save, load or
delete a search. The same list of searches is seen by all users of the
instance.

- Adds "Load" and "Save" buttons to side bar.
- "Load" button retrieves a list of currently saved searches from server and
  displays a dialog that allows the user to choose a search to load into the
  current session or to delete.
- "Save" prompts for a name and sends the current search hash to the server
  for storage under that name. If the current search started from a saved
  search, the same name will be pre-populated in the save dialog.
- Adds restful GET, PUT and DELETE endpoints at /api/saved/:name for server
  side handling of storage/retrieval activities.

Related to issue #114 at https://github.com/rashidkpc/Kibana
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant