Commit Graph
100 Commits
Author SHA1 Message Date
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 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
Jake McDermott 84dcda0a61 Use job launch_type field to detect webhook jobs
We have a launch type field for categorizing the different ways jobs
can be launched. This updates the UI to use this field when checking
if a job was launched by a webhook.
2019-09-30 13:32:23 -04:00
Jake McDermott e85ff83be6 Apply 403 alert fixes for Workflows, too 2019-09-30 13:32:22 -04:00
Jake McDermott d500c1bb40 Don't alert user of 403 errors for webhook key 2019-09-30 13:32:22 -04:00
Jake McDermott f7396cf81a Always include selected webhook service in creation requests 2019-09-30 13:32:22 -04:00
Jake McDermott 75d3359b6f make label consistent with help text 2019-09-30 13:32:21 -04:00
Jake McDermott 08594682a4 stub options request in workflow add unit test 2019-09-30 13:32:21 -04:00
Jake McDermott 3bc91f123e add trailing '/' to webhook urls 2019-09-30 13:32:21 -04:00
Jake McDermott 41ba5c0968 add webhook fields to workflow unit test mock 2019-09-30 13:32:21 -04:00
Jake McDermott b96c03e456 represent webhooks on job lists 2019-09-30 13:32:21 -04:00
Jake McDermott 5e9448a854 always show launched by webhook details if there's a webhook guid 2019-09-30 13:32:21 -04:00
Jake McDermott 6b17e86f30 add launched-by-webhook details to job runs 2019-09-30 13:32:21 -04:00
Jake McDermott 00337990db add webhook fields to workflows 2019-09-30 13:32:21 -04:00
Jake McDermott 1a33ae61a7 use key icon for webhook cred 2019-09-30 13:32:21 -04:00
Jake McDermott 5f7bfaa20a support server-side webhook key generation 2019-09-30 13:32:21 -04:00
Jake McDermott e0a363beb8 issue network calls for setting and getting webhook key 2019-09-30 13:32:20 -04:00
Jake McDermott 48eb502161 wip 2019-09-30 13:32:20 -04:00
Jake McDermott 151de89c26 add webhook credential field 2019-09-30 13:32:20 -04:00
Jake McDermott f5c151d5c4 add webhook url field 2019-09-30 13:32:20 -04:00
Jake McDermott 17b34b1e36 add webhook service field 2019-09-30 13:32:20 -04:00
Jake McDermott 9697e1befb comment fixup 2019-09-16 14:51:56 -04:00
Jake McDermott 84a8559ea0 psuedo -> pseudo 2019-09-16 14:51:56 -04:00
Jake McDermott 8ac8fb9016 add more details to workflow limit help text 2019-09-16 14:51:56 -04:00
Jake McDermott 311860e027 show extra vars on workflow template schedules
When the workflow job template prompts for extra vars, we show the
extra vars input field on the scheduler.
2019-09-13 09:12:15 -04:00
Jake McDermott a7db4cf367 set result traceback state on sync and send it to subscribers 2019-08-30 17:05:33 -04:00
Jake McDermott 04f7218b4a also make labels work for add view 2019-08-27 17:41:54 -04:00
Jake McDermott d068fef767 handle message validation errors 2019-08-25 23:11:24 -07:00
Jake McDermott 94d6fcbe39 set default credentials when cred file not provided 2019-08-22 14:47:23 -04:00
Jake McDermott 2bda1db43e add akit config to gitignore 2019-08-20 11:10:08 -04:00
Jake McDermott 55376bfd13 load related credentials when editing 2019-08-14 14:15:24 -04:00
Jake McDermott a8511f967b build details url once 2019-08-14 14:15:24 -04:00
Jake McDermott e3d6ee6f9e move label requests to function 2019-08-14 14:15:24 -04:00
Jake McDermott d05c1bdd6e move function comment into function 2019-08-14 14:15:24 -04:00
Jake McDermott c96dfd101c use alias for type import 2019-08-14 14:15:24 -04:00
Jake McDermott 2a926fffd9 set default timezone to UTC for test runs 2019-08-13 17:05:48 -04:00
Jake McDermott b2922792bc add function for testing output lines 2019-08-13 17:05:47 -04:00
Jake McDermott 033308de69 add missing event placeholders and recompute heights on load 2019-08-13 17:05:46 -04:00
Jake McDermott 0a3633113e ensure results are always indexed by counter when loading new rows 2019-08-13 17:05:46 -04:00
Jake McDermott 40560e962f compute row height on-the-fly 2019-08-13 17:05:45 -04:00
Jake McDermott 474a2a48bb add job event component and sanitized html building for output lines 2019-08-13 17:05:45 -04:00
Jake McDermott 245252ed11 refactor lookup tests 2019-08-13 13:13:12 -04:00
Jake McDermott 61ca4278c8 remove extra and trailing slashes from url 2019-08-12 18:59:02 -04:00
Jake McDermott 97f841057f fix method mapping for webhook notification add 2019-07-24 15:50:27 -04:00
Jake McDermott 1fe18dc588 normalize http method choice values 2019-07-23 19:58:35 -04:00
Jake McDermott 37e73acb62 cleanup tooling 2019-07-23 11:47:19 -04:00
Jake McDermott d66106d380 rename docker-notifications to docker-httpbin 2019-07-23 11:47:19 -04:00
Jake McDermott 2b74b6f9b6 add tooling for basic testing of notification webhooks 2019-07-23 11:47:19 -04:00
Jake McDermott cc0310ccd4 add notification webhook fields 2019-07-23 11:47:19 -04:00
Jake McDermott 5b1350db75 fix reference to undefined prop for auditors 2019-07-18 10:21:50 -04:00
Jake McDermott 35d9a8f839 support nested engine names for hashivault kv v2 secret engine
Add a field to hashivault plugins for identifying the secret
backend (mount point). If no secret backend is provided, the
first part of the secret path is used.
2019-07-16 13:13:22 -04:00
Jake McDermott 90f7e9375f get more events on page down or up when needed
when we page up or down, check if we've moved into the upper or lower
threshold of the scrollbar and request more events to show if we have.
2019-07-09 10:21:48 -04:00
Jake McDermott 0b724682da fix README snippet 2019-07-01 19:50:16 -04:00
Jake McDermott 945d9156a6 do formatting check with ci linter 2019-07-01 14:27:25 -04:00
Jake McDermott bf86719412 add a note about running the formatter 2019-07-01 14:16:17 -04:00
Jake McDermott 059fa9001a Merge pull request #287 from jakemcdermott/more-big-pr-fixups
misc cleanup from big prs
2019-06-24 10:22:33 -04:00
Jake McDermott cc36b46925 remove network context mock 2019-06-21 12:15:59 -04:00
Jake McDermott 657a6f3a93 use top-level import aliases 2019-06-21 12:10:01 -04:00
Jake McDermott 9dda5404a0 add 'has' prefix to error booleans 2019-06-21 12:01:29 -04:00
Jake McDermott c3823771a7 Merge pull request #269 from jakemcdermott/jobs-list-skeleton
job list skeleton
2019-06-21 11:54:16 -04:00
Jake McDermott 69426dee08 add basic test coverage for job list 2019-06-21 11:46:40 -04:00
Jake McDermott 22dbe5c0f9 add shared DataListCell component 2019-06-21 11:46:40 -04:00
Jake McDermott d8452e1259 job list skeleton 2019-06-21 11:46:35 -04:00
Jake McDermott cd672baa13 Merge pull request #284 from jakemcdermott/move-yaml-test
move yaml test to utils
2019-06-20 15:00:08 -04:00
Jake McDermott 30709d1ab2 Merge pull request #283 from jakemcdermott/has
prefix content error and loading booleans with 'has'
2019-06-20 14:59:52 -04:00
Jake McDermott f382fce576 move yaml test to utils 2019-06-20 14:47:39 -04:00
Jake McDermott 36d2d03bc7 prefix content error and loading booleans with 'has' 2019-06-20 14:37:46 -04:00
Jake McDermott 3b7b27ea20 Merge pull request #276 from jlmitch5/testWatchFix
fix jest.config.js so `npm run test-watch` works
2019-06-20 08:25:56 -04:00
Jake McDermott f33b343cd8 Merge pull request #274 from jakemcdermott/alias-top-level-imports
alias top-level imports
2019-06-19 13:09:26 -04:00
Jake McDermott 012852ec53 alias top-level imports 2019-06-19 11:45:57 -04:00
Jake McDermott a98be1443b Merge pull request #255 from jakemcdermott/update-content-loading-and-errors
update content loading and error handling
2019-06-14 13:29:16 -04:00
Jake McDermott e35f7acd05 add test coverage for auth utils 2019-06-14 13:01:02 -04:00
Jake McDermott 4aa4490933 add test coverage for api notification mixin 2019-06-14 13:00:50 -04:00
Jake McDermott e72f0bcfd4 update content loading and error handling
unwind error handling

