Commit Graph

68 Commits

Author SHA1 Message Date
Jared Tabor
f4ac4a0bf9 Variable parsing
added a check for variables that are passed with double curly brackets '{{}}' and JT throws an error and doesn't save now
2014-10-31 11:25:08 -04:00
Jared Tabor
73e1c0236d Job Template- copyJobTemplate
Adding copyJobTemplate for JT list. I also refactored the method that fills all the fields for a job template form
2014-10-30 15:32:55 -04:00
Jared Tabor
0bfe5dc6ba Job Template Page-new JT w/ no survey
Fixed a defect where the UI would attempt to save a survey spec even if survey_enabled=false
2014-10-27 16:48:34 -04:00
Jared Tabor
3b0e3bd9d5 fixed job template for changes to survey maker 2014-10-03 20:01:51 -04:00
Jared Tabor
40192b5172 survey maker additions for question types 2014-09-24 17:36:30 -04:00
Jared Tabor
d3e793e9ca changed survey maker to a modal window 2014-09-21 13:16:06 -04:00
Jared Tabor
9520970817 survey maker for going from add/edit job template to add/edit survey maker 2014-09-17 15:47:33 -04:00
Jared Tabor
ddd88b95b5 adding add/edit survey 2014-09-11 17:39:01 -04:00
Jared Tabor
64961f8504 adding beginning of survey maker and portal mode 2014-09-10 10:44:01 -04:00
Jared Tabor
ca8e52bfff adding ngdocs site for tower doc site 2014-08-28 10:37:02 -04:00
Jared Tabor
a3c9dc7deb changed some lookup dialogs to use radio buttons 2014-08-21 12:02:33 -04:00
Jared Tabor
88c1b05f50 House fixed issue on job template form when project was deleted, changed, or reloaded from a previous saved form 2014-08-12 16:58:32 -04:00
Jared Tabor
4f8a86b3fe fixed issue with deleting a project and then trying to add a new one in the job template page 2014-08-08 16:08:57 -04:00
Chris Houseknecht
2485f86471 Job templates
Added ability to launch a job from th job template detail page.
2014-07-30 14:06:31 -04:00
Jared Tabor
feb13b1f11 fixed issue in job template when user deletes credential and project 2014-07-29 16:24:56 -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
Chris Houseknecht
c517332191 AC-1308 spinner lingers after 403 error
Happening on response to Delete prompt. Removed modal hide listener when starting spinner. Not sure why I thought that was needed. Instead, just close the dialog and start the spinner. If an error occurs, ProcessErrors always stops the spinner. Issue was caused by a race condition. ProcessErrors would sometimes fire tht stop before the event listener fired a start.
2014-06-03 19:20:35 -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
Chris Houseknecht
80fbe0b525 Jobs page- schedules layout now works with new page layout. Refined page auto-resize. 2014-05-05 10:51:51 -04:00
Chris Houseknecht
98c56827db AC-1197 callback workflow -dynamic help text. Fixed js lint issues. 2014-04-16 13:47:31 -04:00
Chris Houseknecht
6aee57f4c5 Fix to open job_templates accordion on initial page load. Fix to missing tooltips for play/stop schedule button within job_templates and projects pages. 2014-04-15 18:21:14 -04:00
Chris Houseknecht
5ea4a68820 Fixed jobs list on Job Templates page. All the buttons and links now work. 2014-04-01 17:45:11 -04:00
Chris Houseknecht
6b3d5da500 Fixed schedules list on Projects page and Job Templates page. 2014-04-01 12:47:22 -04:00
Chris Houseknecht
8217544376 Form generator can now call the list generator when creating related lists. Job Template page is now using this method. We can now inject CompletedJobs and Schedules list objects on any page with full jobs page or schedule page functionality. 2014-03-29 17:46:48 -04:00
Chris Houseknecht
29a8b46e2f Refactored job submission module, breaking the process of prompting for credentials and passwords into small, isolated units of work. Code can now be shared across each job type and unit tests are feasible. 2014-03-27 14:21:47 -04:00
Chris Houseknecht
93bd1d859a AC-1065 in anticipation of potentially having to sort the keys of any incoming json variable objects, consolidated the variable handling code into a single helper. Anytime variable data is fetched from the API it gets passed to the helper and turned into a YAML doc. The helper checks the incoming data type for string or object. If string it first attempts to parse as YAML. If it fails, then tries JSON. If no joy, fails gracefully, logging the error and notifying the user. Anytime variables need to be sent to the API, a method in the helper is called to parse the variable text into a JSON object. 2014-03-05 18:13:49 -05:00
Chris Houseknecht
1ba917afaf AC-1035 UI now supports stringified YAML coming from the API on Job Template. 2014-03-05 15:49:16 -05:00
Chris Houseknecht
10e85b50b1 Found an issue when deleting multipkle credentials. First delete worked fine. Second delete left the overlay hiding the page. Seems the .off() option on bootstrap modal no longer works as expected. 2014-03-05 14:13:17 -05:00
Chris Houseknecht
55b574fa26 AC-564 added new method to codemirror wrapper to enable replacing textarea fields with an editor. Implemented in inventory, groups, hosts, and templates. Solved issues with groups related to two potential textareas at the same time. Found and fixed an error in the way ReturnToCaller() utility was being called. Finished implementing angular-md5. Adding or saving a job template now shows a pop-up on save when a callback is enabled. The pop-up shows the callback url and host key. Before user had to save and then re-open the template to get the URL. With the pop-up we're now showing it immmediately on save. 2014-02-18 03:50:36 -05:00
Chris Houseknecht
e81d02885f AC-1006 upgraded all js libraries to latest release. Fixed obvious broken things. Installed bower to make package installation/upgrade easier. Added less to Grunt build. 2014-02-12 18:42:57 +00:00
Chris Houseknecht
f891c30ebb Ran all controller files through jsbeautifier.org and applied jsHint. 2014-02-07 15:33:07 -05:00
Chris Houseknecht
77b285f632 AC-941 don't display UI form fields until API data loads. Also fixed related set pagination issue. 2014-01-28 13:57:37 -05:00
Chris Houseknecht
cb8ec978de AC-983 long group names, AC-970 don't hightlight required fields in red, AC-966 fixed ansibleworks links to point to ansible, AC-733 new pagination widget, page and total rows. 2014-01-28 01:03:09 -05:00
chris Houseknecht
14acf18f47 AC-734 Finished off form styling changes with requird * as red and help icon now a light grey (much more soothing). 2014-01-15 22:03:48 -05:00
Chris Church
2b7af0a2ec Happy new year!!! 2014-01-02 11:51:43 -05:00
Chris Houseknecht
fae51d12f0 AC-726 Improved search filter, eliminating need for reset button. Fixed drop-down menu on jobs detail page, replacing summary with host summary. Fixed error message on job templates and jobs when list of playbooks cannot be found- message is now informational rather than cryptic error. 2013-11-23 14:48:43 +00:00
Chris Houseknecht
9171382894 Fixes for AC-715 'adding cloud credentials to job_template' and AC-721 'this.scope not defined' 2013-11-22 21:28:16 +00:00
Chris Houseknecht
8dafc10541 AC-715 Fixed issues with bad API requests when user types in value and lookup is built with predetermined search parameters. Fixed project lookup failure while user is typing. 2013-11-21 21:13:40 +00:00
Chris Houseknecht
ba645f947e AC-700 fixed lookup dialog titles on job templates page. 2013-11-21 18:49:06 +00:00
Chris Houseknecht
0127680805 AC-657 Fixed order of operations for prompting user to approve delete, starting spinner, sending request to API, stoping spinner and refreshing page. The key is starting the spinner using the modal.on.hidden.bs.modal to start the spinner and then not stopping it until inside postrefresh event. Applied the fix to all controllers and tested. 2013-11-20 06:06:26 +00:00
Chris Houseknecht
e2209ce3bd Ac-630 cloud_credential_name value is now set after data loaded for Job Template edit page. 2013-11-19 09:06:25 +00:00
Chris Houseknecht
6b418d4a5c Added activity stream to all tabs and to the tab detail page. Enabled working breadcrumbs on the activity stream widget. Added round corners to th stream containers so it at least looks OK when the bottom occassionally overllapses footer. Adjusted the stream widget's default url to include detail object's primary key, limiting rows to the object being viewed. 2013-11-19 08:17:21 +00:00
Matthew Jones
ba1a113ec3 Merge remote-tracking branch 'origin/master' into auditlog
* origin/master:
  AC-637 Credential now requires scm_key_unlock when saving encrypted ssh_key_data.
  AC-626 Removed support for prompting for password and ssh_key_unlock for scm/cloud credentials.
  AC-613 Change rackspace to rax for inventory source field value.
  AC-613 Change rackspace to rax for inventory source field value.
  AC-624 Fix options docs for project update view.
  AC-632 Fix escaping for ansible-playbook command line when also using ssh-agent.
  Update CONTRIBUTING.md
  AC-630 Expose cloud_credentials field for job template and job.
  AC-641 Added pattern to respond to key unlock prompt for project update.
  Updated all vendored third-party packages.
  AC-636 Fix existing projects with scm_type=null to always use empty string. Update validation and tests to ensure None gets automatically coerced to an empty string on saving a project.
  AC-633 js error fixed.
  AC-633 fixed a sort of unrelated js error. The capitalize filter directive attempted to act on a 'null' input error. Added a test to ignore empty/null input.
  AC-633 Fixed 'hast' typo.
  AC-617 changed callback generation icon to a magic wand, which will hopefully satiate jlaska.
  AC-627 Fixed password/ssh_password collision in Credentials.js form. This was also fixed in auditlog branch.
  AC-628 applied credential changes made in add controller to edit controller so that credential/cloud_credential lookups display context-aware  credential lists.
  Moved credentials in tab order. It now follows teams and precedes projects. Based on a suggestion from jlaska.
  AC-609 Fixed issue with help button not displaying correctly on 'select' pages where user can pick an existing object (i.e. users, credentials, etc) to add to a parent object.

