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

Inclusion of jQuery features? #15

Open
tgharold opened this issue Jun 30, 2013 · 0 comments
Open

Inclusion of jQuery features? #15

tgharold opened this issue Jun 30, 2013 · 0 comments

Comments

@tgharold
Copy link
Contributor

I've started working on adding stuff that requires jQuery in my 'jquery' branch. tgharold@3cf2046

It's not ready for a pull into the master, but it is working for auto-refreshing the graph on the details page. Current version is hard-coded to reload the graph every 10 seconds.

My plan is that there will be a set of config file boolean parameters that can be set to enable this behavior. The refresh interval would be tuned by an "aggressiveness" parameter (default of 200). Higher "aggressiveness" values would result in more frequent refreshes of the graph. For a graph which is 86400 seconds wide, the default refresh would be (86400 / 200) or every 432 seconds. For a graph that is 7200 seconds wide, refresh time would be (7200/200) = 36 seconds.

Minimum aggressiveness value would be 1, maximum aggressiveness value would be 1000.

In cases where auto-refresh is enabled, the 'cache' option will need to be changed to match the refresh interval.

Other possible uses of jQuery that I'm thinking about:

  • On a host page with multiple graphs, add a filter box at the top which can quickly hide any graphs that don't match the filter. It would be a simple text filter that matches on p= value, pi= value and t= value. The initial version might just mash those (3) parameter values together and use them as the <div> id value.
  • Changing the graph size on-the-fly.
  • Being able to select multiple types in the left-hand column for display at the same time on the host page.
  • Quick filtering of hosts on the index page.
  • Other ideas?

I don't feel a need to completely restructure CGP as I really like the design and the use of URLs that can be bookmarked. The UI is very good for exploring all of the possible graphs. Hopefully you like the upcoming changes that I'm doing on the jquery branch.

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

No branches or pull requests

1 participant