Christian M. Adams
06b04007a0
Rename managed_by_tower to managed
2021-06-22 10:49:36 -04:00
Bill Nottingham
f460f70513
Remove host insights view
2021-06-09 16:34:32 -04:00
Jeff Bradberry
9f1e8a1ae2
Allow sysadmins to be able to change the pull field for managed EEs
2021-06-09 11:11:56 -04:00
Jim Ladd
31fe500921
move get_queryset handling to child view
2021-06-04 09:17:09 -07:00
Chris Meyers
2131703ca0
add/remove indexes, more get_event_querset()
...
* Do not cascade delete unified job events. We will clean those up in
cleanup_job runs
* Add limit pagination to all unified job events endpoints
2021-06-04 09:17:09 -07:00
Jim Ladd
c429563126
update view to handle hosts/N/ad_hoc_command_events
2021-06-04 09:17:09 -07:00
Chris Meyers
321135da3d
add limit pagination to jobs/<id>/job_events/
...
* trigger via jobs/<id>/job_events/?limit=10
* Can and should be used in conjunction with an indexed set of fields to
generate efficient pagination queries. i.e.
jobs/<id>/job_events?limit=10&start_line__gte=10
* If limit is not specified in the query params then the default
pagination will be used.
2021-06-04 09:17:09 -07:00
Jim Ladd
5a785798b0
is_partitioned should default to true when pk not set
2021-06-04 09:17:08 -07:00
Jim Ladd
14168297bd
set event horizon to -1 for empty tables
2021-06-04 09:17:08 -07:00
Jim Ladd
db6f565dca
black formatting
2021-06-04 09:17:08 -07:00
Ryan Petrello
200901e53b
upgrade to partitions without a costly bulk data migration
...
keep pre-upgrade events in an old table (instead of a partition)
- instead of creating a default partition, keep all events in special
"unpartitioned" tables
- track these tables via distinct proxy=true models
- when generating the queryset for a UnifiedJob's events, look at the
creation date of the job; if it's before the date of the migration,
query on the old unpartitioned table, otherwise use the more modern table
that provides auto-partitioning
2021-06-04 09:17:08 -07:00
Jim Ladd
8501a45531
lint fixes
2021-06-04 09:17:07 -07:00
Ryan Petrello
b19bcdd882
remove the global /api/v2/job_events/ endpoint
2021-06-04 09:17:07 -07:00
Ryan Petrello
08b96a0bd7
correct filter events on the migration event horizon
...
events that existed *prior* to the partition migration will have
`job_created=1970-01-01` auto-applied at migration time; as such,
queries for these events e.g., /api/v2/job/N/job_events/
use 1970-01-01 in related event searche
events created *after* the partition migration (net-new playbook runs
will have `job_created` values that *exactly match* the related
`UnifiedJob.created` field.
2021-06-04 09:17:07 -07:00
Ryan Petrello
2a58605727
some more events view cleanup
2021-06-04 09:17:07 -07:00
Ryan Petrello
c7ab3ea86e
move the partition data migration to be a post-upgrade async process
...
this copies the approach we took with the bigint migration
2021-06-04 09:17:07 -07:00
Jim Ladd
67046513ae
Push changes before rebasing
2021-06-04 09:17:07 -07:00
Jim Ladd
80b08d17e3
Continue updating job event views
2021-06-04 09:17:07 -07:00
Jim Ladd
2c529f50af
Update querysets for remaining job event views
...
- search should use job creation date
so that only the table partition with the relevant job events
is searched
2021-06-04 09:17:07 -07:00
Jim Ladd
8fb313638c
get job events based on job creation date
2021-06-04 09:17:06 -07:00
Jeff Bradberry
39f26fe576
Revert the code that prevents sysadmins from changing managed EEs
...
ref #10078
2021-05-03 10:25:18 -04:00
Bill Nottingham
c8cf28f266
Assorted renaming and string changes
2021-04-30 14:32:05 -04:00
softwarefactory-project-zuul[bot]
6bea5dd294
Merge pull request #9957 from jbradberry/isolated-removal
...
Isolated removal
SUMMARY
Removal of the isolated nodes feature.
ISSUE TYPE
Feature Pull Request
COMPONENT NAME
API
AWX VERSION
Reviewed-by: Alan Rominger <arominge@redhat.com >
Reviewed-by: Jeff Bradberry <None>
Reviewed-by: Elyézer Rezende <None>
Reviewed-by: Bianca Henderson <beeankha@gmail.com >
2021-04-29 19:15:43 +00:00
Alan Rominger
67f7998ab9
Modify formatting in response to black update
2021-04-26 10:51:27 -04:00
Jeff Bradberry
17e3279f1c
Remove isolated nodes from the API views and serializers
2021-04-22 10:20:11 -04:00
Alan Rominger
38352063e8
Remove custom inventory script API
2021-04-22 08:36:46 -04:00
Ryan Petrello
6062d1ec9f
fix an HTTP 500 error for unauthenticated users
...
see: https://github.com/ansible/awx/issues/7243
2021-03-26 16:40:48 -04:00
Ryan Petrello
c2ef0a6500
move code linting to a stricter pep8-esque auto-formatting tool, black
2021-03-23 09:39:58 -04:00
Rebeccah
0921de5d2b
adding needed url endpoint for copy functionality and the beginning of some testing that can be fleshed out more fully in later work
2021-03-03 18:52:55 -05:00
Jeff Bradberry
b417fc3803
Turn off permissions check bypassing for admins when hitting the execution environment list and detail views.
2021-03-03 18:52:55 -05:00
Shane McDonald
286b1d4e25
InstanceGroup#is_containerized -> InstanceGroup#is_container_group
2021-03-03 18:52:55 -05:00
Jeff Bradberry
45a0084f78
Add a sublist api view for the UJTs that use a given execution environment
2021-03-03 18:52:54 -05:00
Jeff Bradberry
f9741b619c
Make changes to support capture by the activity stream
...
Including exposing a new API view for a particular EE's activity
stream objects.
2021-03-03 18:52:54 -05:00
Jeff Bradberry
5ec7378135
Add a new Swagger topic
2021-03-03 18:52:54 -05:00
Jeff Bradberry
cc429f9741
Expose an API view for all of the execution environments under an org
2021-03-03 18:52:54 -05:00
Jeff Bradberry
61cbd34586
Add in the basic list and detail api views
2021-03-03 18:52:53 -05:00
Alan Rominger
44e6e9344b
Remove mercurial support
2020-12-01 14:06:34 -05:00
Ryan Petrello
4a75ae9869
allow deleting NotificationTemplates w/ old pending notifications
...
see: https://github.com/ansible/awx/issues/8525
2020-11-03 11:09:30 -05:00
Ryan Petrello
4445d096f5
reimplement licensing to work with RHSM and entitlement uploads
...
Co-authored-by: Christian Adams <chadams@redhat.com >
2020-10-30 16:39:57 -04:00
John Mitchell
782e8d5875
add two_weeks filter to dashbaord job graph api view
2020-10-20 16:42:28 -04:00
Ryan Petrello
57b2cd402b
make workflow approval creation return an HTTP 201, not 200 OK
...
see: e16a910062 (diff-67c0fe4fc2a405ad611e42d1457e8aa5)
2020-10-19 16:20:40 -04:00
Ryan Petrello
011822b1f0
make a global "managed by AWX/Tower" Credential to represent Galaxy
2020-09-01 13:45:03 -04:00
Ryan Petrello
b8e0d087e5
add model support, an API, and a migration for Org -> Galaxy credentials
...
see: https://github.com/ansible/awx/issues/7813
2020-09-01 13:44:59 -04:00
Philip Douglass
997351eee3
Add archive project data to Dashboard view
...
Signed-off-by: Philip Douglass <philip.douglass@amadeus.com >
2020-08-20 12:34:35 -04:00
Ryan Petrello
0c6be1f4d7
Merge branch 'downstream' into devel
2020-08-05 14:48:36 -04:00
Ryan Petrello
91594a1ae8
properly obfuscate connection errors for credential lookup failure
2020-07-28 11:38:48 -04:00
Ryan Petrello
860183f178
update the named URL code to properly return 404 vs 403
2020-07-22 12:15:34 -04:00
Ryan Petrello
0b221a42c0
Add the ability to specify K8S/OCP credentials on a Job Template
...
see: https://github.com/ansible/awx/issues/5735
2020-07-15 17:44:07 -04:00
Graham Mainwaring
5a96af79d4
Reduce error detail in credential lookups
2020-07-06 21:41:28 -04:00
AlanCoding
d54e5e5ed8
Remove defunct entry from view method return tuple
2020-05-01 14:10:14 -04:00