Jeff Bradberry
49ba6c6b3d
Appease flake8
2019-04-22 14:17:47 -04:00
Jeff Bradberry
6dae4a1d6d
Add the host in as a parameter to the _get_insights call
2019-04-22 14:17:47 -04:00
Jeff Bradberry
e66f9241a9
Remove the platform_id from the call to _get_insights
...
since it is now acquired within _get_insights.
2019-04-22 14:17:47 -04:00
Jeff Bradberry
72da961550
Conform to the new output of the Insights system reports endpoint
2019-04-22 14:17:47 -04:00
Jeff Bradberry
4c86c5065c
Fix a typo in the per-system remediations api call
2019-04-22 14:17:47 -04:00
Jeff Bradberry
11b85250e8
Update more urls
2019-04-22 14:17:47 -04:00
Jeff Bradberry
10cfac2f0e
Update the error message when we can't discover the platform ID
2019-04-22 14:17:47 -04:00
Jeff Bradberry
355a83441a
Guard against the case where Insights fails to find the system ID
2019-04-22 14:17:47 -04:00
Jeff Bradberry
e25adca233
Replace the old unit tests with new functional tests
2019-04-22 14:17:47 -04:00
Jeff Bradberry
a97865de0c
Refactor HostInsights
...
for better reuse of the error handling of the Insights API calls.
2019-04-22 14:17:47 -04:00
Jeff Bradberry
af2484cd97
Update the Insights API urls to use the new url structure
2019-04-22 14:17:47 -04:00
Jeff Bradberry
f4b0910e98
Call out to the Insights API to get the Platform ID for a host
...
Since the new reports endpoint requires that, rather than the Insights
system ID that we've been using (and storing on the Host model).
2019-04-22 14:17:47 -04:00
Jeff Bradberry
95b17892ee
Factor out the response handling boilerplate from HostInsights.get_insights
...
We'll want to reuse it for the API call to /hosts as well.
2019-04-22 14:17:47 -04:00
Jeff Bradberry
8fdc53cb21
Update the Insights API endpoint for getting the reports for a host
2019-04-22 14:17:47 -04:00
Ryan Petrello
d6ecb486d2
deprecate /api/v2/dashboard in favor of /api/v2/metrics
2019-04-18 11:45:37 -04:00
AlanCoding
9c71204435
show activity stream entry for system auditor association
2019-04-16 15:59:04 -04:00
softwarefactory-project-zuul[bot]
c2daccade7
Merge pull request #3667 from chrismeyersfsu/delete-system-tracking
...
remove system tracking
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-04-16 17:24:03 +00:00
softwarefactory-project-zuul[bot]
e8de7bc845
Merge pull request #3673 from rooftopcellist/metrics_uuids
...
add uuids to ping and metrics
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-04-13 11:45:47 +00:00
Christian Adams
40393e201f
add uuids to ping and metrics
2019-04-12 18:37:40 -04:00
chris meyers
0c6a522813
remove system tracking
...
* Leave the artisanal handcrafted migration from vendored fact scan to
external fact gathering.
2019-04-12 14:30:29 -04:00
beeankha
de34a64115
Basic License feature gating changes
2019-04-12 11:28:27 -04:00
Christian Adams
fd5d9c45d7
remove invalid json renderer from metrics endpoint
2019-04-10 16:14:54 -04:00
softwarefactory-project-zuul[bot]
7f935084df
Merge pull request #3653 from AlanCoding/instance_token_management2
...
Fix 403 bug using write PAT and view.always_allow_superuser=True
Reviewed-by: Alan Rominger <arominge@redhat.com>
https://github.com/AlanCoding
2019-04-09 20:37:05 +00:00
softwarefactory-project-zuul[bot]
3d308cc2a3
Merge pull request #3636 from ansible/prometheus
...
Prometheus Metrics
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-04-09 15:51:27 +00:00
Wayne Witzel III
1abb0b2c35
restrict metrics to superuser and system auditor
2019-04-09 10:07:38 -04:00
AlanCoding
809fcac738
fix 403 bug using write PAT and view.always_allow_superuser=True
2019-04-09 09:54:52 -04:00
Ryan Petrello
aa0179690d
expose CredentialType.namespace in the API
...
see: https://github.com/ansible/awx/issues/3644
2019-04-08 19:02:10 -04:00
Wayne Witzel III
5c1d2a6f0b
flake8 cleanup
2019-04-08 09:35:46 -04:00
Wayne Witzel III
c3812de3d6
initial prometheus commit
...
Co-authored-by: Wayne Witzel III <wayne@riotousliving.com>
Co-authored-by: Christian Adams <rooftopcellist@gmail.com>
2019-04-08 02:47:56 -04:00
Ryan Petrello
a9a479a51b
fix a typo
2019-04-05 14:28:39 -04:00
Ryan Petrello
cd90ad2497
fix a small bug related to failed inventory counts in the dashboard API
2019-04-05 14:02:19 -04:00
softwarefactory-project-zuul[bot]
161fd9cde0
Merge pull request #3460 from vismay-golwala/project_admin_issue
...
Project admin manual SCM Type creation bug fix
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-04-05 15:43:49 +00:00
softwarefactory-project-zuul[bot]
ef1a5c09b6
Merge pull request #3510 from jbradberry/errors-on-change-password
...
Use Django's own logic to invalidate sessions of users when changing passwords
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-04-05 14:54:20 +00:00
Christian Adams
2493374d44
don't show implicit update jobs in dashboard
2019-04-04 11:04:27 -04:00
Jake McDermott
c4a79a778f
add delete to input source user_capabilities
2019-04-02 11:23:50 -04:00
Jake McDermott
f611d4275f
add use to credential user_capabilities
2019-04-02 11:23:46 -04:00
Ryan Petrello
0768c6ac1d
store the public key for HashiVault signing in the plugin metadata
2019-04-02 11:21:47 -04:00
Jake McDermott
0de8a89293
support input source metadata in plugin test apis
2019-04-02 11:21:36 -04:00
Ryan Petrello
018ff91620
add related and summary fields to the CredentialInputSource endpoint
2019-04-02 11:21:17 -04:00
Ryan Petrello
368d933799
remove association behavior from /api/v2/credentials/input_sources/
2019-04-02 11:21:14 -04:00
Ryan Petrello
b911f8bf77
allow creation at /api/v2/credential_input_sources
2019-04-02 11:21:06 -04:00
Ryan Petrello
e727909a61
rename the CredentialInputSource related_names so they're plural
2019-04-02 11:21:02 -04:00
Ryan Petrello
69368d874e
move path parameterization to the CredentialInputSource model
2019-04-02 11:20:36 -04:00
Jake McDermott
0ee223f799
add api for testing credential plugins
2019-04-02 11:20:33 -04:00
Ryan Petrello
9036ba492c
switch CredentialInput creation to use the associate/disassociate view
2019-04-02 11:20:10 -04:00
Jake McDermott
d87144c4a7
add api for managing credential input sources
2019-04-02 11:19:56 -04:00
AlanCoding
6f150f0362
Set inv src custom virtualenv directly on model
2019-03-29 14:37:28 -04:00
Jeff Bradberry
efb4fb6fd0
Remove some no longer used imports
2019-03-27 10:06:13 -04:00
Jeff Bradberry
f2be4de544
Use Django's own logic to invalidate sessions of users when changing passwords
...
The key is django.contrib.auth.update_session_auth_hash(), which knows
how to inject a recalculated session hash back into the session if the
requesting user is changing their own password, in order to keep that
user logged in.
2019-03-27 10:06:13 -04:00
Christian Adams
c3366db5ca
update content-type for oauth2 docs
2019-03-25 23:55:56 -04:00