55 Commits

Author SHA1 Message Date
Chris Houseknecht
3e70bdd831 Job detail page refactor
Latest iteration on event queue processing. Replaced setTimeout with an interval.
2014-06-19 03:34:07 -04:00
Chris Houseknecht
d5838480ba Job detail page refactor
Reverting attempt to use _.throttle and _.defer. They assume we actually want to process every event. We need to stop all processing if the job has finished.
2014-06-19 02:21:13 -04:00
Chris Houseknecht
8ba6366bc9 Job detail page refactor
Experimenting with _.throttle to improve event queue processing.
2014-06-19 01:09:24 -04:00
Chris Houseknecht
29b2b3cecf Job detail page refactor
Fixing scrolling issue on tasks list.
2014-06-19 00:32:39 -04:00
Chris Houseknecht
b7a4ea7801 Job detail page refactor
Endless scrolling queries appear to no longer be firing when programmatically scrolling to the end of list.
2014-06-19 00:17:05 -04:00
Chris Houseknecht
07629cb701 Job detail page refactor
Making sure we never call the endless scroll queries when programmatically scrolling to the bottom of a list. Eliminate repeated calls to lookup credential names.
2014-06-18 23:33:12 -04:00
Chris Houseknecht
a1e28992b0 Job detail page refactor
Improved handling of scrollbar refresh. Handling on via scope.$emit rather than inside the http response. Fixed pie chart drawing at job completion so that totaling of stats on playbook_on_stats event matches the way we're counting hosts during event processing.
2014-06-18 23:04:12 -04:00
Chris Houseknecht
5c34758d2d Job detail page refactor
Performance adjustment. CPU is melting with all the new changes.
2014-06-18 21:17:18 -04:00
Chris Houseknecht
b2d22613c5 Job detail page refactor
Fixed issue with tracking last event id.
2014-06-18 18:48:17 -04:00
Chris Houseknecht
b355211efb Job detail page refactor
Fixing issues related to API endpoint changes and need to paginate tasks and plays.
2014-06-18 18:16:00 -04:00
Chris Houseknecht
ef1ca7be0b Job detail page refactor
Working through testing of task and play pagination changes. Fixed initial errors. More to do once API changes show up.
2014-06-18 10:03:14 -04:00
Chris Houseknecht
c138f8006a Job detail page refactor
Added custom scrollbar to task list and made it do the endless scroll thing. Switched tasks and plays from objects back to arrays, in support of endless scroll.  Still need to apply scrollbar to play list and enable endless scroll. Modified calls to job_tasks endpoint to use the 'paginated' structure. Will need to do the same to plays. None of this is tested yet.
2014-06-17 18:25:35 -04:00
Chris Houseknecht
6ddd93fe06 Job detail page refactor
Removed need to sort hostResults and hosts arrays. Drawing graph on start of a new task, rather than start of new play. Now listening for job status events. If a status event indicates the job is completed, stop processing event and reload the job from the API.
2014-06-17 13:51:24 -04:00
Chris Houseknecht
1c57d7f949 Job detail page refactor
Wired filters up again. Fixed Host Summary section to refresh without first needed to be completely cleared.
2014-06-16 14:31:35 -04:00
Chris Houseknecht
9c11145914 Job detail page refactor
Reconfigured event processing and queueing. 50 no op tasks for 200 hosts seems to be working without melting the CPU and staying below 300MB.
2014-06-16 00:24:26 -04:00
Chris Houseknecht
37cd9d9aeb Job detail page refactor
Fixed empty object detection
2014-06-14 04:19:02 -04:00
Chris Houseknecht
d300eab790 Job detail page refactor
If the queue grows beyond 500 events, reset and start over.
2014-06-14 03:58:52 -04:00
Chris Houseknecht
e6bba3ed48 Job detail page refactor
Added an event queue, allowing the UI to process events as fast as it can and hopefully not get overwhelmed by the API.
2014-06-13 16:39:35 -04:00
Chris Houseknecht
c297342ba0 Job detail page refactor
Latest changes. Things are still broken thought. Task status not working correctly or at all, and hosts results are not showing up.
2014-06-13 14:32:23 -04:00
Chris Houseknecht
f2db52cca0 Job detail page refactor
Using dictionaries rather than arrays. Filters now working. New endpoints wired in.
2014-06-13 11:11:44 -04:00
Chris Houseknecht
fc7ecc4c55 AC-1257 view project update status
Since we're not refreshing the list of projects after submission of an update request, the UI does not have the most recent update ID in memory. Before launching the log viewer dialog it now requests the latest project record from the API and initializes with the correct ID.
2014-06-12 16:36:46 -04:00
Chris Houseknecht
eccfe128dd Job submission error handling
If playbook submission fails, check for a 400 status and parse the key/value pairs returned by the API. This occurs on an attempt to submit a job template that is no longer valid. Fixed JS compile errors from prior commit.
2014-06-11 18:43:56 -04:00
Chris Houseknecht
e01b34ee38 AC-1183 Job detail page performance
Reload the list of tasks whenever a play is selected. Fixed search cancel. Streamlined initial load process so that it shares as much of the event processing code as possible.
2014-06-11 18:18:23 -04:00
Chris Houseknecht
31f4eeffbc AC-1183 Job detail page performance
Reorganized initial data load so that it no longer reads all job events. Using objects in place of arrays.
2014-06-11 07:19:33 -04:00
chouseknecht
6cfdaca856 Resolved js build errors. 2014-05-19 10:56:22 -04:00
chouseknecht
ec2545d069 Latest job_detail changes as of 5-16. Plus, AC-1279 Rename vars_prompt_on_launch to ask_variables_on_launch. 2014-05-19 10:50:26 -04:00
chouseknecht
0fcfe6114a Increated timeout length for select a play post filter application. Post job launch send user to job detail page. 2014-05-16 14:54:40 -04:00
chouseknecht
e7d58de007 Wired up status filter. Redraw graph with resize option on playbook_on_stat event. Removed counts from tooltips, eliminating over watch issue. 2014-05-16 14:17:17 -04:00
chouseknecht
0fba05f030 Removed extra search dialogs. Now there is only one host name filter, and it's wired up and working. 2014-05-16 02:38:04 -04:00
chouseknecht
1237fe6601 Fixed graph rendering and auto-resizing. Removed use of job_host_summaries, making things much faster. Fixed real-time updating so that it now refreshes smoothly as tasks complete. 2014-05-16 01:00:30 -04:00
chouseknecht
200a528391 Improvements to job detail page graph rendering and auto-resizing. 2014-05-15 13:49:59 -04:00
chouseknecht
a895c6beea First attempt at adding a graph to job detail page. 2014-05-15 03:51:34 -04:00
chouseknecht
d303520cc9 Touched up the summary table event help. 2014-05-14 18:16:20 -04:00
chouseknecht
46bf760133 Wired up the Filter Events search dialog box. You can now filter all events by host name. 2014-05-14 18:11:45 -04:00
chouseknecht
4c1ad2d107 Wired stdout page into Jobs tab page. Replaced View drop-down with icons for view details and stdout. 2014-05-14 13:30:15 -04:00
chouseknecht
e9ddf51387 Styling changes from 5/9 status meeting. 2014-05-09 23:35:02 -04:00
chouseknecht
bb071379c2 Fixes to status bar display. Now displays in real-tiime despite large number of hosts. Tested with 600 hosts. 2014-05-09 13:28:50 -04:00
chouseknecht
b320fc725f Added start of search controls to summary section. Removed reload of task and host summary tables on screen resize. We're now maintaining 300 rows for each. 2014-05-09 10:28:29 -04:00
chouseknecht
9e645bdb74 Fixed scrolling issues and page resizing issues. When page resizes the number of visible rows in each table expands. 2014-05-08 19:15:26 -04:00
Chris Houseknecht
b2b0f67c65 Removed accordions from jobs page. 2014-05-03 21:31:28 -04:00
Chris Houseknecht
042e15f109 Adjust table heights based on actual viewport height. Summary flyout now accounts for viewport width and goes 100% on width < 840px. 2014-05-01 14:29:08 -04:00
Chris Houseknecht
8e0cc4d2f4 Reset z-index on summary section when screen goes back to > 1240px. 2014-05-01 02:44:48 -04:00
Chris Houseknecht
ad5ca80e47 Summary section slides in and out based on screen width. When screen less than 1240px the summary section hides and a button is presented allowing user to view summary panel as an overlayor slide-in panel. Fixed handling of websocket connection indicator tool-tip. 2014-05-01 02:42:37 -04:00
Chris Houseknecht
6b4b8ab6e3 Applied scroll bar and infinite scrolling to host summary section. Added search field to task hosts and host summary sections. 2014-05-01 00:14:36 -04:00
Chris Houseknecht
fc0056d058 Added malihu-custom-scrollbar library to provide consistent cross-browser scrolling on job detail page. Implemented on task host list to create an 'infinite scroll'. 2014-04-30 16:10:50 -04:00
Chris Houseknecht
4521f8f41a Restyled new job detail page making it completely responsive down to small viewports. Moved things around as discussed in last status meeting. Incorporated event_name element from event object. 2014-04-25 19:25:22 -04:00
Chris Houseknecht
bbab019567 Connected inventory detail page to socket.io and removed refresh button. 2014-04-22 02:57:35 -04:00
Chris Houseknecht
0b0207e20e Latest job detail page changes. 2014-04-22 00:15:25 -04:00
Chris Houseknecht
25c117782c Fixed jshint linting errors. Lates job detail page changes. 2014-04-21 10:18:58 -04:00
Chris Houseknecht
51b9a7bd0b Fixed pagination issue. Moved reset of iterator + 'HidePaginator' var to Refresh.js helper exclusively. Latest changes to job details page. 2014-04-18 09:57:37 -04:00