AlanCoding
4e16b19ae6
Refactor access.py get_queryset into filtering method
...
Use BaseAccess class to enforce the superuser and system
auditor conditions, as well as the optimizations.
Declare optimizations on access class as tuple.
Limit role of access class method narrowly to RBAC filtering.
2017-10-26 11:40:08 -04:00
Alan Rominger
641b18fe13
Merge pull request #509 from AlanCoding/lib_test_fixes
...
update tests to new Ansible core code
2017-10-26 09:28:52 -04:00
Bill Nottingham
c680327ec3
Merge pull request #506 from wenottingham/its-log
...
Remove accidentally committed log files
2017-10-26 09:17:30 -04:00
AlanCoding
e5d2eb9f3d
update tests to new Ansible core code
2017-10-26 08:34:00 -04:00
Bill Nottingham
da25f4104c
Update .gitignore for npm log files.
2017-10-25 21:37:29 -04:00
Bill Nottingham
a8947c3b96
Remove accidentally committed log files
2017-10-25 16:38:56 -04:00
Greg Considine
565d116955
Merge pull request #505 from gconsidine/ui/fix/multiple-dependency-include
...
Update dependencies that share Angular as a dependency
2017-10-25 16:07:29 -04:00
Jake McDermott
1fe9f43690
Merge pull request #502 from jakemcdermott/update_test_config
...
test config cleanup and tooling updates
2017-10-25 15:39:55 -04:00
gconsidine
4a522fd10f
Update dependencies that share Angular as a dependency
2017-10-25 14:48:18 -04:00
Jake McDermott
3800a16f3e
refactor e2e settings and config modules
...
This should make the settings and configuration logic less implicit and
a little easier to follow. Some familiarity with the configuration behavior
of nightwatch is still necessary in places - specifically, one should know
that all test_settings defined for non-default environments are treated as
overrides to the values defined for the default environment.
2017-10-25 10:58:39 -04:00
Jake McDermott
d70a0c8c24
cleanup e2e test development tooling and add readme examples
2017-10-25 10:22:18 -04:00
Aaron Tan
e999b35c42
Merge pull request #493 from jangsutsr/fix-474
...
Add protection against credential getattr
2017-10-25 09:45:25 -04:00
Aaron Tan
553e81f888
Add protection against credential getattr
...
Relates #474 .
Add protection in `__getattr__` method to prevent possible infinite
recursion loop.
Signed-off-by: Aaron Tan <jangsutsr@gmail.com>
2017-10-24 12:08:41 -04:00
Alan Rominger
73ece87e68
Merge pull request #487 from AlanCoding/E722
...
flake8: comply with new E722 rule
2017-10-23 14:58:27 -04:00
AlanCoding
90f63774f4
flake8: comply with new E722 rule
2017-10-23 14:36:48 -04:00
Marliana Lara
17aecc17d2
Merge pull request #472 from marshmalien/angular_upgrade_1_6_6
...
Upgrade to AngularJS v1.6.6
2017-10-23 14:13:11 -04:00
Marliana Lara
9157f53d43
Update angular-scheduler and angular-tz-extensions versions
2017-10-23 12:29:28 -04:00
Marliana Lara
9bb696aa6e
Fix for input directive using strict comparison to determined "checked" row
2017-10-23 12:29:27 -04:00
Marliana Lara
32da686724
Handle errors with ProcessErrors
2017-10-23 12:29:26 -04:00
Marliana Lara
cee81e9df6
Fix any unhandled rejections
2017-10-23 12:29:25 -04:00
Ben Thomasson
b544922da1
Fix incorrect JS syntax
2017-10-23 12:29:24 -04:00
Ben Thomasson
b3c2f35358
Change success to then manually
2017-10-23 12:29:23 -04:00
Ben Thomasson
7d767f8f63
Automatically change .error to .catch.
...
Use this script to change .error to .catch using this linux script:
#!/bin/bash -ex
#Run in awx/awx/ui/client/src
FILES=`grep -l -R "\.error(\s*function\s*(data,\s*status)\s*{" . | xargs`
sed -i "s/\.error(\s*function\s*(data,\s*status)\s*{/.catch(({data, status}) => {/g" $FILES
FILES=`grep -l -R "\.error(this\.error\.bind(this))" . | xargs`
sed -i "s/\.error(this\.error\.bind(this))/\.catch(this\.catch\.bind(this))/g" $FILES
FILES=`grep -l -R "\.error(\s*function\s*(error)\s*{" . | xargs`
sed -i "s/\.error(\s*function\s*(error)\s*{/.catch(({error}) => {/g" $FILES
FILES=`grep -l -R "\.error(\s*function\s*(obj,\s*status)\s*{" . | xargs`
sed -i "s/\.error(\s*function\s*(obj,\s*status)\s*{/.catch(({obj, status}) => {/g" $FILES
FILES=`grep -l -R "\.error(\s*function\s*(res,\s*status)\s*{" . | xargs`
sed -i "s/\.error(\s*function\s*(res,\s*status)\s*{/.catch(({res, status}) => {/g" $FILES
FILES=`grep -l -R "\.error(\s*function\s*(msg,\s*code)\s*{" . | xargs`
sed -i "s/\.error(\s*function\s*(msg,\s*code)\s*{/.catch(({msg, code}) => {/g" $FILES
FILES=`grep -l -R "\.error(\s*function\s*()\s*{" . | xargs`
sed -i "s/\.error(\s*function\s*()\s*{/.catch(() => {/g" $FILES
2017-10-23 12:29:22 -04:00
Ben Thomasson
834e6c692c
Automatically change instances of .success to .then with this linux script:
...
#Run in awx/awx/ui/client/src
#!/bin/bash -ex
FILES=`grep -l -R "\.success(\s*function\s*(data)\s*{" . | xargs`
sed -i "s/\.success(\s*function\s*(data)\s*{/\.then(({data}) => {/g" $FILES
FILES=`grep -l -R "\.success(\s*function\s*()\s*{" . | xargs`
sed -i "s/\.success(\s*function\s*()\s*{/\.then(() => {/g" $FILES
FILES=`grep -l -R "\.success(this\.success\.bind(this))" . | xargs`
sed -i "s/\.success(this\.success\.bind(this))/\.then(this\.then\.bind(this))/g" $FILES
2017-10-23 12:29:21 -04:00
Ben Thomasson
fabdab78ef
Upgrade AngularJS to 1.6.6
2017-10-23 12:29:10 -04:00
Bill Nottingham
a313109b15
Merge pull request #475 from wenottingham/scm-tooltip
...
Update tooltip for update-on-launch.
2017-10-20 10:32:34 -04:00
Ryan Petrello
7b36630f47
Merge pull request #460 from ryanpetrello/cloudforms-cache-path
...
store cloudforms inventory cache files in the proper location on disk
2017-10-20 09:40:02 -04:00
Bill Nottingham
31c1e1684d
Update tooltip for update-on-launch.
...
This better describes how this setting is used.
2017-10-19 16:57:50 -04:00
Alan Rominger
083e56d97d
Merge pull request #464 from AlanCoding/actiony_permissions
...
fix bug where JT admins could not edit spec
2017-10-19 16:22:14 -04:00
AlanCoding
098a407e25
fix bug where JT admins could not edit spec
2017-10-19 16:05:44 -04:00
Alan Rominger
6347db56c5
Merge pull request #473 from AlanCoding/test_fix_exc
...
fix test fallout from 321 merge
2017-10-19 16:05:01 -04:00
AlanCoding
e660879a00
fix test fallout from 321 merge
2017-10-19 15:47:51 -04:00
Matthew Jones
5635f5fb49
Merge branch 'release_3.2.1' into devel
...
* release_3.2.1:
fallback to empty dict when processing extra_data
fix migration problem from 3.1.1
move 0005a migration to 0005b
feedback on ad hoc prohibited vars error msg
Fix the way we include i18n files in sdist
Fix migrations to support 3.1.2 -> 3.2.1+ upgrade path
fix missing parameter to update_capacity method
fix WARNING log when launching ad hoc command
Validate against ansible variables on ad hoc launch
do not allow ansible connection type of local for ad_hoc
work around an ansible 2.4 inventory caching bug
fix scan job migration unicode issue
Assert isolated nodes have capacity set to 0 and restored based on version
Set capacity to zero if the isolated node has an old version
2017-10-19 13:30:26 -04:00
Jared Tabor
0497a4ba96
Merge pull request #396 from jaredevantabor/ui-router
...
Upgrade Angular UI Router to v1.0.7
2017-10-18 20:31:03 -07:00
Jared Tabor
275e02a8cf
fixing issue with scrolling due to UI-router upgrade
2017-10-18 20:16:05 -07:00
Jared Tabor
887a09d052
fixing issue from UI-router upgrade where document title wouldn't update
...
with the name of the state.
2017-10-18 16:34:39 -07:00
Jared Tabor
02af117f51
adjusting unit tests to pass
2017-10-18 16:34:39 -07:00
Jared Tabor
6e2de1b4b0
changing "dyanmic" to "dynamic"
2017-10-18 16:34:39 -07:00
Jared Tabor
47f743e623
fixing removeTerm for smart search to work
2017-10-18 16:34:39 -07:00
Jared Tabor
4f0fa57a1b
removing $urlMatcherFactory and $urlRouter b/c they're deprecated
...
in favor or $urlService
2017-10-18 16:34:39 -07:00
Jared Tabor
3d5f301a07
removing notify:false, it's deprecated
2017-10-18 16:34:39 -07:00
Jared Tabor
f9c991e660
replacing all stateChangeSuccess for $transition.onSuccess
2017-10-18 16:34:39 -07:00
Jared Tabor
6e3f4a7a6e
fixing issues w/ lazyloaded states
2017-10-18 16:34:38 -07:00
Jared Tabor
07139820cb
updating angular-ui-router to v. 1.0.7
2017-10-18 16:34:38 -07:00
Ryan Petrello
764356bf47
Merge pull request #459 from ryanpetrello/simplified-inventory-building
...
remove support for job-scoped auth tokens
2017-10-18 17:35:37 -04:00
Ryan Petrello
ea683344f5
remove support for job-scoped auth tokens
...
When Jobs and Adhoc Commands are launched, awx uses a job-scoped auth
token to dynamically fetch inventory via the awx REST API; this process
is complicated, hard to debug, and likely won't work going forward with
oauth2-based tokens in awx
see: https://github.com/ansible/awx/issues/21
2017-10-18 17:11:47 -04:00
Jared Tabor
bff13e168a
Merge pull request #461 from jaredevantabor/host-event-selecting
...
Fixing Host Event Modal Selecting
2017-10-18 09:23:46 -07:00
Jared Tabor
774a3da7f4
generalizing class which is ignored when trying to drag the host-event-modal
...
it was only applied to .CodeMirror, which is only used by the JSON tab
2017-10-17 16:03:39 -07:00
Bill Nottingham
5f3b4575de
Merge pull request #456 from wenottingham/i-am-becoming
...
Set ANSIBLE_BECOME_ASK_PASS to avoid deprecation warning.
2017-10-17 18:11:33 -04:00
Ryan Petrello
59f9967dba
store cloudforms inventory cache files in the proper location on disk
...
with process isolation enabled (which is the awx default), cloudforms
caches inventory script results on disk; awx should direct cloudforms to
store these cache files in a location that's exposed to the isolated
environment
see: ansible/ansible#31760
2017-10-17 17:06:48 -04:00