-
Notifications
You must be signed in to change notification settings - Fork 39
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
Auto refresh metric plot #77
Comments
Hello, |
@chovanecm could you give some directions what to look at to implement this? |
@talesa Thank you being interested in having a look at it! I will first try to explain you the design. Maybe you don't get everything from my description in the beginning, so feel free to tell me your thoughts after reading it. Basically, Sacred stores metrics as an array of x and y values directly to the database (which has, by the way, certain limitations in the record size, by default 16 MB or so). The front end is mostly made of KnockoutJS components that define interface for the outer world and encapsulate logic. They usually consist of an HTML template and a JavaScript file that defines a view model that uses a lot of Observables or Observable arrays. Elements in the page are bound to the observables so that they should update automatically if something in the view model changes. For instance, the top component of Metrics that you see in the detail view is called metrics-viewer and takes a sacred run object as a parameter (It is a part of the JSON returned by Inserting that code triggers the constructor of the metrics-viewer view-model. this.metrics = ko.observableArray(); The What format of data the But there is currently no handling of changing the
Perhaps the I think you'd need to have a look at the KnockoutJS framework. It is simpler than e.g. Angular, but it does not have such a large community (though it is not bad, I should have chosen something that more people know) By the way, the components are dynamically loaded using RequireJS so that all the javascript includes don't have to be specified on the main page. |
I have also started writing a development guide to make sacredboard running from source locally: |
I'd also appreciate this kind of feature, or at least a 'refresh' button on top of the plot (that doesn't make me tick the check boxes again). |
Yes, this feature would be awesome. Refreshing everything would be ok, in my opinion, but would be great if the metrics plot is not collapsed and keeps showing |
Agrhh, @chovanecm I'm sorry for not following up on this yet, I'm short on time now, but I might come back to this eventually |
Does this feature exists? Right now if I want to refresh the plot I had to click Metric plots menu item again, then select the checkboxes again.
I can see the sacredboard calls /api/run/x periodically, so it should be getting the latest data?
The text was updated successfully, but these errors were encountered: