Commit Graph
100 Commits
Author SHA1 Message Date
Chris Houseknecht 99c0b089ea Job detail page refactor / dashboard
Removed sort on status field.
2014-06-30 10:21:39 -04:00
Chris Houseknecht 5d1b5624e3 Dashboard
Fixed missing search dialog on jobs list.
2014-06-30 10:12:50 -04:00
Chris Houseknecht 87a74f058f Job detail page refactor / Dashboard
Turn off stdout icon for SCM update and inventory sync job types.
2014-06-30 09:35:10 -04:00
Chris Houseknecht c40bd0c430 Dashboard
Fixed broken log viewer for SCM update and inventory sync type jobs.
2014-06-30 09:24:27 -04:00
Chris Houseknecht 0473251886 Job detail page refactor
For SCM update and inventory sync job types, clicking on job details now gives you the log viewer dialog rather than attempting to load the job detail page and ending in error.
2014-06-30 09:19:15 -04:00
Chris Houseknecht cd56906a2b Job detail page refactor / Dashboard
Made column sizing consistent across all job list objects.
2014-06-30 09:06:25 -04:00
Chris Houseknecht 878471bb76 Job detail page refactor
Moved drawing frequency to 2 seconds.
2014-06-30 08:52:15 -04:00
Chris Houseknecht a34563eef3 Dashboard
Fixed js lint issue
2014-06-27 16:10:35 -04:00
Chris Houseknecht 8477cb150e Dashboard
Built the job status dashboard widget.
2014-06-27 15:41:50 -04:00
Chris Houseknecht d46aa1c4de Dashboard
Removed includes for old widgets. Reverted JobStatus widget back. Added new job status code to the new job status widget.
2014-06-27 13:56:03 -04:00
Chris Houseknecht f1b017f0a4 Job detail page refactor
Fixed bug on play counts that caused them to always be zero when loading from API.
2014-06-27 13:44:18 -04:00
Chris Houseknecht 64f5bc7610 Job detail page refactor
Changed host query from excluding things where host_id not null to including all runner events. This is to accommodate the temporary creation of hosts during a playbook run.
2014-06-27 12:16:11 -04:00
Chris Houseknecht 8c616e1004 2.0 style changes
Attempted to remove the dashed outline around active or focused links. CSS outline property is supposed to control this. However, FF ignores and adds a dashed line anyway. Seems like a FF bug.
2014-06-27 11:40:37 -04:00
Chris Houseknecht 3bfd29a631 Job stdout page
Fixed endless scroll, both up and down. It now models the Jenkins behavior. If live events are happening, it captures and displays them, always auto-scrolling down. If user srolls up, live events continue to be captured but auto-scrolling is suspended. If user scrolls all the way back down to bottom, auto-scrolling resumes.
2014-06-26 17:12:38 -04:00
Chris Houseknecht 873ee48c5e Retinafied favicon
Pulled in the better favicon version submitted by mwarkentin for the doc site: https://github.com/ansible/ansible/pull/7371
2014-06-26 15:19:44 -04:00
Chris Houseknecht 745eb00b3f Job stdout scrolling
Started adding bits to detect when user scrolls up. When that happens stop showing live events.
2014-06-26 11:02:40 -04:00
Chris Houseknecht 2d642c58d7 Job detail page
Added dialog for viewing host results and a bunch of formatting. Linked host summary to job_host_summaries page (yes, that still exists). Host results now shows 'skipped' hosts with a blue icon rather than green.
2014-06-26 04:40:09 -04:00
Chris Houseknecht fa3896ccb8 Jobs page
Changed Job ID label to ID.
2014-06-25 22:52:35 -04:00
Chris Houseknecht 73255eace9 Job detail page refactor / 2.0 style changes
Removed well and index from primary list pages. Job detail page cleanup. Fixed status filter on host summary list. Incresed # rows kept in memory for each list to 100. Showing unreachable host count on the play, mostly to help debugging.
2014-06-25 22:45:16 -04:00
Chris Houseknecht 3516ad4b98 Job detail page refactor
Re-enabling a count of the possible hosts that should report status on each task. As live events happen increment a count stored on the play. Only increment when hosts are reporting for the first task of the play, and only increment if the host status is in: successful, changed, skipped or failed. Added the total to the plays list as 'Reporting Hosts'.
2014-06-25 16:24:30 -04:00
Chris Houseknecht e4fd79f653 2.0 style changes
Fixed drop-down account menu so that it no longer behaves like a drop-down when the menu collapses on small viewports. On large screens added a right margin to the drop-down menu. Moved Logout to the bottom of the submenu. On large screens the drop-down now includes a divider above the logout option.
2014-06-25 12:59:58 -04:00
Chris Houseknecht 994c87eb0c 2.0 style changes
Fixed collapsed menu on small viewports. On a small viewport the web socket beacon now displays to the left of the menu button. On large screens it appears as part of the menu.
2014-06-25 12:41:26 -04:00
Chris Houseknecht 04f0ea409b Job detail page refactor
Fixed auto-resize. The page now differentiates between plays, tasks and host results when allocating space. The play list gets the least amount of space. Tasks receives slightly less than it used to but more than plays. Host results gets the most space at nearly 2x what it received previously.
2014-06-25 11:58:49 -04:00
Chris Houseknecht 5ee176e451 2.0 style changes
More work on status area of job detail page. It now collapses perfectly as viewport size shrinks.
2014-06-25 11:54:11 -04:00
Chris Houseknecht b6947d0260 2.0 style changes
Fixed job tab page resizing. If the viewport width > 1000, then calc box sizes and max # of rows.
2014-06-25 07:53:50 -04:00
Chris Houseknecht 0bef303c97 Job detail page refactor
Section headers are now bold
2014-06-24 17:36:57 -04:00
Chris Houseknecht 0a829dc610 Job detail page refactor
Restyled status information using horizontal form layout with overrides to make not look like a form. Added a more/less link to hide or show additional details (i.e. job template, project, inventory). Added proper labels for finsished and elapsed. Looking much better.
2014-06-24 17:32:04 -04:00
Chris Houseknecht 3c05334d33 2.0 style changes
Right justified Account menu. Modified bootstrap menu collapse setting to force collapse at 1075px so that we never show the menu on multiple lines. Started changing styles on job detail page so that we auto-resize behavior can be restored.
2014-06-24 15:41:28 -04:00
Chris Houseknecht 1e3f2c02e9 Job detail page refactor
Fixed host result sort order
2014-06-24 13:58:39 -04:00
Chris Houseknecht f78197970e 2.0 Styling changes
Removed breadcrumbs from lists. Removed breadcrumbs from job tab. Added some space to top of jobs tab content. Fixed auto-sizing on jobs page.
2014-06-24 13:25:39 -04:00
Chris Houseknecht 09f42399e5 Job detail page refactor
Draw host results in reverse order
2014-06-24 12:51:17 -04:00
Chris Houseknecht 540f10bfbc Job stdout refactor
More infinite scrolling. Mostly seems to be working. However, we're not removing content, just continually adding as user scrolls back up.
2014-06-24 11:34:25 -04:00
Chris Houseknecht c60fb7a58f Job stdout refactor
Infinit scroll in the upward (or back in time) direction works.
2014-06-24 04:04:46 -04:00
Chris Houseknecht 8752c71e38 Job stdout refactor
Fixed stdout container to use the the new stdout style sheet. Controller for stdout now correctly calcs height of the content container.
2014-06-23 16:57:11 -04:00
Chris Houseknecht 9b1982a2e5 Remove tmp backup files 2014-06-23 13:47:07 -04:00
Chris Houseknecht 2c0e0324f6 Job stdout refactor
Switching to new stdout endpoint and restyling.
2014-06-23 13:42:15 -04:00
Chris Houseknecht e9084d0c33 Styling changes
Adjust white space at top of menu and on top/bottom of breadcrumbs.
2014-06-23 11:47:16 -04:00
Chris Houseknecht b0a03697b6 Job detail page refactor
Fixed failed filter reset.
2014-06-20 13:04:12 -04:00
Chris Houseknecht e6cf440511 Job detail page refactor
Fixed page filtering. Made tasks and plays selectable again.
2014-06-20 12:59:11 -04:00
Chris Houseknecht 91eff95842 Add Tower bootstrap CSS to repo
Not having this in the repo forces folks to go through the build process in their dev environments, which is proving to be a headache.
2014-06-20 11:04:36 -04:00
Chris Houseknecht 7d91a8ba92 Job detail page refactor
Fixed js compile error
2014-06-20 10:31:05 -04:00
Chris Houseknecht c074d81c95 Job detail page refactor
When live event processing is happening (job is not in a completed state) infinite scroll is now disabled. This keeps the programmatic scroll to bottom from tripping an API call.
2014-06-20 10:29:00 -04:00
Chris Houseknecht 22a51a18f1 Job detail page refactor
Things being added to the DOM were passed by reference and not value. Fixed that using json stringify/parse. Now the DOM does not update in real time. Added in updated of summary list and graph. Performing updates every 5 sec.
2014-06-20 03:07:47 -04:00
Chris Houseknecht 5cdba539c6 Job detail page refactor
Push DOM update interval out to 12 sec.
2014-06-20 02:16:37 -04:00
Chris Houseknecht a024de5702 Job detail page refactor
Reconnected scroll bar bits mostly.
2014-06-20 02:00:15 -04:00
Chris Houseknecht ff1cce8509 Job detail page refactor
Exploring was to make the DOM update less CPU intensive.
2014-06-19 23:22:48 -04:00
Chris Houseknecht 346595854c Job detail page
When UpdateDOM is enabled, the CPU melts. Experimenting with ways to updated the DOM without it being sucha drain.
2014-06-19 23:04:04 -04:00
Chris Houseknecht 0f435eb42c Job detail page refactor
Cleaning up end of job processing to make sure we only reload things 1x at the end. Now drawing graph each time DOM is updated.
2014-06-19 22:20:25 -04:00
Chris Houseknecht 44da2f5cf8 Job detail page refactor
Latest DOM update changes and fixes
2014-06-19 18:16:54 -04:00
Chris Houseknecht e29a158bec Job detail page refactor
Removed the spinner. Stupid spinner!
2014-06-19 17:26:30 -04:00
Chris Houseknecht f67f8c7429 Job detail page refactor
Added logic to paint the DOM every 3 seconds. Fingers crossed.
2014-06-19 17:24:51 -04:00
Chris Houseknecht 958e806ddc Job detail page refactor
First pass at aggregating all incoming events without any DOM updates. Lets see if we can just perform simple aggregration in memory without a CPU meltdown.
2014-06-19 16:09:56 -04:00
Chris Houseknecht 69add3d626 Job detail page refactor
Latest iteration on event queue processing. Replaced setTimeout with an interval.
2014-06-19 07:59:33 -05:00
Chris Houseknecht 3a6fe9ee4a 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 07:59:33 -05:00
Chris Houseknecht cb44949a1d Job detail page refactor
Experimenting with _.throttle to improve event queue processing.
2014-06-19 07:59:33 -05:00
Chris Houseknecht 4cb7e2301d Job detail page refactor
Fixing scrolling issue on tasks list.
2014-06-19 07:59:33 -05:00
Chris Houseknecht 5a461a5471 Job detail page refactor
Endless scrolling queries appear to no longer be firing when programmatically scrolling to the end of list.
2014-06-19 07:59:33 -05:00
Chris Houseknecht b4369d1259 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-19 07:59:33 -05:00
Chris Houseknecht 0fc977648e 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-19 07:59:33 -05:00
Chris Houseknecht 22d5f061dd Job detail page refactor
Performance adjustment. CPU is melting with all the new changes.
2014-06-19 07:59:33 -05:00
Chris Houseknecht 88c1f13d27 Job detail page refactor
Fixed issue with tracking last event id.
2014-06-19 07:59:33 -05:00
Chris Houseknecht 7755cc32e2 Job detail page refactor
Fixing issues related to API endpoint changes and need to paginate tasks and plays.
2014-06-19 07:59:32 -05:00
Chris Houseknecht f975b7b6dd 2.0 Styling
Fixed up the Account menu and wired it back up, mostly.
2014-06-19 07:59:32 -05:00
Chris Houseknecht 9b4f3df770 2.0 Styling
Added open sans font to repository and switched CSS to load the local files rather than use Google.
2014-06-19 07:59:32 -05:00
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 a83584e07f 2.0 Styling
Fixed up the Account menu and wired it back up, mostly.
2014-06-18 18:16:00 -04:00
Chris Houseknecht 9af7469607 2.0 Styling
Added open sans font to repository and switched CSS to load the local files rather than use Google.
2014-06-18 18:15:59 -04:00
Chris Houseknecht 6cf80d3a9b 2.0 styling
Started applying new styles starting with removal of tabs. Brought in new breadcrumb format and blended with inventory edit group breadcrumbs. Rather than attempting to override bootstrap styles after the fact, copied boostrap less file and started modifying those to create ansible-boostrap.css, as described in the boostrap documentation.
2014-06-18 15:39:50 -05:00
Chris Houseknecht ebd5146eea 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 15:39:50 -05:00
Chris Houseknecht 8c393c6efd 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-18 15:39:50 -05:00
Chris Houseknecht 69324f8ce2 2.0 Styling
Fixed up the Account menu and wired it back up, mostly.
2014-06-18 15:22:43 -04:00
Chris Houseknecht afd1e516bc 2.0 Styling
Added open sans font to repository and switched CSS to load the local files rather than use Google.
2014-06-18 14:25:22 -04:00
Chris Houseknecht bc08d8f82a 2.0 styling
Started applying new styles starting with removal of tabs. Brought in new breadcrumb format and blended with inventory edit group breadcrumbs. Rather than attempting to override bootstrap styles after the fact, copied boostrap less file and started modifying those to create ansible-boostrap.css, as described in the boostrap documentation.
2014-06-18 13:42:25 -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 ba6049c704 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-18 07:17:40 -05:00
Chris Houseknecht e8337cffd4 Job stdout - Safari support
Safari's DOMParser object does not support parsing HTML. When the app initializes we now detect the browser type and define $rootScope.browser accordingly. If the browser is Safari, then we do some ugly looping and regex'ing to separate out the html and style sheet from the stdout API response.
2014-06-18 07:17:40 -05: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 58b40422c3 Job stdout - Safari support
Safari's DOMParser object does not support parsing HTML. When the app initializes we now detect the browser type and define $rootScope.browser accordingly. If the browser is Safari, then we do some ugly looping and regex'ing to separate out the html and style sheet from the stdout API response.
2014-06-17 11:53:33 -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 56ad7d2e9e Job detail page refactor
Adjust queueing strategy
2014-06-14 04:23:47 -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 e2aa7be9ce 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:43:03 -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 1c8bed371b Job detail page refactor
The task is now updating correctly as host runner events arrive. W00t!
2014-06-13 15:18:24 -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 fc2821fb09 AC-1232 project status post page refresh
The status attributes were not being set coorectly for 'running' or 'updating' projects on page load.
2014-06-12 17:35:53 -04:00
Chris Houseknecht b5462f477b AC-1238 Sync status behaves differently
They are now the same. Click the cloud icon brings up the log viewer dialog on both pages.
2014-06-12 17:19:11 -04:00