beeankha
2196089216
Update fields.py to convert JT Credential input into integers
2019-03-06 18:05:53 -05:00
Jeff Bradberry
97cc467ae1
Restrict edit permissions on the Organization.max_hosts field to superusers
2019-02-28 15:54:09 -05:00
Jeff Bradberry
3312ebcb05
Remove the hosts count from related_field_counts in the org api endpoints
...
It is probably not needed, and adds an additional db query.
2019-02-28 15:54:09 -05:00
Jeff Bradberry
43a0a15f6f
Expose the new InventoryUpdate.org_host_limit_error field in the API
2019-02-28 15:54:09 -05:00
Jeff Bradberry
0e8e5f65e1
Update to fix tests
2019-02-28 15:54:09 -05:00
Jeff Bradberry
6399ec59c9
Include in the API the count of hosts used by an organization
2019-02-28 15:54:09 -05:00
Jeff Bradberry
e44c73883e
Expose Organization.max_hosts in the API
2019-02-28 15:54:09 -05:00
softwarefactory-project-zuul[bot]
658e5f0fc8
Merge pull request #3272 from jladdjr/mo_stats
...
Add support for new playbook stats
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-28 18:24:03 +00:00
Ryan Petrello
13c05c68fc
fix a few additional py3 issues
...
related: https://github.com/ansible/awx/issues/3329
2019-02-27 16:56:36 -05:00
mabashian
0ce70c08bd
Add prompt for extra vars to wfjt
2019-02-21 11:37:53 -05:00
Jim Ladd
8c9544e5ed
Add support for new ansible stats
2019-02-20 17:13:29 -08:00
Hideki Saito
ef3b1ee195
Add action to output login failure to logger
...
Signed-off-by: Hideki Saito <saito@fgrep.org>
2019-02-20 14:27:44 +00:00
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