Seth Foster
d54c5934ff
Add support for inbound hop nodes
2024-02-02 10:37:41 -05:00
jessicamack
209747d88e
Update for django-ansible-base split ( #14783 )
...
* update paths and names
* temp to get tests passing
* fix typo
2024-01-19 12:30:32 -05:00
John Westcott IV
aacf9653c5
Use filtering/sorting from django-ansible-base ( #14726 )
...
* Move filtering to DAB
* add comment to trigger building a new image
Signed-off-by: jessicamack <jmack@redhat.com >
* remove unneeded comment
Signed-off-by: jessicamack <jmack@redhat.com >
* remove unused imports
Signed-off-by: jessicamack <jmack@redhat.com >
* change mock import
Signed-off-by: jessicamack <jmack@redhat.com >
---------
Signed-off-by: jessicamack <jmack@redhat.com >
Co-authored-by: jessicamack <jmack@redhat.com >
2023-12-18 10:05:02 -05:00
Alan Rominger
adb1b12074
Update RBAC docs, remove unused get_permissions ( #14492 )
...
* Update RBAC docs, remove unused get_permissions
* Add back in section for get_roles_on_resource
2023-11-16 11:29:33 -05:00
Alan Rominger
8fae20c48a
Remove unused methods we attach to user model ( #14668 )
2023-11-16 11:21:21 -05:00
Jeff Bradberry
14992cee17
Add in an async task to migrate the data over
2023-08-10 13:48:58 -04:00
Rick Elrod
ab0463bf2a
Ordered m2m for Inventory/Inventory relationship ( #13602 )
...
Including changes to our custom Ordered m2m field which previously broke
if the source and target model was the same.
Signed-off-by: Rick Elrod <rick@elrod.me >
Co-authored-by: Alan Rominger <arominge@redhat.com >
2023-03-28 11:20:24 -05:00
Martin Slemr
f919178734
HostMetricSummaryMonthly API and Migrations
2023-03-23 14:06:55 -04:00
Jeff Bradberry
d54838cd94
Remove the out-of-band migration
...
that was turning all old JSONFields into a jsonb type database column.
The use of JSONBlob makes this unnecessary.
2022-03-24 15:21:59 -04:00
Jeff Bradberry
676b8f6d8f
Implement an out-of-band migration to change the json fields
2022-03-07 18:11:36 -05:00
Jeff Bradberry
c8f1e714e1
Capture hop nodes and the peer links between nodes
2021-12-17 14:30:18 -05:00
Jeff Bradberry
7010015e8a
Change the ActivityStream registration for InstanceGroups
...
to include the m2m fields. Also to avoid spamminess, disable the
activity stream on the apply_cluster_membership_policies task.
2021-11-10 08:50:12 +08:00
Jeff Bradberry
1e5231d68b
Enable ActivityStream capture for Instances
2021-11-10 08:50:12 +08: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
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
fedora
c1ea489043
created a new model 'HostMetrics' which will contain the first timestamp and the most recent timestamp of any automation on a given object and Added a new 'awx-manage' command. command : awx-manage host_metrics --since <datetime> --until <datetime>
2021-05-18 13:56:45 -04:00
Alan Rominger
38352063e8
Remove custom inventory script API
2021-04-22 08:36:46 -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
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
41613ff544
Add a new ExecutionEnvironment model
2021-03-03 18:52:53 -05:00
Ryan Petrello
16848e9154
stop detecting the need for event data migration
...
related: https://github.com/ansible/awx/issues/6010
as noted in the comment removed from this diff, it's probably time
to stop calling this function on every dispatcher service restart
2021-01-22 09:22:00 -05:00
Marcelo Moreira de Mello
3803763c53
Exposes the User.created attribute via API
...
Signed-off-by: Marcelo Moreira de Mello <tchello.mello@gmail.com >
2020-07-17 15:47:17 -04:00
Ryan Petrello
d19a9db523
detect event migration tables in a less noisy way
...
see: https://github.com/ansible/awx/issues/6493
2020-03-31 00:05:30 -04:00
Ryan Petrello
c8044b4755
migrate event table primary keys from integer to bigint
...
see: https://github.com/ansible/awx/issues/6010
2020-03-26 15:54:38 -04:00
chris meyers
3b9e67ed1b
remove channel group model
...
* Websocket user session <-> group subscription membership now resides
in Redis rather than the database.
2020-03-18 16:10:18 -04:00
softwarefactory-project-zuul[bot]
2918b6c927
Merge pull request #4264 from beeankha/workflow_pause_approve
...
Workflow Approval Nodes
Reviewed-by: Ryan Petrello
https://github.com/ryanpetrello
2019-08-28 22:25:39 +00:00
softwarefactory-project-zuul[bot]
8be46e43b4
Merge pull request #4600 from ryanpetrello/cli-json-inputs
...
cli: improve parsing of JSON inputs
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2019-08-27 20:33:51 +00:00
beeankha
582bbda9c4
Fix bug in Activity Stream, add tests.
2019-08-27 15:38:11 -04:00
beeankha
d9f3fed06f
Update UJ/UJT endpoints, update approval RBAC, update approval timeout
2019-08-27 15:36:25 -04:00
beeankha
3357c96774
Enable deletion of orphaned approval nodes
...
Update serializer to include workflow approval for activity stream
2019-08-27 15:36:19 -04:00
beeankha
64c94d478d
Add more RBAC, filter out AJT/AJs from unified jobs lists
...
Comment out placeholder in serializer
2019-08-27 15:36:17 -04:00
beeankha
294d6551b9
Polishing up work on new endpoint
2019-08-27 15:30:48 -04:00
beeankha
320284267c
Add new endpoint for creation of approval nodes
2019-08-27 15:30:47 -04:00
beeankha
9024a514a6
Add API endpoints for workflow approvals
2019-08-27 15:30:39 -04:00
Ryan Petrello
f22adca6f7
improve parsing of JSON inputs
...
see: https://github.com/ansible/awx/issues/4573
see: https://github.com/ansible/awx/issues/2371
2019-08-27 12:47:27 -04:00
Jim Ladd
8158632344
render notification templates
2019-08-25 23:11:24 -07:00
Ryan Petrello
a47a2d8567
properly set is_system_auditor on initial LDAP login
...
django-auth-ldap recently changed its behavior at login to *delay* the
user.save() call:
b777321fb4
our current process of discovering and setting up the system auditor
role at LDAP login *relies* on the user having a primary key, so this
code now manually calls .save() to enforce one
2019-07-30 10:05:39 -04:00
Jeff Bradberry
2d81923e22
Fix up changes in fields in the migrations
...
Particularly the now-required on_delete parameter for ForeignKey and
OneToOneField.
2019-07-12 15:11:22 -04:00
Jeff Bradberry
bcbb768dd3
Remove the use of the deprecated Field.rel attribute
...
Also, rename a number of variables named `rel` for ease of searching.
2019-07-12 15:11:21 -04:00
Ryan Petrello
6da445f7c0
remove /api/v1 and deprecated credential fields
2019-06-06 12:23:00 -04:00
AlanCoding
fedd1cf22f
Replace JobOrigin with ActivityStream.action_node
2019-05-31 07:10:07 -04:00
AlanCoding
9c71204435
show activity stream entry for system auditor association
2019-04-16 15:59:04 -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
Jake McDermott
c209955400
add credential plugin system and minimal working hashivault
2019-04-02 11:19:26 -04:00
Kia Lam
d2c345a374
Fix API lint error.
2019-02-22 13:06:20 -05:00
Ryan Petrello
43ca4526b1
define native CredentialType inputs/injectors in code, not in the DB
...
This has a few benefits:
1. It makes adding new fields to built-in CredentialTypes _much_
simpler. In the past, we've had to write a migration every time we
want to modify an existing type (changing a label/help text,
changing options like the recent become_method changes) or
when adding a new field entirely
2. It paves the way for third party credential plugins support, where
importable libraries will define their own source code-based schema
2019-02-19 10:22:26 -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
Ryan Petrello
f223df303f
convert py2 -> py3
2019-01-15 14:09:01 -05:00
AlanCoding
d2cd337c1f
fix links to some resources that lack v1 pages
2018-12-06 08:29:23 -05:00
Ryan Petrello
db1a669c68
work around a django-polymorphic bug that breaks certain cascades
...
see: #1794
2018-05-15 16:55:37 -04:00