Commit Graph
100 Commits
Author SHA1 Message Date
Jake McDermott 6f582b5688 Don't show user-only roles for teams 2020-03-27 11:18:15 -04:00
Jake McDermott 579648a017 Identify user-only organization roles
Organization participation roles (admin, member) can't be assigned to a
team. Add a field to the object roles so the ui can know not to display
them for team role selection.
2020-03-27 11:12:39 -04:00
Jake McDermott f2e9a8d1b2 Limit disable-on-load to single notifications 2020-03-27 10:32:11 -04:00
Jake McDermott 27b5b534a1 Add advice for creating bug reports 2020-03-26 19:49:38 -04:00
Jake McDermott e17c93ecd7 Don't allow blank adhoc command module names 2020-03-25 13:11:30 -04:00
Jake McDermott 55c18fa76c Remove unnecessary project template add option 2020-03-25 11:26:30 -04:00
Jake McDermott b56812018a Don't delete confirmed password from formik object
If the save fails, the form will attempt to reload the
deleted value.
2020-03-24 12:21:07 -04:00
Jake McDermott 6f3527ed15 Don't refresh settings on websocket event 2020-03-23 18:29:01 -04:00
Jake McDermott fe2ebeb872 Fix host event type and reference errors 2020-03-23 17:46:42 -04:00
Jake McDermott d23fb17cd9 Auto-update dependencies in lock file 2020-03-17 11:33:55 -04:00
Jake McDermott f8f6fff21e Show playbook field on JT when read-only 2020-03-13 13:35:49 -04:00
Jake McDermott b41c9e5ba3 Normalize initial value of select2 fields 2020-03-13 09:43:12 -04:00
Jake McDermott 401be0c265 Add parser error handling for settings json 2020-03-13 09:23:11 -04:00
Jake McDermott 1ee46ab98a Mark access removal prompts for translation 2020-03-13 09:20:59 -04:00
Jake McDermott 4381a7d75c Remove some rogue awaits 2020-03-10 11:59:37 -04:00
Jake McDermott 24d35e9593 Remove duplicate schedule tab 2020-03-09 13:39:40 -04:00
Jake McDermott beb10feb0c Refactor top-level host and inv routing components
* Remove route render props
* Remove unneeded load checks
* Make PageSection component placement consistent with other screens
* Fix issues causing complete panel reload on tab change
2020-03-09 12:12:49 -04:00
Jake McDermott 6ec9c45341 Fix screen reload on host tab change 2020-03-09 11:35:26 -04:00
Jake McDermott a5afac62ca Fix panel reloading and clean up unneeded code 2020-03-05 15:36:25 -05:00
Jake McDermott deaf2028ad Request all types for multicred lookup 2020-03-04 09:08:46 -05:00
Jake McDermott d812972d3c Wrap credential help text at 110 chars 2020-03-04 09:08:01 -05:00
Jake McDermott be56a1d3df Fix job->inventory links 2020-03-03 18:42:49 -05:00
Jake McDermott 6536f5a453 Delete falsey project creds before POST|PATCH
Depending on the permissions of the user submitting the form, the API
might throw an unexpected error if our creation request has a
zero-length string as its credential field. As a work-around,
normalize falsey credential fields by deleting them.
2020-02-26 14:22:58 -05:00
Jake McDermott bd30951a4f Pass empty array instead of null to rbac list
The DataListToolbar component expects an array for additional controls
in all cases. When there's no controls to pass into the toolbar,
provide an empty array to avoid type-related errors.
2020-02-26 13:22:22 -05:00
Jake McDermott 43cce83ba1 Handle api error 'detail' key as generic form error 2020-02-26 12:44:20 -05:00
Jake McDermott 83a96757db Add section for patterns 2020-02-20 15:57:08 -05:00
Jake McDermott 3831efb3be Use pod uid as instance uuid
Inject the pod uid as an environment variable and use it for the
SYSTEM_UUID in the settings file defined by the configmap.
2020-02-12 13:52:09 -05:00
Jake McDermott 7402ac29a8 Order job_event requests by start_line
Ordering job_event requests by `start_line` accomplishes the same thing
as ordering by `counter`. The `start_line` field is more performant
because we have indexed it in the database.
2020-02-12 10:11:28 -05:00
Jake McDermott b06645e125 Show any/all convergence option on root node 2020-02-05 15:51:38 -05:00
Jake McDermott 04844aa44f Add 'ALL' indicator to 'ALL' nodes 2020-02-05 14:28:35 -05:00
Jake McDermott 4fe9e5da14 Use select for any/all convergence choice 2020-02-05 14:28:35 -05:00
Jake McDermott bbb4701fa9 Don't show any/all convergence option on root node 2020-02-05 14:28:35 -05:00
Jake McDermott 987fc26537 Add any/all option for workflow node convergence 2020-02-05 14:28:34 -05:00
Jake McDermott 11af21972d Use default cloud name if one isn't passed to azure plugin 2020-01-17 12:36:04 -05:00
Jake McDermott a6f063b199 Set default MAX_FORKS to 200 2020-01-15 17:26:15 -05:00
Jake McDermott 0d98a1980e Add a configurable limit for job forks 2020-01-15 13:51:59 -05:00
Jake McDermott 2b02b1affd Support AzureCloud choices for azure keyvault 2020-01-15 13:13:10 -05:00
Jake McDermott 44c0eb867b Remove group status cols
Remove the status col from any group list that used the now-removed
computed fields.
2020-01-14 16:37:20 -05:00
Jake McDermott 773b976f8a Remove dead code 2020-01-14 16:37:20 -05:00
Jake McDermott 1220847c27 Remove unused host status service 2020-01-14 16:37:20 -05:00
Jake McDermott ec1c2a8391 Remove status icons from group nested groups 2020-01-14 16:37:19 -05:00
Jake McDermott 2bc6521eee Use related hosts and group counts for delete modal 2020-01-14 16:37:19 -05:00
Jake McDermott 107d2da845 Remove status icons from host nested groups 2020-01-14 16:37:19 -05:00
Jake McDermott cf9f00ab86 Use summary object_roles to lookup admin role id
To find the id of an org's admin role, use the `object_role` names
in the organization's summary_fields instead of filtering on
potentially translated role names.
2020-01-13 11:28:14 -05:00
Jake McDermott d91e72c23f Generate new uuid for newly registered iso nodes
When provisioning a new isolated node, generate a new uuid instead of
reusing the SYSTEM_UUID of the controller node.
2020-01-03 12:59:57 -05:00
Jake McDermott 23914182c4 Add credential_type summarizable fk field 2019-12-18 18:31:24 -05:00
Jake McDermott 057320aed3 Move organization form to functional component 2019-12-18 12:35:01 -05:00
Jake McDermott b8d6991e9d Measure unit test coverage of test utils 2019-12-18 11:55:50 -05:00
Jake McDermott 7cc3a7c39d Replace withRouter HOC with route hooks 2019-12-18 10:05:03 -05:00
Jake McDermott 9c291c2b50 Move routed org views to functional components 2019-12-18 10:04:54 -05:00
Jake McDermott 86eb541b3f Keep warning icon size consistent 2019-12-17 16:12:53 -05:00
Jake McDermott 014520ee2b Initialize list with none selected 2019-12-16 11:46:53 -05:00
Jake McDermott 9ed2534ac5 Don't reload panel on tab change 2019-12-16 09:25:12 -05:00
Jake McDermott a3bc3986bb Fix resource access list user links 2019-12-16 08:51:10 -05:00
Jake McDermott 230933744c Fix nav user links 2019-12-16 08:50:59 -05:00
Jake McDermott 227a90006e Update webpack to 4.41.2 2019-12-16 08:36:24 -05:00
Jake McDermott 9744b89737 Use job details status to test status 2019-12-13 17:32:23 -05:00
Jake McDermott e34c7acdc4 Migrate organization add to functional component 2019-12-06 14:54:29 -05:00
Jake McDermott bc6d879976 Merge pull request #4015 from mabashian/4013-backport-angular-upgrade
[3.6.2 backport] Upgrades angular and auxiliary deps to 1.7.9
2019-12-05 11:34:28 -05:00
Jake McDermott c5e22f9aa3 Update job redirects and tab placement
Change display order of the output tab so that it is second and make
it the default for redirects and job launches.
2019-12-04 14:37:15 -05:00
Jake McDermott 540f8ab7d6 Only show cred type test button to superusers.
Without a credential instance, plugin tests go through the credential
type (not credential) api. Since this endpoint is for superusers only,
we hide the test button when non-superusers are adding a new external
credential.
2019-12-03 15:23:02 -05:00
Jake McDermott 63fd546f44 Let cred admins and users test credential plugins 2019-12-03 13:36:18 -05:00
Jake McDermott 068dab14d4 Increase async test timeout
When our CI system is overloaded, tests start running slower.
2019-11-12 13:04:00 -05:00
Jake McDermott 69205c5f6b try a higher timeout ¯\_(ツ)_/¯
https://github.com/ansible/awx/issues/5234
https://github.com/ansible/awx/pull/5250
2019-11-06 08:24:35 -05:00
Jake McDermott 5e6ee4a371 Improve WFJT webhook credential wording 2019-10-30 17:52:30 -04:00
Jake McDermott a23754897e Improve accuracy of code comment 2019-10-29 11:24:17 -04:00
Jake McDermott 6f2a07a7df Scrape tag input state from dom and put it in vm
The tag input state lives somewhere in the associated select2 widgetry
and isn't directly tied to the vm like it is for the other inputs.
2019-10-29 11:24:16 -04:00
Jake McDermott cf5d3d55f0 Set omitted runner event line lengths to 0
runner_on_start events have zero-length strings for their stdout
fields. We don't want to display these in the ui so we omit them.
Although the stdout field is an empty string, it still has a recorded
line length of 1 that we must account for. Since we're not rendering
the blank line, we must also go back and set the event record's line
length to 0 in order to avoid deleting too many lines when we pop or
shift events off of the view while scrolling.
2019-10-29 11:24:10 -04:00
Jake McDermott e91d383165 Fix off-by-one errors 2019-10-29 11:24:10 -04:00
Jake McDermott ad383cdb44 Merge pull request #3909 from jakemcdermott/fix-3578-comment
Improve code comment regarding handling of omitted events
2019-10-28 11:52:11 -04:00
Jake McDermott 91afa88b44 Improve accuracy of code comment 2019-10-28 11:28:57 -04:00
Jake McDermott 1869b73826 Merge pull request #3906 from jakemcdermott/fix-5110
Fix job / skip tags not getting used on launch prompt
2019-10-28 09:15:08 -04:00
Jake McDermott 841975d72b Scrape tag input state from dom and put it in vm
The tag input state lives somewhere in the associated select2 widgetry
and isn't directly tied to the vm like it is for the other inputs.
2019-10-26 20:02:41 -04:00
Jake McDermott a517b15c26 Remove close button from job details 2019-10-25 11:59:40 -04:00
Jake McDermott e17ee4b58f Hide revision copy button when there's no revision 2019-10-25 11:40:06 -04:00
Jake McDermott b19539069c Merge pull request #3863 from jakemcdermott/fix-3578-part-3
Set omitted runner_on_start event line lengths to 0
2019-10-21 10:37:09 -04:00
Jake McDermott 312cf13777 Set omitted runner event line lengths to 0
runner_on_start events have zero-length strings for their stdout
fields. We don't want to display these in the ui so we omit them.
Although the stdout field is an empty string, it still has a recorded
line length of 1 that we must account for. Since we're not rendering
the blank line, we must also go back and set the event record's line
length to 0 in order to avoid deleting too many lines when we pop or
shift events off of the view while scrolling.
2019-10-19 19:18:45 -04:00
Jake McDermott c6033399d0 Fix off-by-one errors 2019-10-19 18:58:42 -04:00
Jake McDermott 97a635ef49 Merge pull request #3844 from jakemcdermott/fix-3578-part-1
Always disable search when processing events
2019-10-18 15:07:41 -04:00
Jake McDermott 3f113129a9 Merge pull request #3851 from jakemcdermott/fix-3578-part-2
Get the last two pages of events on page load
2019-10-18 12:46:19 -04:00
Jake McDermott 95c9e8e068 Always disable search when processing events
When jobs are still processing events, the UI uses numerical ranges
based on job_event.counter instead of page numbers. We can't apply
search filters in this state because then there would be no way to
distinguish between events that are missing due to being filtered out
by search and events that are missing because they're still being
processed.

