11985 Commits

Author SHA1 Message Date
Leigh Johnson
d253eabe5d Sockets - avoid sending invalid JSON when entering state with no socket
definition.
2016-10-28 15:39:48 -04:00
Matthew Jones
34f20bd954 Merge branch 'release_3.0.3' into stable
* release_3.0.3:
  Add needed types for selinux change
2016-10-28 15:07:25 -04:00
Aaron Tan
62e0291f86 Integrate unnecessary queries for better performance. 2016-10-28 15:03:17 -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
Matthew Jones
0cfbd6e062 Merge branch 'release_3.0.3' into stable
* release_3.0.3:
  Update SELinux policy to allow httpd_t to execute files in lib_t and var_lib_t
2016-10-28 14:02:42 -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
Matthew Jones
0f651c8903 Merge branch 'release_3.0.3' into stable
* release_3.0.3: (48 commits)
  Bumping changelog for 3.0.3
  Update rax.py inventory
  Revert "filter internal User.admin_roles from the /roles API list view"
  fix spelling of disassociated
  Resolves 404 when assigning resources/users to organizations in card view. Sidesteps a bug in the Refresh() utility, where pagination calculations are not made against filtered results.
  Sync azure changes to Tower virtual environment
  Add regions here as well.
  Also bump boto for new regions, per ryansb.
  More regions!
  Revert "bump shade version"
  bump shade version
  Hack copying of job_template.related.survey_spec into ui job copy flow, resolves #3737
  Revert "bump shade version"
  bump shade version
  Switch pg user auth from trust to peer
  Remove support@ansible.com, clean up some old links.
  filter internal User.admin_roles from the /roles API list view
  Exclude test directory from setup bundle tarballs
  fixed manual project select2 population
  YAML parsing groups and hosts extra variables
  ...
2016-10-28 11:37:57 -04:00
AlanCoding
47de8c5963 keep queries for building WF DAG to a minimum 2016-10-28 11:20:25 -04:00
sundeep-co-in
d65e121b19 flake8 compliance 2016-10-28 14:07:08 +05:30
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
Aaron Tan
6ecd45681a Use ACTIVE_STATES and change error message text. 2016-10-27 16:00:22 -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
sundeep-co-in
2ddcffc184 zanata config loc 2016-10-27 22:26:39 +05:30
sundeep-co-in
e908bc34e6 Merge branch 'devel' of https://github.com/sundeep-co-in/ansible-tower into STAGE 2016-10-27 22:23:39 +05:30
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
sundeep-co-in
c1a5fb3312 resolve conflict 2016-10-27 08:13:02 +05:30
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
813c786dc7 Add destory sanity checks to prevent UJ deletion during underlying workflow run. 2016-10-26 14:53:22 -04:00
sundeep-co-in
be93cb488c django-i18n: small fix 2016-10-26 23:31:12 +05:30
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
sundeep-co-in
3bf72f1dba add manage_translations 2016-10-26 16:47:49 +05:30
sundeep-co-in
475d6ed110 Merge branch 'devel' of https://github.com/sundeep-co-in/ansible-tower into STAGE 2016-10-26 10:23:57 +05:30
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