Commit Graph

101 Commits

Author SHA1 Message Date
Chris Houseknecht
6d44bdd5c7 Job Detail Page
Additional fix for https://trello.com/c/WZ18zIqG/337-completed-job-detail-statistics-differ-between-realtime-and-page-refresh
2014-08-18 15:57:06 -04:00
Chris Houseknecht
ccc947afdf Job detail page
Fix for https://trello.com/c/WZ18zIqG/337-completed-job-detail-statistics-differ-between-realtime-and-page-refresh
2014-08-18 14:38:25 -04:00
Chris Houseknecht
4a9ce25dff Job detail page
Fixed https://trello.com/c/3AIlW5Hy/335-elapsed-time-disappears-when-job-is-completed
2014-08-18 13:24:57 -04:00
Chris Houseknecht
5bc8255d8f Job detail page
Fixed https://trello.com/c/JW7zmAsD/312-job-detail-duplicate-tasks-listed-when-double-clicking-a-play
2014-08-15 23:02:47 -04:00
Chris Houseknecht
038a1cfb95 Job detail page
Fixed https://trello.com/c/bfSOKm8x/281-on-job-details-page-when-one-task-completely-fails-the-next-task-shows-up-with-a-green-light-beside-it
2014-08-14 14:36:42 -04:00
Chris Houseknecht
f134de0be3 Job detail page
Fixed https://trello.com/c/lRz0fKuM/293-play-missing-from-job-detail-page
Now a play with no tasks and no matching hosts appears during live events and after the job finishes and page is reloaded from the API.
2014-08-14 13:13:00 -04:00
Chris Houseknecht
8f7d2fd78b Fixed JS lint errors. 2014-08-13 18:41:25 -04:00
Chris Houseknecht
b54f9066b9 Job Detail Page
Changed to match new graph spec: https://trello.com/c/4xDbmXXW/285-pi-chart-mathematics-does-not-show-of-hosts-with-activity-x
2014-08-13 18:28:48 -04:00
Chris Houseknecht
5de05aaa4c Job detail page
'Loading' message was not switching to 'No matching hosts' when completed search returns no results.
2014-08-08 16:44:17 -04:00
Chris Houseknecht
5b6d8e5c98 Job detail page
Added 'Loading...' message to each table. Loading message is turned on at initial page load. It is turned off at the last possible second after completion of page rendering. It is turned on before each API call and back off after the API call completes.
2014-07-29 16:41:44 -04:00
Chris Houseknecht
9af5cc3d6d Job details -play button
Pause live events by clicking on a task or play. Restart live events by clicking the play button. Fixed issues with event viewer and host viewer dialogs.
2014-07-24 20:50:38 -04:00
Chris Houseknecht
81f83766f0 Job detail page refactoration
Event viewer now supports viewing multiple events. For better performance, switched event queries to 'startswith' rather than 'icontains'.
2014-07-16 13:44:50 -04:00
Chris Houseknecht
b743ec2783 Job detail page refactoration
Added scope.$apply to each drawing function in hopes of stopping the blockage or pause that seems to occur on page refresh. Seems to be working. Added ability to pause live event processing by clicking a play or task. Now just need a way to restart it.
2014-07-15 18:17:04 -04:00
Chris Houseknecht
7e538ffcc2 Job detail page refactorating
Switched endless scroll paging to use next URL provided by API. Since the event host_name might be the same for all host events, attempting to use __gt doesn't work reliably anyway, and it turns out there's no need to rebuild the URL on the scroll down event. Now sorting host results by host_name + item to cover cases where host_name is always the same.
2014-07-15 17:11:35 -04:00
Chris Houseknecht
78cec19e78 Job detail page refactoration
Handling play and task parallel arrival seems to be working now. Removed 'search' and 'status' labels from search dialogs. Job events viewer now displays JSON objects as nested tables. Re-ordered host event viewer fields, adding host name, and fixing links so that only the status column is clickable.
2014-07-15 13:49:21 -04:00
Chris Houseknecht
238c7093ed Job detail page refactoration
Changed results list title to 'Host Events' and added Item column. Added table header row and applied ellipsis to all columns.
2014-07-14 17:50:01 -04:00
Chris Houseknecht
ef9c292df9 Job detail page refactoration
Changed references to host__name to host_name in queries to job_host_summaries.
2014-07-14 15:45:05 -04:00
Chris Houseknecht
f0b1034d29 Job detail page refactoration
Latest changes to job detail page. Making it work with parallel play and task arrivals.
2014-07-14 13:16:13 -04:00
Chris Houseknecht
d7641cb649 Job detail page re-re-refactor
Job events are now being processed in parallel on the server side, which means tasks and plays may arrive before events begin arriving. The UI may be receiving events for play 'A' while plays 'B' and 'C' have arrived. The UI now has to know that it the arriving events belong to play 'A', and it should consider play 'A' to be the active play. Plays 'B' and 'C' should not be displayed until events begin arriving for them.
2014-07-11 17:59:39 -04:00
Chris Houseknecht
20e2ba0d6d Job details page re-refactor continues...
Started adding logic to support parallel processing of plays/tasks. Fixed summary host lit not loading when there is no active play and/or active task.
Now using jobs/N/job_host_summaries.host_name when building host summary list.
2014-07-11 16:41:04 -04:00
Chris Houseknecht
a565c72f9f Session Expired -job detail page
For reasons yet to be determined the status field on job_tasks and possibly job_plays may contain 'Token is expired' rather than a numeric return code (i.e. 400, 401, 403, etc.). Changed process_errors to look for this condition and trigger session timeout behavior.
2014-07-11 14:48:01 -04:00
Chris Houseknecht
d24f5d2316 Job detail page re-refactor
Fixed task hostCount value when data is reloaded in response to a search. Now the 'skipped' or not processed gap shows on task progress bars. Added animation to less/more link
2014-07-09 16:56:22 -04:00
Chris Houseknecht
e3cea8ff25 Job detail page re-refactor
Wired up new search fields
2014-07-09 15:26:29 -04:00
Chris Houseknecht
9c3d315bc7 Job detail page
If host_summaries summary_fields.host does not exist, consider host deleted and use <deleted host> for the name. Also, added endless scroll to play list.
2014-07-02 19:23:33 -04:00
Chris Houseknecht
803f0b6d12 Job detail page
Disabled clicking on play or task while live events are happening.
2014-07-02 18:47:08 -04:00
Chris Houseknecht
1c57d49981 Job detail page
Added custom sort routine in drawing routines to explicitly sort primary key values as integers rather than strings.
2014-07-02 18:26:32 -04:00
Chris Houseknecht
befffdb8d9 Fixed js lint errors 2014-07-02 18:08:53 -04:00
Chris Houseknecht
1b6a4abf1d Job detail page
Removed malihu POS custom scrollbar widget. Installed new angular directive. Removed the waiting spinner on scroll, replacing it with a subtle, small spinning cog under the scrollbar.
2014-07-02 17:02:29 -04:00
Chris Houseknecht
cebc1d6030 Job detail page
Fixed key sorting. Turns out reverse() doesn't sort keys in reverse, it just reverses them. To sort in reverse: sort().reverse(). Ugh. Fixed JS liting issues for dashboard stuff.
2014-07-02 12:43:31 -04:00
Chris Houseknecht
7e45143fa1 Job detail page
Attempt to get mousewheel (trackpad) scrolling to not be super aggressive.
2014-07-02 12:34:54 -04:00
Chris Houseknecht
172d7d01d1 Job detail page
Fixed 'missing host' calculation where hosts became reachable in prior tasks. Now the % width of the gap matches the unreachable (or failed) %.
2014-07-01 15:19:13 -04:00
Chris Houseknecht
44fdddd345 Job detail page
Improved unreachable host count in tasks status bar. Once a host is unreachable it shows as missing in subsequent tasks, which is the expected result as it is skipped but not really marked as skipped.
2014-07-01 14:29:45 -04:00
Chris Houseknecht
254c552734 Job detail page
Built new event viewer. Based on LogViewer.js that provides a common log viewing dialog.  Event viewer dialog has the same look and feel.
2014-07-01 13:43:24 -04:00
Chris Houseknecht
17d9d2000f Fixed JS compile error 2014-06-30 23:22:46 -04:00
Chris Houseknecht
826f2b681f Job detail page refactor
Job tasks now include an unreachable count and %. Change unreachable color from grey to a different shade of red. While live events are happening host name filter is disabled and status filter is available. Created a custom status filter that accounts for live event processing. While live event processing is active angular filtering on status is disabled for tasks and plays, otherwise no tasks or plays would show up. However, status filtering does apply to host results and host summaries during live event processing.
2014-06-30 17:34:10 -04:00
Chris Houseknecht
64bfd6ce26 Job detail page refactor
Changed 'successful' to 'OK' throughout the page. Also fixed status tool tip text on unreachable hosts to be 'Unreachable' rather than 'failed'. Fixed tool tips on Plays and Tasks so that they updated in sync with status changes.
2014-06-30 13:15:58 -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
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
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
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
09f42399e5 Job detail page refactor
Draw host results in reverse order
2014-06-24 12:51:17 -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
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
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