The UI must be able to distinguish between the two types of missing
events because their absence is presented differently. Events that are
filtered out by a search query have no visual representation, while
events that are missing due to event processing or other causes are
displayed as clickable "..." segments.
2019-10-17 18:37:33 -04:00
Jake McDermott 1fae3534a1 Get the last two pages of events on page load
When the page loads, we want to retrieve and initially display enough
content for the scrollbar to show. If the very last page doesn't
have enough content for the scrollbar to show, the user won't be able
to scroll up to see more job history. To avoid this scenario, we always
fetch the last _two_ pages when loading the view.
2019-10-17 16:19:19 -04:00
Jake McDermott e15bb4de44 Merge pull request #3827 from jakemcdermott/fix_flake8_error
Fix flake8 error
2019-10-16 09:47:57 -04:00
Jake McDermott 8c5b0cbd57 Merge pull request #3815 from jakemcdermott/fix-3790
Allow navigation to previous launch prompt tabs
2019-10-16 09:36:54 -04:00
Jake McDermott 73272e338b Merge pull request #3809 from AlexSCorey/4944-4943-TOCBugs
Sys Aud can see CG forms, Adds correct CG form link, Disables CodeMirror
2019-10-16 09:35:02 -04:00
Jake McDermott cd18ec408c Remove unused variable 2019-10-16 09:30:43 -04:00
Jake McDermott 85781d0bc1 Allow navigation to previous launch prompt tabs 2019-10-14 17:07:50 -04:00
Jake McDermott 03d59e1616 Tune webpack config and add Dockerfile
Add Dockerfile for running containerized dev server. Update webpack
config to make dev server available over exposed docker port.
2019-10-10 17:37:27 -04:00
Jake McDermott c202574ae3 Switch default job panel to output 2019-10-09 14:31:44 -04:00
Jake McDermott bc6648b518 Use consistent wording for JT options 2019-10-09 13:22:40 -04:00
Jake McDermott a7a194296c Use summary_fields.controller_id to tell if job is isolated 2019-10-08 12:08:23 -04:00
Jake McDermott 132555485c Add targets for combined lint and test
Reduce the total number of simultaneous zuul jobs.
2019-10-07 14:49:18 -04:00
Jake McDermott 85909c4264 Gracefully handle missing summary fields
Not all templates have `modified_by`, `created_by` fields or
other summary_fields. Avoid page load error by only referencing these
fields if they exist.
2019-10-07 10:57:56 -04:00
Jake McDermott 61a756c59d add is_containerized to ig serializer 2019-10-04 13:21:27 -04:00
Jake McDermott b547a8c3ca link to container group from job runs 2019-10-04 13:21:27 -04:00
Jake McDermott d3b0edf75a Apply date formatter to lists and details 2019-10-04 13:17:15 -04:00
Jake McDermott 9421781cc7 Add basic date formatter 2019-10-04 13:16:42 -04:00
Jake McDermott 275765b8fc Refactor language utility
Move the language helper out of RootProvider and into a utilities
module so that it can be more easiliy reused where needed. In some
cases we want the full language code so that logic has been moved
into a separate function.
2019-10-03 20:26:47 -04:00
Jake McDermott 731982c736 Build correct job_event url for different job types 2019-10-03 16:27:02 -04:00
Jake McDermott b4b2cf76f6 Refactor job secondary label assignment 2019-10-01 10:33:47 -04:00