1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00
Commit Graph

9721 Commits

Author SHA1 Message Date
Chris Church
c43334f8f4 Update job events based on how they are used in Ansible 2.x. 2016-10-28 21:58:24 -04:00
Chris Church
908eef13f6 Renamed job event migration. 2016-10-28 21:58:24 -04:00
Chris Church
440f0539b0 Flake8 fixes. 2016-10-28 21:58:24 -04:00
Chris Church
c18b6c1352 Add support for capturing stdout associated with job events and ad hoc command events.
* New event types for stdout lines not associated with a callback event.
* New stdout, start_line, end_line and verbosity fields for job/ahc events.
* Callback plugins to wrap Ansible default/minimal stdout callbacks and embed callback event data using ANSI escape sequences.
* Callback plugin library to wrap ansible.display.Display class methods.
* Output filter to extract event data from stdout and create job/ahc events.
* Update stdout formats to strip new ANSI escape sequences.
2016-10-28 21:58:24 -04:00
Jake McDermott
7b68dc6d33 Merge pull request #3808 from jakemcdermott/noissue_fix_tower_welcome_msg
interpret backslash escapes when displaying url in welcome message
2016-10-28 16:42:44 -04:00
Leigh Johnson
d253eabe5d Sockets - avoid sending invalid JSON when entering state with no socket
definition.
2016-10-28 15:39:48 -04:00
Leigh Johnson
a49095bdbc Boolean / Smart Search (#3631)
* Part 1: building new search components

Directives: smart-search, column-sort, paginate
Service: QuerySet
Model: DjangoSearchModel

* Part 2: Implementing new search components, de-implementing old search
components

Remove old code:
	* tagSearch directive
	* old pagination strategy
	* old column sorting strategy
	* lookup

Add new directives to list/form generator:
	* smart-search,
	* paginate
	* column-sort

Connect $state + dataset resolution
	* upgrade ui-router lib to v1.0.0-beta3
	* Custom $urlMatcherFactory.type - queryset
	* Render lists, forms, related, lookups in named views
	* Provide html templates in list/form/lookup/related state definitions
	* Provide dataset through resolve block in state definitions

Update utilities
	* isEmpty filter
	* use async validation strategy in awlookup directive

* Part 3: State implementations (might split into per-module commits)

* Support optional state definition flag: squashSearchUrl. *_search params are only URI-encoded if squashSearchUrl is falsey.

* * Fix list badge counts
* Clear search input after search term(s) applied
* Chain of multiple search terms in one submission

* Hook up activity stream

* Hook up portal mode

* Fix pagination range calculations

* Hook up organization sub-list views

* Hook up listDefinition.search defaults

* Fix ng-disabled conditions reflecting RBAC access on form fields

* Fix actively-editing indicator in generated lists

* form generator - fix undefined span, remove dead event listeners

* wrap hosts/groups lists in a panel, fix groups list error

* Smart search directive: clear all search tags

* Search tags - ‘Clear All’ text - 12px
Search key - remove top padding/margin
Search key - reverse bolding of relationship fields / label, add commas
Search tags - remove padding-bottom
Lookup modal - “X” close button styled incorrectly
Lookup modal - List title not rendered
Lookup modal - 20px margin between buttons

* Portal Mode
Fix default column-sort on jobs list
Hide column-oort on job status column
Apply custom search bar sizes

* stateDefinition.factory

Return ES6 Promise instead of $q promise.
$q cannot be safely provided during module.config() phase
Some generated state trees (inventory / inventoryManage) need to be
reduced to one promise. Side-step issues caused by ui-router de-registering ALL registered states that match placeholder state name/url pattern.

e.g. inventories.lazyLoad() would de-register inventoryManage states if
a page refresh occured @ /#/inventories/**

* Combine generated state trees: inventories + inventoryManage
Hook up inventory sync schedule list/form add /form edit views

* Hook up system job schedule list/add/edit states

* Fix breadcrumb of generated states in /setup view
Fix typo in scheduler search prefix

* Remove old search system deritus from list definitions

* Fix breadcrumb definitions in states registered in app.js config block

* Transclude list action buttons in generated form lists

* Lookup Modal passes acceptance criterea:
Modal cancel/exit - don’t update form field’s ng-model
Modal save - do update form field's ng-model
Transclude generated list contents into <lookup-modal> directive
Lookup modal test spec

* Fix typo in merge conflict resolution

* Disable failing unit tests pending revision

* Integrate smart-search architechture into add-permissions modal

* use a semicolon delimiter instead of comma to avoid collision with django __in comparator

* Hook up Dashboard > Hosts states, update Dashboard Inventory/Project counts with new search filters

* Misc bug splat

Add 20px spacing around root ui-view
Fix missing closing div in related views
Remove dupe line in smart-search controller

* Remove defunct LookupHelper code

* Rebuild inventories list status tooltips on updates to dataset

Code cleanup - remove defunct modules
Remove LookupHelper / LookupInit code
Remove pre-RBAC permissions module

* Add mising stateTree / basePath properties to form definitions

* Resolve i18n conflicts in list and form generator
Freeze dependencies

* Integrate sockets

* Final bug splat:
fix jobs > job details and jobs > scheduled routing
fix mis-resolved merge conflicts
swap console.info for $log.debug
2016-10-28 14:28:06 -04:00
Matthew Jones
defd271c90 Make sure we bootstrap the static dir prior to starting 2016-10-28 14:21:19 -04:00
Bill Nottingham
83cd055f10 Merge pull request #3569 from wenottingham/forever_blowing_bubbles
Use bubblewrap (https://github.com/projectatomic/bubblewrap) instead of proot.
2016-10-28 11:55:14 -04:00
AlanCoding
47de8c5963 keep queries for building WF DAG to a minimum 2016-10-28 11:20:25 -04:00
Aaron Tan
4e89cc8eb4 Merge pull request #3652 from jangsutsr/3484_add_license_validation_to_job_add
Add validate_license to job's can_add
2016-10-27 16:37:55 -04:00
Aaron Tan
31d06ecdc4 flake8 fix. 2016-10-27 16:09:55 -04:00
Alan Rominger
fb33878d64 Merge pull request #3770 from AlanCoding/playbook_files
Update JT playbook validation for HA
2016-10-27 16:05:09 -04:00
Alan Rominger
f406b00b79 Merge pull request #3795 from AlanCoding/timeout_ctit
Add job timeouts to CTiT
2016-10-27 16:00:42 -04:00
Alan Rominger
d4f0fd2c50 Merge pull request #3789 from AlanCoding/rm_compat
Delete awx.lib
2016-10-27 15:28:52 -04:00
Aaron Tan
6717d4f3fa Prevent job can_change from erroneously firing license validation. 2016-10-27 15:24:03 -04:00
Aaron Tan
d21de4c99f Add validate_license to job's can_add 2016-10-27 15:14:54 -04:00
Aaron Tan
1da8ed0dd3 Merge pull request #3787 from jangsutsr/3552_ensure_wfjt_being_set_during_node_creation
Ensure workflow_job_template being set during node creation
2016-10-27 14:55:02 -04:00
Wayne Witzel III
6dd0f55ce2 Merge branch 'devel' into channels-fixups 2016-10-27 14:23:01 -04:00
Wayne Witzel III
c5a9439198 Merge pull request #3776 from wwitzel3/release_3.0.3
Revert "filter internal User.admin_roles from the /roles API list view"
2016-10-27 14:16:13 -04:00
AlanCoding
3ae5a4b9a8 add job timeouts to CTiT 2016-10-27 13:22:01 -04:00
AlanCoding
6e228248c1 remove fail_on_job_failure from the workflow status PR 2016-10-27 12:58:27 -04:00
AlanCoding
a2c972e513 Workflow status original commit 2016-10-27 12:52:07 -04:00
Alan Rominger
88edff521e Merge pull request #3791 from ansible/revert-3711-workflow_status
Revert "Introduce workflow failure condition"
2016-10-27 12:38:13 -04:00
Alan Rominger
76fae6c052 Revert "Introduce workflow failure condition" 2016-10-27 12:21:31 -04:00
Aaron Tan
432242bdd2 Null check added. 2016-10-27 11:20:45 -04:00
Shane McDonald
bbf185cd0b Add awx/public to clean target 2016-10-27 10:17:37 -04:00
AlanCoding
1fec29dcb3 remove awx.compat, since it looks like it is not necessary 2016-10-26 17:22:03 -04:00
Leigh Johnson
2c8d295132 UI Build System - new interface
Use `make ui-devel` to build a development/debug version of the  UI, with source maps,
without raising any additional browser-sync or filesystem polling.
2016-10-26 16:53:36 -04:00
Leigh Johnson
04a094aa7c npm shrinkwrap i18n dependencies 2016-10-26 16:53:36 -04:00
Alan Rominger
57b1666abe Merge pull request #3711 from AlanCoding/workflow_status
Introduce workflow failure condition
2016-10-26 16:46:18 -04:00
James Laska
f129c42929 Update rax.py inventory
Resolves https://github.com/ansible/ansible/pull/18204 and continues
support for disabling SSL verification.

Fixes #3709
2016-10-26 15:59:41 -04:00
Alan Rominger
0900c4fbbc Merge pull request #3771 from AlanCoding/job_unit_tests
Make job unit tests pass
2016-10-26 15:55:39 -04:00
Aaron Tan
7c9e1c91db Ensure workflow_job_template being set during node creation. 2016-10-26 15:52:49 -04:00
Aaron Tan
237587c2e7 Merge pull request #3758 from jangsutsr/3667_always_check_missing_in_bfs
Add missing always_node check in bfs
2016-10-26 12:17:38 -04:00
AlanCoding
0e99d150bb correct error in workflow unit tests 2016-10-26 10:47:09 -04:00
AlanCoding
6b4737b5f0 more WFJT node docs feedback 2016-10-26 09:53:54 -04:00
AlanCoding
2794d62b4a fix null problem with char_prompts 2016-10-26 09:35:00 -04:00
AlanCoding
8165141210 expand documentation for WFJT node list 2016-10-26 09:28:20 -04:00
Aaron Tan
ffeb2b22a4 Unit test added. 2016-10-25 19:28:24 -04:00
Jared Tabor
bf301ec130 Merge pull request #3781 from jaredevantabor/i18n
i18n on the UI
2016-10-25 15:59:27 -07:00
jaredevantabor
b98524dc91 Temporarily commenting out request for language files
in order to avoid 404 file not found error on the console until the i18n
team provies the language files
2016-10-25 15:46:45 -07:00
Leigh Johnson
4b34c6987a Remove make languages target pending delivery of .po files 2016-10-25 15:26:45 -07:00
jaredevantabor
d8b1281d57 adding i18n reference to a few files 2016-10-25 15:26:45 -07:00
Takao Fujiwara
40b94a38a8 Enable message i18n with angular-gettext
Signed-off-by: Takao Fujiwara <tfujiwar@redhat.com>
2016-10-25 15:26:45 -07:00
AlanCoding
04013e4d9f fix problems with OPTIONS for char_prompts 2016-10-25 16:34:36 -04:00
Wayne Witzel III
b11f5c3015 Revert "filter internal User.admin_roles from the /roles API list view"
This reverts commit 2a55bfa5741e91c466570e7b4cf9b517d366c610.
2016-10-25 13:40:15 -04:00
James Laska
ed8bbc2bbd Merge pull request #3774 from ansible/AlanCoding-patch-2
Fix spelling of disassociated
2016-10-25 12:02:34 -04:00
Alan Rominger
9f15fc3873 fix spelling of disassociated 2016-10-25 11:53:43 -04:00
AlanCoding
836c13f857 bump migration dependency 2016-10-25 09:18:14 -04:00