Commit Graph

2156 Commits

Author SHA1 Message Date
Luke Sneeringer 91afd12f31 Adding a job_tasks test. 2014-06-19 13:16:35 -05:00
Matthew Jones 041513ef61 Add play and tasks linkage to job related fields 2014-06-19 13:53:49 -04:00
Matthew Jones 8dc14a73c2 Merge pull request #12 from ansible/job-events-refactor-unstable
Refactor job_tasks.
2014-06-19 09:04:51 -04: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
Bill Nottingham 092b068c50 Add additional release dates. 2014-06-18 18:15:59 -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
Luke Sneeringer 65b87b9694 Tests for the @paginated decorator.
This commit adds tests which test most of the @paginated
decorator. A couple api_settings edge cases are not yet covered.
2014-06-18 15:37:30 -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
Bill Nottingham 5aa293a17a Add additional release dates. 2014-06-18 15:03:56 -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
Luke Sneeringer 2ac5090d70 Paginate the job_tasks page.
This commit adds pagination to the /api/v1/jobs/{id}/job_tasks/ page,
which previously lacked it.

AC-1340
2014-06-18 13:01:53 -05:00
Luke Sneeringer bb338f3637 Make /api/v1/jobs/{id}/job_tasks/ scale.
This commit fixes an issue where the `job_tasks` endpoint
scaled poorly as the number of job tasks increased.

Note: This is a revert of a revert, because I felt this needed
code review and didn't want it on master yet. Sorry.

AC-1341
2014-06-18 12:59:57 -05:00
Luke Sneeringer 55e1258a5d Revert "Make /api/v1/jobs/{id}/job_tasks/ scale."
This reverts commit 88971080670f8f104db0f322a49ed2f3bb5e1ef0.
2014-06-18 12:56:32 -05: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 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
Luke Sneeringer 461e4d5e2a Make /api/v1/jobs/{id}/job_tasks/ scale.
This commit fixes an issue where the `job_tasks` endpoint
scaled poorly as the number of job tasks increased.

AC-1341
2014-06-17 15:22:13 -05:00
Michael DeHaan e8ab260f31 Start of guidelines around API development. 2014-06-17 13:52:57 -05: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
Matthew Jones 05e17e66fc Add unreachable event counts to play stats 2014-06-13 12:47:49 -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
Luke Sneeringer 25abbc1c16 Add a space to an error message. Fixes AC-1156. 2014-06-12 16:46:48 -05: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
Chris Houseknecht f27f7c6961 Remove lingering popovers/tooltips
Before displaying a new popover or tooltip, kill anything that might still be open.
2014-06-12 17:11:01 -04:00
Chris Houseknecht 34604d47d3 Remove lingering popovers/tooltips
Before displaying a new popover or tooltip, kill anything that might still be open.
2014-06-12 17:06:53 -04:00
Chris Houseknecht 24593a0878 AC-1256 project last updated
After a project update finishes, refresh the list of projects so that it reflects the correct last update timestamps.
2014-06-12 16:57:14 -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
Matthew Jones 94e843dc71 Make sure we include the state flags for the plays as well as the counts 2014-06-12 16:11:07 -04:00
Chris Houseknecht 54204becf5 AC-1286
Fixed JS minification errors.
2014-06-12 16:00:05 -04:00