use auth cookie as source of truth, fetch config only when authenticated
2019-06-14 13:00:37 -04:00
Jake McDermott 534418c81a Merge pull request #262 from catjones9/organizations
Added Max Hosts field on Organizations Add/Edit form
2019-06-14 12:39:10 -04:00
Jake McDermott 90fb7c6769 unpin vault plugin development container image 2019-06-12 10:23:01 -04:00
Jake McDermott d4301bd9bd update v1 credential deletion prompt queries 2019-06-11 09:45:15 -04:00
Jake McDermott 6bc5c4da74 include credential in inventory update detail summary 2019-06-06 12:23:17 -04:00
Jake McDermott 51d7de296f remove dead code related to v1 kind field
Currently, the credentials list doesn't seem to be returning
any options data for 'kind' so this code wasn't being reached. In
the future api updates, we'll also be removing the 'kind' field from
credentials in general.
2019-06-06 12:23:11 -04:00
Jake McDermott 5987aafb82 update shared client code for api v2 2019-06-06 12:23:09 -04:00
Jake McDermott 7a0a2fb54c update adhoc command queries for api v2 2019-06-06 12:23:06 -04:00
Jake McDermott 2f57a1ea93 update inventory source credential lookup queries for api v2 2019-06-06 12:23:03 -04:00
Jake McDermott 1dcb1eda7c add some debug helpers for tests
Signed-off-by: Jake McDermott <yo@jakemcdermott.me>
2019-05-31 11:51:36 -04:00
Jake McDermott 8d8d9292bc Merge pull request #212 from jakemcdermott/wait-for-element
add waitForElement helper
2019-05-22 10:52:14 -04:00
Jake McDermott 7965f94027 add waitForElement helper 2019-05-22 08:56:49 -04:00
Jake McDermott df04660cdd add test for instance groups service 2019-05-10 10:05:05 -04:00
Jake McDermott 232c706b75 add docstring for instance group service 2019-05-10 07:16:50 -04:00
Jake McDermott 205f2c33c1 wait for instance group requests on template save 2019-05-08 11:56:19 -04:00
Jake McDermott 1e77053bbf handle re-ordering of instance groups 2019-05-08 11:56:05 -04:00