chris meyers
63e3e733e0
AWX 3.0.1
2019-02-08 14:17:33 -05:00
chris meyers
ed78978b5f
do not observe queries when constructing them
...
* While parsing host_filter in the smart inventory code it was
triggering sql queries. This changset avoids executing the query that is
being constructed.
2019-02-08 12:30:51 -05:00
mabashian
6e1457607e
Mark various strings for translation
2019-02-08 11:28:04 -05:00
softwarefactory-project-zuul[bot]
844b0f86b8
Merge pull request #3187 from chrismeyersfsu/fix-schedule_too_damn_fast_devel
...
fix scheduled jobs race condition
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-08 14:39:43 +00:00
chris meyers
d4c3c089df
fix scheduled jobs race condition
...
* The periodic scheduler that runs and spawns jobs from Schedule()'s can
end up spawning more jobs than intended, for a single Schedule.
Specifically, when tower clustering is involed. This change adds a
"global" database lock around this critical code. If another process is
already doing the scheduling, short circuit.
2019-02-08 08:43:11 -05:00
softwarefactory-project-zuul[bot]
1328fb80a0
Merge pull request #3181 from mabashian/notif-related-tab
...
Show notification tab to notif admin users on jt/wf/project/inv source forms
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-07 21:39:33 +00:00
softwarefactory-project-zuul[bot]
1fbcd1b10b
Merge pull request #3183 from mabashian/3018-wf-save
...
Cancel node form when user deletes node being edited
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-07 20:59:45 +00:00
softwarefactory-project-zuul[bot]
11b26c199b
Merge pull request #3173 from mabashian/workflow-403
...
Adds proper error handling to workflow save related promises
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-07 19:25:40 +00:00
mabashian
b4d54895ff
Use arrow instead of 'to' in workflow edit link title
2019-02-07 13:46:22 -05:00
softwarefactory-project-zuul[bot]
463c4c1f7e
Merge pull request #3182 from kialam/artifacts-code-mirror
...
Artifacts Code Mirror
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-07 16:46:20 +00:00
kialam
76a16b329e
Conditionally show the Artifacts field.
2019-02-07 08:59:44 -07:00
mabashian
123f646cea
Cancel node form when user deletes node being edited
2019-02-07 10:47:21 -05:00
softwarefactory-project-zuul[bot]
d99c9c8dce
Merge pull request #3179 from ryanpetrello/failed_to_change
...
don't update parent event changed|failed in bulk (it's expensive for large tables)
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-07 15:16:22 +00:00
mabashian
4f3a8ef766
Show notification tab to notif admin users on jt/wf/project/inv source forms
2019-02-07 10:02:05 -05:00
kialam
c114243082
Add artifacts as a subscriber to job details status service.
...
- This will emerge the artifacts field values if they become available to the UI from the API once a job has completed successfully.
2019-02-07 07:59:45 -07:00
Ryan Petrello
229e997e7e
don't update parent event changed|failed in bulk (it's expensive)
2019-02-06 20:02:52 -05:00
Marliana Lara
8e194baa66
Merge pull request #102 from marshmalien/style-tab-text
...
Update organization tab styles
2019-02-06 14:37:41 -05:00
kialam
dc7ec9dfe0
Adjust WF results to account for codemirror changes.
2019-02-06 12:11:15 -07:00
Marliana Lara
df30a2e8d1
Update organization tab styles
2019-02-06 14:00:26 -05:00
Bill Nottingham
5df384edd6
Fix project updates to properly pull in role requirements.
...
"check" runs check out the version that is saved in the database,
so for git repos, any subsequent "checkout" run on the same node
would always report that we have the proper version, and we would
not properly force a role update when requiremets.yml changes.
Also, don't use `scm_result` for all SCMs, as the skipped tasks will
overwrite earlier `scm_result` variables.
2019-02-06 13:20:09 -05:00
kialam
07aae8cefc
Add Artifacts CodeMirror field to job details.
2019-02-06 10:52:18 -07:00
Marliana Lara
241f8a8ac8
Merge pull request #100 from marshmalien/org-details
...
Add Organization Details view and tests
2019-02-06 12:04:46 -05:00
softwarefactory-project-zuul[bot]
902fb83493
Merge pull request #3172 from bverschueren/fix_inventory_sync_virtualenv
...
use source_project custom_virtualenv if configured
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-06 16:55:49 +00:00
Mathieu Mallet
dce3795e0c
update-ca-trust: Ensure CA trust is updated in awx_task container
...
Related #3010
Both awx_web and awx_task containers can have a volume mounted in
specified by the ca_trust_dir variable. Unfortunately only the
awx_web container's trust is updated. This patch makes sure the
awx_task container's trust is updated as well
Testing Done: ansible-playbook --syntax-check installer/install.yml
Signed-off-by: Mathieu Mallet <mmallet@digipok.io>
2019-02-06 16:51:14 +00:00
softwarefactory-project-zuul[bot]
1ef2d4cdad
Merge pull request #3175 from ryanpetrello/exact_ansible_facts
...
fix a subtle bug in ansible_facts lookup filtering
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-06 16:51:13 +00:00
Marliana Lara
9d9b94c8c3
Increase label font-weight and vertically align labels and chips
2019-02-06 11:42:53 -05:00
Ryan Petrello
a6b362e455
fix a subtle bug in ansible_facts lookup filtering
2019-02-06 11:02:47 -05:00
mabashian
2c3549331c
Adds proper error handling to worklfow save related promises. Fixes bug watching for prompt changes after the node has been edited once.
2019-02-06 10:35:00 -05:00
Bram Verschueren
016fc7f6bf
use source_project custom_virtualenv if configured
...
Signed-off-by: Bram Verschueren <verschueren.bram@gmail.com>
2019-02-06 10:51:52 +01: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
softwarefactory-project-zuul[bot]
83c232eb20
Merge pull request #3112 from saito-hideki/pr/fix_ui-test-ci
...
Fix chrome can not be started with unit-tests due to missing shared libraries
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-06 01:20:19 +00:00
softwarefactory-project-zuul[bot]
c30639c4e6
Merge pull request #3166 from ryanpetrello/old-ansible-inventory-error-msg
...
provide a better ansible-inventory fallback error message old ansibles
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-05 22:32:13 +00:00
Ryan Petrello
5e84782b9c
provide a better ansible-inventory fallback error message old ansibles
...
see: https://github.com/ansible/awx/issues/3139
2019-02-05 17:12:48 -05:00
mabashian
1a619de91f
Makes priv escalation method a dynamic select element
2019-02-05 14:01:29 -05:00
softwarefactory-project-zuul[bot]
d134291097
Merge pull request #3123 from elyezer/users-crud-e2e
...
Add e2e tests for user creating and editing
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-05 18:54:49 +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
softwarefactory-project-zuul[bot]
b53621e74c
Merge pull request #3152 from ryanpetrello/jsonb_prevent_field_lookups
...
prevent field lookups on Host.ansible_facts keys (it doesn't work)
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-05 17:24:06 +00:00
Elyézer Rezende
925c6543c4
Add users CRUD e2e tests
2019-02-05 14:59:59 -02:00
John Mitchell
56c0ab97ed
Merge pull request #99 from jlmitch5/addOrgEmptyListAndUpdateCSS
...
Add org empty list and update css
2019-02-05 11:52:36 -05:00
Marliana Lara
8846e1427e
Add Organization Details view and test
2019-02-05 10:52:33 -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
softwarefactory-project-zuul[bot]
7333e55748
Merge pull request #3156 from Spredzy/schedule_max_jobs_conditiion
...
jt, wfjt: Ensure SCHEDULE_MAX_JOBS is accurately respect
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-05 13:35:35 +00:00
Yanis Guenane
5e20dcb6ca
jt, wfjt: Ensure SCHEDULE_MAX_JOBS is accurately respect
...
Currently SCHEDULE_MAX_JOBS+1 can be scheduled rather than
SCHEDULE_MAX_JOBS. This is due to the fact that we using strictly
greater rather than greater or equal.
Imagine we set SCHEDULE_MAX_JOBS=1, current logic:
* First time (count = 0), count < 1 -> proceed
* Second time (count = 1), count =< 1 -> proceed
* Third time (count = 2), count > 1 -> prevented
Imagine we set SCHEDULE_MAX_JOBS=1, new logic:
* First time (count = 0), count < 1 -> proceed
* Second time (count = 1), count =< 1 -> prevented
Signed-off-by: Yanis Guenane <yguenane@redhat.com>
2019-02-05 13:44:39 +01:00
John Mitchell
736f1e1775
update conditional showing of empty list component
2019-02-04 15:39:44 -05:00
softwarefactory-project-zuul[bot]
cab6b8b333
Merge pull request #3147 from jbradberry/become_method_list
...
Expose the known privilege escalation methods in the API config view
Reviewed-by: Ryan Petrello
https://github.com/ryanpetrello
2019-02-04 17:12:28 +00: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]
e23fb31a4a
Merge pull request #3140 from AlanCoding/isolate_venv
...
Use custom venv in inventory proot-ing
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-02-02 12:17:25 +00:00
Marliana Lara
17c95f200a
Merge pull request #3136 from marshmalien/fix-inv-host-tab
...
Disable hosts toggle in smart inventory hosts tab
2019-02-01 16:36:02 -05:00
AlanCoding
7676ccdbac
use custom venv in inventory prooting
2019-02-01 13:29:45 -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