Conflicts:
	awx/api/serializers.py
	awx/main/migrations/0025_v14_changes.py
2013-11-18 09:18:37 -05:00
Chris Houseknecht
ce7688d252 Added 'working' spinner to all save/delete/select actions. This is to compensate for places where activity log is slowing down the API. AC-646 changes Rackspace credentials to show API Key in place of password. Fixed a bug on machine credential that caused username to not be passed to the API when adding and editing. 2013-11-17 06:37:34 +00:00
Chris Houseknecht
8c741ac36a AC-628 applied credential changes made in add controller to edit controller so that credential/cloud_credential lookups display context-aware credential lists. 2013-11-13 18:27:29 +00:00
Chris Houseknecht
1497d128f3 Jobs list on Job Templates detail page now closely matches the Jobs tab. Status looks the same, is clickable and offers matching tooltip. 2013-11-05 22:28:31 +00:00
Chris Houseknecht
bac22205a8 Fixed form-generator and awRequiredWhen directive to not overlap when setting * on required field labels. Fixed job submission to work with new cloud credential implementation. 2013-11-04 10:16:56 -05:00
Chris Houseknecht
0466629718 Finally fixed issue with editing a credential. Need to call Owner change after loading data and after resetting form. Also removed default from Owner radio button on create and set to required so that user has to actively make a choice. Started working on Job Template detail changes. Job Template is currently broke. 2013-11-04 10:16:56 -05:00
Chris Church
d668991899 AC-537 Some UI field/name changes for cloud credentials. 2013-11-04 10:16:54 -05:00