Commit Graph
100 Commits
Author SHA1 Message Date
Jared Tabor d8aff34f63 null pointer exception 2015-11-05 11:17:17 -08:00
Jared Tabor 095f8d349d adding default value for idle modal 2015-11-03 07:45:31 -08:00
Jared Tabor 555a8314d6 Checking for valid object in ProcessErrors 2015-11-02 15:57:17 -08:00
Jared Tabor 045014f3bc posting license after user posts license
then reissue pendo identity
2015-10-29 16:35:09 -07:00
Jared Tabor 861766e513 Adding ansible & tower versions to pendo object
Adding these keys to the account_id object
2015-10-29 14:34:53 -07:00
Jared Tabor f5bf789cb1 disabling pendo guides
we're not using the pendo guides in this release. This change turns off the outbound requests to pendo to check for guides.
2015-10-29 13:56:31 -07:00
Jared Tabor 3892b3db1c Forgot to update object reference for upgraded $http service from angular 1.4 2015-10-28 10:08:46 -07:00
Jared Tabor d2cefe6018 adding null pointer check
for timer factory when a user logs out from another tab
2015-10-28 08:47:09 -07:00
Jared Tabor 65d44287df fix console error with rest interceptor
null pointer exception fixed
2015-10-27 21:09:12 -07:00
Jared Tabor 12d31c5099 promise function was outdated for $http request of config.js
using .catch instead of .error
2015-10-27 20:49:37 -07:00
Jared Tabor 6c8597cf95 Wrapping timer init in promise
to ensure that timer is started before initializing websockets. This was leading to instances where the websocket thought that the session
hadn't been started yet. Also fixed an issue where the session wasn't tearing down the $interval when AUTH_TOKEN_PER_USER had been exceeded.
2015-10-27 13:51:54 -07:00
Jared Tabor 80eeda1c8c removing stale code
to make atom happy :)
2015-10-25 18:32:54 -07:00
Jared Tabor b83dfda92c fixing a null pointer exception if services are down and user attempts to login 2015-10-25 17:29:29 -07:00
Jared Tabor e18791a657 Integer Directive was returning false for a blank string
this was causing the integer directive to throw an error if the user entered something in the field, then erased it.
2015-10-25 14:48:23 -07:00
Jared Tabor f73e56439a On logout, log the user out of the UI on all open tabs
I've also reworked the logic around storing the user session idle time in localStorage
2015-10-23 17:12:04 -07:00
Jared Tabor d7c78d0b28 adding check for missing session time from local storage
for gracefully failing if session time isn't set
2015-10-16 20:26:25 -07:00
Jared Tabor fa2a11d8e7 Properly handle idle/expired session across tabs
this utilizes local storage instead of cookies/rootscope
2015-10-16 16:48:09 -07:00
Jared Tabor b45534859f fixing custom inventory script error
the source_script ID wasn't getting translated to inventory script ID on sources_scope when editing a preexisting source
2015-10-14 13:40:37 -07:00
Jared Tabor ff121a56c1 check for object existence before searching for key on that object
to resolve some console errors in regards to http  error handling
2015-10-14 09:14:44 -07:00
Jared Tabor 7e95b3cde7 fixing timer that would log user out on each page refresh
the check to see if the session time existed in memory was not specific enough
2015-10-13 11:37:55 -07:00
Jared Tabor 17fe670393 making pendo bootstrapping more explicit
bootstrap if state is anonymous/detailed (was previously set to !off)
2015-10-13 10:28:54 -07:00
Jared Tabor 414b8292ab removing ng-pendo from UI packaging
because Pendo pushed the updated ng-pendo to their server for delaying the bootstraping of pa.min.js
2015-10-12 09:54:08 -07:00
Jared Tabor d937f996ae adding ng-pendo.js
until the pendo guys load it on their servers
2015-10-08 14:12:47 -04:00
Jared Tabor fa4dd9a335 load pa.min.js for pendo on demand
courtesy of our friends at Pendo
2015-10-08 11:58:49 -04:00
Jared Tabor b6e51a0cd4 updated $http call to angular 1.4 implementation 2015-10-08 11:46:15 -04:00
Jared Tabor 4ea2e10f1c rejecting promise on requestError REST interceptor 2015-10-08 11:45:39 -04:00
Jared Tabor 2056ac16d5 use isEmpty check for valid object on session limit 2015-10-02 00:46:43 -04:00
Jared Tabor c96f0234f9 UI side of the session limit
includes the 'control' socket, kicking the user out, and adjusting the
expireSession function based on the reason
2015-10-01 18:02:06 -04:00
Jared Tabor fd34854f7a Session timeout after idle session
This commit is the UI portion of the session timeout feature for 2.4 (not incorporating the session_limit yet). This includes actively ending a session when the user's session time has expired, as well as giving the user a notification one minute prior that their session is about to end. It also includes removing 'session_timeout' from config.js. This is now retrieved from the response headers of each REST call. Each time the user make a rest call the session is extended another 1800 seconds (or whatever amount the user might configure with AUTH_TOKEN_EXPIRATION in local_settings.py)
2015-10-01 18:01:22 -04:00
Jared Tabor 879941e029 rejecting promises if erroring out 2015-09-30 13:51:01 -04:00
Jared Tabor 0f1d9a8743 removing resolve on /login route 2015-09-30 11:09:09 -04:00
Jared Tabor 0c7507d3a0 moving pendo service to login/authentication folder 2015-09-30 10:20:08 -04:00
Jared Tabor 29daee8334 Pendo.io service for Tower UI
This commit integrates the pendo support for the Tower UI, which involves creating an 'options' object and registering it with the pendo service installed in the index.html file. The options object is identified each time the user logs into Tower or when the browser session is refreshed.
2015-09-29 15:18:13 -04:00
Jared Tabor 33a82222b9 updated $http get request from deprecated syntax for angular 1.4 2015-09-21 11:38:53 -04:00
Jared Tabor f88320a5f7 LoadConfig fix to load config.js first and then local_settings.json 2015-09-21 11:15:10 -04:00
Jared Tabor f4f54cc6dc Refactoring login modal and services
refactoring login modal logic to extract html into its own partial
2015-09-14 14:06:29 -04:00
Jared Tabor 8aa9325e43 removing "Choose a..." option for select2 fields
in form generator
2015-09-03 09:35:49 -07:00
Jared Tabor b5392316c9 removing dropDownAdapter 2015-09-02 10:53:13 -07:00
Jared Tabor a5731a5452 Removing search field on select2 fields used in inventory sources tab.
This also fixes the behavior when the user hits escape while the select2 drop down menu is visible.
2015-09-01 17:49:23 -07:00
Jared Tabor 5107100166 Surveys: make MC and MS fields disabled while previewing a survey 2015-09-01 15:14:07 -07:00
Jared Tabor 36e63862e5 catch possible 404 error
on dashboard
2015-08-28 13:15:39 -07:00
Jared Tabor 8a583a8202 Changing the description in scheduler for minutely and hourly frequency 2015-08-25 22:30:47 -07:00
Jared Tabor f19473175b saving/editing inventory scripts lookup 2015-08-20 09:59:32 -07:00
Jared Tabor 40700d76c9 change ng-show to ng-if and only make a job a cleanup job or fact cleanup job if extra vars have addtional properties 2015-08-19 15:37:36 -07:00
Jared Tabor 9c294f6cc8 Changing 'source_script' to 'inventory_script' on groups modal.
In the demodalification of the custom inventory source modal, I switched to using the naming convention "inventory_source" instead of the original "source_script" title we dubbed it when we started developing the feature. I felt that
changing the naming convention better aligned with what is presented in the UI. This change continues to keep the naming convention consistent in the UI.
2015-08-19 13:24:18 -07:00
Jared Tabor a8a78b3914 Organize host events by host id
missed this in the original PR
2015-08-17 14:55:18 -07:00
Jared Tabor ed85df52f0 Job detail page: increment hostCount if missing
occassionally the hostCount will not get incremented despite a host result being processed as successful, failed, skipped, unreachable, or changed. This cause the UI not to show the host status
2015-08-17 11:58:47 -07:00
Jared Tabor 74c5236da2 Organize host summary results by host id instead of name
on the job detail page as host results were stored in the hostSummaries array, they were organized by hostname, but hostname can be changed as a result of the playbook potentially
2015-08-17 11:58:47 -07:00
Jared Tabor f7b0da7be5 About Tower version number fix
for parsing versions such as "2.3.0" and "2.3.0-0.git201507231538"
2015-08-10 10:02:45 -07:00
Jared Tabor 6ab4bc6800 About Tower version number fix
for parsing versions such as "2.3.0" and "2.3.0-0.git201507231538"
2015-08-10 08:41:49 -07:00
Jared Tabor f5e7b6ab6b Fix issue with lookup "Select" button 2015-08-05 13:14:58 -07:00
Jared Tabor b2b867a529 updating to use template URL helper function in routes 2015-07-28 14:21:35 -07:00
Jared Tabor d806318342 removing stale code 2015-07-28 14:01:14 -07:00
Jared Tabor 8d19eec6af management jobs fixes 2015-07-28 14:01:13 -07:00
Jared Tabor fe285a8924 management jobs schedule list query
the management jobs should only show the schedules which haven't run yet. updating the query to reflect this.
2015-07-28 14:01:12 -07:00
Jared Tabor fb99bc1c04 demodalizing management jobs modal 2015-07-28 14:01:11 -07:00
Jared Tabor 4e6c97aa56 demodalizing inventory scripts
and refactoring to use es6 modules
2015-07-28 13:54:15 -07:00
Jared Tabor ee6bc5dbfd redirecting to inventory manage screen after save
after saving a new inventory
2015-07-28 13:19:26 -07:00
Jared Tabor d9559934b0 adding last user to last path logic
in order to send the user to their last path if and only if they were the last user too.
2015-07-28 13:19:25 -07:00
Jared Tabor 5310d3989a Pagination widget
The 'previous' button was not properly disabled when multiple pagination widgets were on the same page. Fixed by inlucding the 'iterator' in the 'previous' button lookup
2015-07-28 13:19:24 -07:00
Jared Tabor 6b4b959bc5 removing unneccessary tooltip on scheduler modal 2015-07-28 13:19:24 -07:00
Jared Tabor 2e3844decb changing select type from checkbox to radio button
for the selection of Team in the credential add/edit form page
2015-07-28 13:19:23 -07:00
Jared Tabor 1368403309 adding 'waiting' job status jobs to jobs page 2015-07-08 11:14:22 -04:00
Jared Tabor 0acf8aecbc Portal jobs widget resize issue
the 'Started' column needed to be hidden on small (<991px) devices/screen sizes, instead of for only extra small (<769px)
2015-07-01 12:03:13 -04:00
Jared Tabor eb70983b54 Layout of filter on Portal Jobs widget
the filter buttons would wrap incorrectly on smaller screens
2015-06-30 14:56:11 -04:00
Jared Tabor 40f0548fe7 Fixed jobs list search params
the jobs list page accepts query params for status, but this functionality broke w/ the change to 1 pane instead of 4. Now its fixed
2015-06-26 12:15:52 -04:00
Jared Tabor 255c4626f4 removing query params on url
only when you are leaving system tracking
2015-06-25 16:31:34 -04:00
Jared Tabor 133e3cd675 remove query string on URL
when navigating thru tower we do not want query params to persist when routes change
2015-06-19 16:14:14 -04:00
Jared Tabor 94c242c608 Fix issue with schedulers
editing/adding schedules in the related accordians for Projects and Job Templates were not working, where the action buttons for schedules not even showing up in the Schedule accordian. I've updated hte form objects as well as the form-generator to accept the list of action buttons and their icons. Also fixed a related issue where the scheduler titles were not showing up on the scheduler dialog
2015-06-19 12:03:49 -04:00
Jared Tabor 0d81d4a62b fixing console error when running system jobs 2015-06-17 12:27:24 -04:00
Jared Tabor 76e4626fbe Adjusting tooltips for job detail donut chart
for better mouse movement, adding an offset based on the charts dimensions
2015-06-09 20:20:23 -04:00
Jared Tabor 558cebffe9 Smart-status: check for valid id before redirect 2015-06-09 17:08:44 -04:00
Jared Tabor 6462d14ace default playbook for scan job template
when creating a scan job template via the inventory detail page`
2015-06-09 16:47:15 -04:00
Jared Tabor 3573a164e7 Job detail donut chart tooltip fix
adding a mousemove event listener to have the tooltip move in respect to the user's mouse movement. also adjusted the colors to be more dynamic
2015-06-09 13:07:53 -04:00
Jared Tabor 89b8f832b9 adding search widget back to select2
due to restrictions of the update of select2, I'm opting to include the search bar in the select2 dropdown for now
2015-06-08 16:53:28 -04:00
Jared Tabor 56760f69a9 Adding sentence to prompt modal for cleanup_facts job 2015-06-08 15:53:45 -04:00
Jared Tabor a5a6f9c9bb fix to event viewer on job details page 2015-06-08 15:40:20 -04:00
Jared Tabor 4cbf8e0c17 Fix for host events viewer
the host events had logic that was expecting to act on an array, but was not receiving an array
2015-06-08 15:40:20 -04:00
Jared Tabor e379996a84 Remove list of features if license is updated
by removing the list of license-enabled-features when the user upgrades their license, it triggers the features.service.js to retrieve a new list of features from the config endpoint.
2015-06-08 12:02:47 -04:00
Jared Tabor c20fc09243 Fixing breadcrumb issue w/ inventories -> scan job templates
when editing/adding a scan job template, the 'Job Template' breadcrumb did not have a route associated with it.
2015-06-08 11:02:14 -04:00
Jared Tabor d262ce22a0 added required asterisks to license update form elements 2015-06-05 16:13:56 -04:00
Jared Tabor 4849808ee9 Fixing blue 'flashMessage' box that flashes on license page
the license controller had a setTimeout that was pausing the logic of the license controller which was causing a blue rectangle to flash on the license page.
2015-06-05 13:49:54 -04:00
Jared Tabor 131da8775d Breadcrumbs to license page 2015-06-05 12:18:40 -04:00
Jared Tabor d10a597b3c Fixed console error when running system jobs
a chunk of code was referring to job_scope before it had been instantiated as a scope object
2015-06-05 11:53:13 -04:00
Jared Tabor ef5d3372db adding 'sensitive' field to survey taker
for password fields
2015-06-05 10:39:43 -04:00
Jared Tabor 96659ac657 Default multiplechoice answer fix
the default answer for a multiplechoice question was not saving correctly.
2015-06-05 10:39:42 -04:00
Jared Tabor 0778e93f49 Survey maker -> default password input replacement
turning the default password input on survey maker to use the new schema
2015-06-05 10:39:41 -04:00
Jared Tabor b41546a20e Change wording of cleanup job prompts
per word-audit done via docschick
2015-06-04 15:20:19 -04:00
Jared Tabor b1a8d2ce3c Add 'finsihed' to sparklines bar charts 2015-06-03 11:22:14 -04:00
Jared Tabor 540308a9b4 "Invalid Date" fix for jobs page
returning an empty string for when the date format filter receives a null object
2015-06-02 13:59:04 -04:00
Jared Tabor 1ad1e63f5e Related schedule and Completed jobs on job template form page
the schedules and completed jobs lists were not being filled with related data on the job templates form page.
2015-06-01 17:17:43 -04:00
Jared Tabor c485d3f3d1 No surveys for scan job templates
hiding the survey checkboxes, and setting 'survey_enabled' to false for scan job template saves
2015-06-01 14:12:38 -04:00
Jared Tabor f5973c81e2 Subscription name to UI
adding subscription name to hte UI in About Tower modal and on License page on license tab for card https://trello.com/c/4IMj3H4V/535-include-subscription-type-in-tower-license-and-present-in-api-and-ui
2015-06-01 12:25:03 -04:00
Jared Tabor d7e2614760 Copyright JS files and removing unlicensed files
Adding the Copyright and All Rights Reserved to the JS files, as well as removing pwdmeter and 3dDonut chart (in lieu of d3.js donut chart)

adding the legend and getting pie chart to donut

adding data labels to donut chart

working legend and tooltip

job detail donut

Ansible Copyright added to beginning of all JS files

removing pwdmeter and d3donut

fixing merge conflicts
2015-05-29 12:08:22 -04:00
Jared Tabor c2a5b21b9e adding the locale files for moment.js
also adjusted the source of its locale setting to be more comprehensive (use navigator.language and navigator.languages)
2015-05-29 11:21:11 -04:00
Jared Tabor 54dc36c793 removing search bar for select2 drop downs 2015-05-27 00:35:19 -04:00
Jared Tabor 15773ba242 demodalizing the license modal
the license modal is now its own standalone page. this commit includes demodalizing the license page, directing the user to this page if no license exists, redirects the user to hte home page when a license is entered, and adds the license type to the license page and the About Tower modal. It also includes a small change to the aw-feature directive to better handle a session that does not have a license yet.
2015-05-26 17:29:53 -04:00
Jared Tabor 22b44ceb32 Adding cleanup_fact prompt
The cleanup_fact job requires a different set of parameters: older_than and granularity. A different prompt modal was required in order to reflect these extra parameters.
2015-05-26 13:45:46 -04:00
Jared Tabor 8485cd9f85 Pagination left arrow shown at all times for spacing
Within the pagination widget, the left (previous) arrow will always be shown now, with functionality disabled if the user is on the first page of results
2015-05-20 14:22:41 -04:00
Jared Tabor 90410aa4b5 removing resize behavior from inventory manage page 2015-05-18 22:45:58 -04:00