Bill Nottingham
8300f7f51b
Add django last_login information to user object.
2019-02-14 15:17:37 -05:00
Ryan Petrello
9bebf3217e
remove usage of import * and enforce F405 in our linter
...
import * is a scourge upon the earth
2019-02-13 17:10:33 -05:00
softwarefactory-project-zuul[bot]
e8eda28ce5
Merge pull request #3162 from wenottingham/cady-heron-was-right
...
Remove limit on `limit` field.
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-06 01:22:34 +00:00
Bill Nottingham
4b669fb16d
Remove limit on limit field.
...
This allows 'relaunch-on-failed' on an arbitrary number of failed hosts.
2019-02-05 13:30:51 -05:00
Ryan Petrello
bb5312f4fc
prevent field lookups on Host.ansible_facts keys (it doesn't work)
...
under the hood, Host.ansible_facts is a postgres jsonb field which
performs match operations using the JSON containment operator (@>)
this operator _only_ works on exact matches on containment (i.e.,
"does the `ansible_distribution` jsonb value contain _this exact_ JSON
structure"):
SELECT ...
FROM main_host
WHERE ansible_facts @> '{"ansible_distribution": "centos"}'
SELECT ...
FROM main_host
WHERE ansible_facts @> '{"packages": {"dnsmasq": [{"version": 2}]}}'
postgres does _not_ expose any operator for fuzzy or lookup-based
matches with this operator, so host filter values like these don't
really make sense (postgres can't _filter_ in the way intended in these
examples):
ansible_distribution__startswith=\"Cent\"
ansible_distribution__icontains=\"CentOS\"
ansible_facts__packages__dnsmasq[]__version__startswith=\"2\"
2019-02-05 10:43:51 -05:00
Jeff Bradberry
46020379aa
Expose the known privilege escalation methods in the API config view
...
so that the UI can obtain them and make use of them for an autocomplete widget.
2019-02-04 11:45:27 -05:00
softwarefactory-project-zuul[bot]
4626aa0144
Merge pull request #3093 from jbradberry/become_plugins
...
Support become plugins
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-01 17:48:09 +00:00
Ryan Petrello
d10d5f1539
work around a bug in Django that breaks the stdout HTML view in py3
...
see: https://github.com/ansible/awx/issues/3108
2019-01-31 01:01:40 -05:00
Ryan Petrello
2927803a82
fix overindent lint failures
2019-01-30 12:12:39 -05:00
Jeff Bradberry
6e1deed79e
Removed the special-case logic for maintaining the schema of the become_method field
...
related #2630
Signed-off-by: Jeff Bradberry <jeff.bradberry@gmail.com>
2019-01-29 14:06:26 -05:00
Jeff Bradberry
0ecd6542bf
Changed the become_method field into one that takes arbitrary input
...
related #2630
Signed-off-by: Jeff Bradberry <jeff.bradberry@gmail.com>
2019-01-28 16:53:54 -05:00
softwarefactory-project-zuul[bot]
5cdab1b57a
Merge pull request #3070 from ryanpetrello/bye-bye-six
...
clean up unnecessary usage of the six library (awx only supports py3)
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-01-25 15:20:38 +00:00
Ryan Petrello
daeeaf413a
clean up unnecessary usage of the six library (awx only supports py3)
2019-01-25 00:19:48 -05:00
Jake McDermott
477c5df022
add linked status indicator for scm inventory project updates
...
Signed-off-by: Jake McDermott <yo@jakemcdermott.me>
2019-01-24 16:24:42 -05:00
softwarefactory-project-zuul[bot]
be4b3c75b4
Merge pull request #3052 from jakemcdermott/inputs_enc
...
explicitly handle .inputs in decrypt_field, encrypt_field
Reviewed-by: Ryan Petrello
https://github.com/ryanpetrello
2019-01-24 17:04:30 +00:00
Ryan Petrello
f7bc8fb662
record the virtualenv used when a job or inventory sync runs
...
see: https://github.com/ansible/awx/issues/2264
2019-01-23 11:48:06 -05:00
Jake McDermott
a8728670e1
handle credential.inputs in decryption utils
2019-01-22 22:56:24 -05:00
Ryan Petrello
8cb8e63db5
fix a py3 bug that breaks the SSO complete endpoint
2019-01-21 17:04:13 -05:00
Jake McDermott
3a58a5b772
use credential input access methods in views/__init__.py
2019-01-20 13:08:41 -05:00
Jake McDermott
3ef4cc9bfa
use credential input access methods in serializers.py
2019-01-20 13:08:34 -05:00
Christian Adams
5c080678a6
correct authorization code expiration help-text
2019-01-18 13:27:01 -05:00
Ryan Petrello
f223df303f
convert py2 -> py3
2019-01-15 14:09:01 -05:00
AlanCoding
d1b42fd583
Optimize dashboard using Django annotation for sum
2019-01-10 12:22:39 -05:00
AlanCoding
a3a5c6bf9f
fix bug where some SJs could not be relaunched
2018-12-12 11:56:57 -05:00
softwarefactory-project-zuul[bot]
e517f81b8f
Merge pull request #2880 from AlanCoding/fix_v1_links
...
Fix links to some resources that lack v1 pages
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2018-12-07 14:33:15 +00:00
AlanCoding
d2cd337c1f
fix links to some resources that lack v1 pages
2018-12-06 08:29:23 -05:00
AlanCoding
f09b8efa87
tests and optimizations for UJT list with non-joblet recent_jobs
2018-12-04 16:16:05 -05:00
AlanCoding
b763c51f8a
add type to recent_jobs
2018-11-30 15:16:09 -05:00
softwarefactory-project-zuul[bot]
abc74fc9b8
Merge pull request #2824 from chrismeyersfsu/workflow-convergence_enforce2
...
enforce 1 edge between 2 nodes constraint
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2018-11-29 19:34:25 +00:00
chris meyers
21fce00102
python3 compliance
...
* This ones for you rydog
2018-11-29 14:07:43 -05:00
chris meyers
d347a06e3d
do not deny existing workflow node relationships
2018-11-29 13:29:16 -05:00
softwarefactory-project-zuul[bot]
349c7efa69
Merge pull request #2792 from AlanCoding/how_many_slices
...
Prohibit relaunching sliced jobs with changed count
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2018-11-29 15:57:40 +00:00
chris meyers
916c92ffc7
save state
2018-11-29 08:53:46 -05:00
chris meyers
09dff99340
enforce 1 edge between 2 nodes constraint
2018-11-28 16:57:50 -05:00
chris meyers
2f9dc4d075
remove relationship in view if cycle detected
2018-11-27 16:12:40 -05:00
chris meyers
7b22d1b874
cycle detection when multiple parents
2018-11-27 16:12:40 -05:00
chris meyers
3506b9a7d8
Revert "mark dnr field read only"
...
This reverts commit 3dbc52d91223167683fd01174222bd6c22813dbd.
Workflow Job Nodes are read only already
2018-11-27 16:12:40 -05:00
chris meyers
ad56a27cc0
mark dnr field read only
2018-11-27 16:12:40 -05:00
chris meyers
779e1a34db
remove dnr field from jt wf node
2018-11-27 16:12:40 -05:00
chris meyers
f5c10f99b0
support workflow convergence nodes
...
* remove convergence restriction in API
* change task manager logic to be aware of and support convergence nodes
2018-11-27 16:12:40 -05:00
AlanCoding
012511e4f0
prohibit relaunching sliced jobs with changed count
2018-11-26 10:54:19 -05:00
adamscmRH
05d988349c
make current_user ck secure and httponly
2018-11-21 10:36:35 -05:00
AlanCoding
bca9bcf6dd
fix prompts contradiction: should be non-functional change
2018-11-19 12:52:54 -05:00
AlanCoding
c1d85f568c
fix survey vars bug and inventory defaults display
2018-11-19 12:52:35 -05:00
Jake McDermott
f8453ffe68
accept inventory_id in workflow launch requests
2018-11-19 12:52:05 -05:00
Jake McDermott
38fbcf8ee6
add missing api fields
2018-11-19 12:51:58 -05:00
AlanCoding
a60401abb9
fix bug with WFJT launch validation
2018-11-19 12:51:22 -05:00
AlanCoding
0c52d17951
fix bug, handle RBAC, add test
2018-11-19 12:51:13 -05:00
AlanCoding
44fa3b18a9
Adjust prompt logic and views to accept workflow inventory
2018-11-19 12:50:57 -05:00
AlanCoding
33328c4ad7
initial model changes for workflow inventory
2018-11-19 12:50:29 -05:00