Commit Graph

2326 Commits

Author SHA1 Message Date
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 dd5fcbbfbd Vagrant Local Development
This commit adds playbooks and files necessary to do local development
from within Vagrant.

These playbooks start with a fresh Ubuntu 12.04 machine and:
  - Install Ansible
  - Install the Tower nightly
  - Install all components to exactly mirror production, except Apache
  - Install uwsgi and nginx for local development (since Apache lacks a
working auto-reload)

This isn't entirely perfect -- in particular, developing on task code
is probably challenging until I figure out how to get celery not to
read from the install, but it is a very easy way to get 90% of the way
there very, very quickly.
2014-06-12 16:51:48 -05: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
Chris Houseknecht 90ae15f3ba AC-1286 host config key dialog
Now the dialog only appears on job template save when the host config key or URL actually change. Before the dialog always appeared when allow callbacks was enabled.
2014-06-12 15:37:45 -04:00
Matthew Jones 64dbb0b4b2 Give more stats on the plays aggregate summary 2014-06-12 15:15:11 -04:00
Chris Houseknecht 650cec948c AC-1280 remove notification after user clicks cancel on password prompt
If the user clicks cancel on the passwords dialog, cancel the job quietly without prompting the user for confirmation.
2014-06-12 15:05:29 -04:00
Chris Houseknecht 0810194cee Fixed real-time updates for inventory
Live updates now working on the inventory detail page and on home/groups page.
2014-06-12 12:43:43 -04:00
Chris Houseknecht 3c7344e986 Fixed inventory real-time updates
After bringing inventory changes from 1.4.11 forward real-time updates were not being handled by new inventory edit controller.
2014-06-12 12:28:28 -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
Matthew Jones e72728b38c Add schedule based socket.io events for AC-1333 2014-06-10 15:58:57 -04:00
Luke Sneeringer b6ba138522 Add items to .gitignore.
This commit adds three files to .gitignore, to support local development
using Vagrant VMs.

Regarding `awx/main/fixtures`: This is to allow for a dev's primary user
to be in a fixture, so it's easily loaded.
2014-06-10 13:43:25 -05:00
Matthew Jones 9879aad78b Add some shortcuts for summarizing job event data to support the UI in AC-1330 2014-06-10 13:25:57 -04:00
Matthew Jones 718e9916f0 Fix a bug in the mainline inventory test 2014-06-06 15:52:28 -04:00
Matthew Jones 6773fd19d7 Implement passive copying as a new host to a group
requires that the variables isn't special on the new host
implements AC-1265
2014-06-06 15:22:56 -04:00
Chris Church 24df1a88ee AC-1295 Allow host names to contain brackets when importing from JSON sources. 2014-06-06 14:17:12 -04:00
Chris Houseknecht 28c8a3822d Fixed JS minification errors 2014-06-06 14:14:56 -04:00
Chris Houseknecht e96444ac8f Fixed stuck host add/edit dialog
The dialog would not go away after clicking save. Issue was bad applicaiton of code from 1.4.11. Also fixed missing fa-cut icon.
2014-06-06 13:43:18 -04:00
Chris Church 3a5db149e9 Generate large test license for cloud inventory import unit tests. 2014-06-05 16:20:17 -04:00
Chris Church d2d7ac3d1c Save/restore current directory for each test. 2014-06-05 16:02:58 -04:00
James Laska 11b39febfb Include PYLINT_RCFILE 2014-06-05 15:29:36 -04:00
James Laska 9ee0eb9850 Rename awx/settings/jenkins to awx/settings/development_quiet 2014-06-05 15:00:51 -04:00
James Laska e8dc57ff36 Move django_jenkins into development.py 2014-06-05 15:00:21 -04:00
James Laska 38bfbb4b46 test_jenkins - Specify .less files, not directory 2014-06-05 14:41:00 -04:00
James Laska 296917af54 Move test_jenkins configuration into awx/settings/jenkins.py 2014-06-05 14:06:20 -04:00
James Laska fb62eebe8c Add pylintrc file 2014-06-05 13:58:47 -04:00
James Laska 790a9b6432 Need to specify django_tests when overriding JENKINS_TASKS 2014-06-05 12:39:09 -04:00
James Laska 22db69eb70 test_jenkins - minified files are already excluded 2014-06-05 12:24:50 -04:00
James Laska c45926411c Disable DEBUG for unittests 2014-06-05 12:14:09 -04:00
James Laska f0fe6673f2 Add JENKINS_TASKS to django_jenkins
New tasks include run_pylint, run_pep8, run_pyflakes, run_jshint and
run_csslint.
2014-06-05 12:09:54 -04:00
Matthew Jones 859cc651e8 Force handle playbook_on_play_start messages early
Fixes issue AC-1277 where event parents were getting associated incorrectly
2014-06-05 11:37:25 -04:00
Matthew Jones 4ab2207dd2 Fix issue #1253... mention the tower product and version in the 404 data string 2014-06-04 14:05:57 -04:00