Commit Graph
100 Commits
Author SHA1 Message Date
Jared Tabor 3a1b4a10c8 Turning debug_mode to false 2016-10-06 20:15:15 -07:00
Jared Tabor c6d5f751fb Feedback from PR
specifically the scope that is used for attaching event listeners
for the $emit/$braodcast/$on that is used for routing socket messages.
Also removing some commented out code
2016-10-06 18:42:18 -07:00
Jared Tabor 1b8b4a68b7 Resubscribing the UI to the last group it was on, whenever a disconnect happens that
was no intentional
2016-10-05 14:10:40 -07:00
Jared Tabor e80c99e737 removing status checks in socket.service 2016-10-05 10:35:55 -07:00
Jared Tabor 5edd9e73c8 removing npm-shrinkwrap to avoid conflict 2016-10-04 16:24:58 -07:00
Jared Tabor 37e282735a fixing statusTip and socketStatus 2016-10-04 14:27:29 -07:00
Jared Tabor 849c48a101 committing first pass at unit test for SocketService 2016-10-04 14:27:29 -07:00
Jared Tabor 541f55fece removing shrinkwrap to avoid merge conflict for now 2016-10-04 14:26:48 -07:00
Jared Tabor 77d5772a2e cleaning up jshint errors 2016-10-04 14:25:18 -07:00
Jared Tabor 4bb2234019 removing old code 2016-10-04 14:25:18 -07:00
Jared Tabor 5801d3cec8 changing naming scheme for event listeners to "ws-<group_name>"
instead of ws-<state name>-<group_name>
2016-10-04 14:23:39 -07:00
Jared Tabor e0a566cdea adding socket coverage to child states
so that child states won't unsubscribe the parent from any groups
2016-10-04 14:23:39 -07:00
Jared Tabor 37b2b01e02 small fix to disconnect function--null pointer exception 2016-10-04 14:23:39 -07:00
Jared Tabor 4e533cc63b adding disconnect function for logging out
and adding ability to specify `socket: null` for a route definition, in order to
specify a state that should not subscribe/unsubscribe at all (for login state).
2016-10-04 14:23:39 -07:00
Jared Tabor 82d33d8686 fixing issue with adhoc stdout
the adhoc stdout was subscribing to job_events instead of
ad_hoc_command_events
2016-10-04 14:23:39 -07:00
Jared Tabor 0f32faec60 Changing naming convention for socket-message event listeners
to use <stateName>-<group_name>
2016-10-04 14:23:39 -07:00
Jared Tabor f875d65ef7 Adding unsubscribe method for non-socket-enabled routes
with the idea that we only want to unsubscribe directly following a subscribe
(no need to unsubscribe if we're already unsubscribed).
2016-10-04 14:23:39 -07:00
Jared Tabor 1510d826a6 Sending blank object to socket server on routes that are not
websocket enabled.
2016-10-04 14:23:39 -07:00
Jared Tabor 947571fe26 Fixing live events for inventory-manage page 2016-10-04 14:23:39 -07:00
Jared Tabor 0fb4a1a62a Adding socket object to route definitions
for stdout routes, as well as removing some old code
2016-10-04 14:18:44 -07:00
Jared Tabor aa4a8f6089 Hooking SocketService.subscribe function to $stateExtender
so that socket rooms can be configured on each route that needs sockets s
2016-10-04 14:18:44 -07:00
Jared Tabor 9691e267df adding promise for successful socket connection
in order to prevent the a race condition: the socket was trying to emit
messages to the API to subscribe to rooms before the socket connection was
finshed connectig.
2016-10-04 14:16:59 -07:00
Jared Tabor 0937866e20 refactoring socket functions 2016-10-04 14:16:59 -07:00
Jared Tabor 813eeb9dd9 fixing socketservice init on login 2016-10-04 14:16:59 -07:00
Jared Tabor e35b5ef6fb Adhoc stdout working with new websockets 2016-10-04 14:16:59 -07:00
Jared Tabor a091069d9d Move socket helper to a service and remove old code 2016-10-04 14:16:59 -07:00
Jared Tabor 3d979bb661 draft 1 of socket refactoring 2016-10-04 14:16:59 -07:00
Jared Tabor e9b54dcd3c switching socket.io-client for ReconnectingWebSocket library 2016-10-04 14:16:09 -07:00
Jared Tabor 5e4362da69 making ec2 cred optional on group->edit 2016-08-11 13:09:56 -07:00
Jared Tabor c21e142929 making ec2 credential optional for ec2 inventory
and fixing the autopopulate for that field (it should not autopopulate)
2016-08-11 12:56:17 -07:00
Jared Tabor d8c713d5ef Making the username and password fields optional
for email notifications
2016-08-10 14:08:33 -07:00
Jared Tabor d848fcfc4f Fixing recent jobs & recent syncs tooltip for inventories 2016-08-02 17:45:02 -07:00
Jared Tabor 3f69be1a86 Fixing popover for notification template status icon
the awPopOver directive was getting compiled mutliple times and therefore was triggering the on-click event multiple times
2016-08-02 14:42:21 -07:00
Jared Tabor 45e506ec0f Make check for idle session more specific
in order to avoid collision with a social auth session's startup.
2016-07-27 13:52:26 -07:00
Jared Tabor b3d3a6e590 Fixing iterator used when jobs list refreshes
it was still using the iterators used when there were four job panes
2016-07-25 17:39:19 -04:00
Jared Tabor d39538c7c4 Fixing iterator used when jobs list refreshes
it was still using the iterators used when there were four job panes
2016-07-15 10:52:14 -07:00
Jared Tabor 4f563a4313 make username required if not radius/ldap 2016-07-14 14:48:38 -04:00
Jared Tabor 8ef59091ac Show password fields for new uers 2016-07-14 14:48:38 -04:00
Jared Tabor 8ab00e2d05 Hide password fields for radius/social auth users
on the users edit form, the password/confirm password field will be hidden similar to ldap. the username will not be required as well
2016-07-14 14:48:38 -04:00
Jared Tabor f9de8db89a Show proper error message for missing job template form
when visiting the job template page for a job template that has been deleted or doesn't exist, we want to show the 404 error message, not an error message about tags or labels.
2016-07-13 15:40:44 -07:00
Jared Tabor c6aa2b4392 removing logic in job detail page related to scm updates
job detail page is only for job runs, scm updates have their own stdout page
2016-07-12 16:03:31 -07:00
Jared Tabor f88e9cfec1 Check for object keys to avoid console error 2016-07-12 15:44:13 -07:00
Jared Tabor 9389d9014b Jobs and Scheduled Jobs dynamic tooltip fix
Both tooltips would break if sorting/filtering the jobs list and the scheduled jobs list
2016-07-12 13:17:58 -07:00
Jared Tabor 999c3d8292 capping pending retries at 10 2016-07-11 11:15:38 -07:00
Jared Tabor 148b59d628 Add additional polling if test notification is "pending" 2016-07-11 11:11:53 -07:00
Jared Tabor 0eee38ab10 1px white border for any status icon within a tooltip 2016-07-11 10:17:43 -07:00
Jared Tabor b4d489ff1b XSS sanitize permissions popover
and remove-permissions modal
2016-07-11 09:28:25 -07:00
Jared Tabor 393c668ffb Update all fa fa-rocket icons to new 3.0 launch icon 2016-07-08 14:32:14 -07:00
Jared Tabor ac42f7a0d5 Using $state to determine to launch or relaunch jobs
instead of $location
2016-07-08 11:39:46 -07:00
Jared Tabor 4f219e2775 redirect user to dashboard if refresh
if changing targets on the activity stream page and then clicking the toggle
2016-07-08 10:00:40 -07:00
Jared Tabor 81d32e216d fixing tooltip for host events on job detail panel 2016-07-08 09:59:52 -07:00
Jared Tabor 4c0a0f7936 Searching for disabled hosts was searching for enabled hosts
The API can only search hosts by "enabled": yes or no (t/f). However on the UI we want to search by "disabled" so needed to override the boolean values for this particular search
2016-07-07 12:00:19 -07:00
Jared Tabor 4abae312f1 adding "missing" status for project status tooltip
the tooltip for "missing" projects read "Failed" instead of "Missing"
2016-07-07 10:12:36 -07:00
Jared Tabor 0c3ba0d6b3 Activity Stream toggle should close AS
Clicking the toggle while on the AS page wouldn't always remove the AS
2016-07-06 14:40:20 -07:00
Jared Tabor 58c493653a Cloud credential should not be required for manual groups
the cloud credential-required flag was true for manual group types, which isn't required.
2016-07-06 13:56:43 -07:00
Jared Tabor 826392b2a8 removing jobSocket module 2016-07-01 13:42:52 -07:00
Jared Tabor cfbab84ed7 removing unnecessary "jobs" websocket init 2016-07-01 13:34:17 -07:00
Jared Tabor d2fa6b5e9d Applying the .name-column class for name columns
The class was already used in some tables, but now it will be applied to all tables
2016-07-01 10:42:41 -07:00
Jared Tabor 8cd2124d3d adjusting label-delete-modal's title width
to prevent long strings to run off the modal
2016-06-30 15:55:29 -07:00
Jared Tabor f20fd7d459 Scrubbing delete modals for XSS vulnerabilities 2016-06-30 12:35:55 -07:00
Jared Tabor a0dd159f3b Sanitize JT delete modal in list controller 2016-06-30 12:35:55 -07:00
Jared Tabor d6f644bc71 make username required if not radius/ldap 2016-06-29 13:11:50 -07:00
Jared Tabor 4770bc7f8b Show password fields for new uers 2016-06-29 12:41:05 -07:00
Jared Tabor b99f9e2eee Hide password fields for radius/social auth users
on the users edit form, the password/confirm password field will be hidden similar to ldap. the username will not be required as well
2016-06-29 11:13:56 -07:00
Jared Tabor 406188c6ea Reset network credential on selection change
The "authorize" checkbox would remain checked whenever the credential type was changed, however it should be reset on each type change
2016-06-28 08:50:51 -07:00
Jared Tabor fb1a448e95 Changing color of textareas to fcfcfc 2016-06-28 08:45:29 -07:00
Jared Tabor c2b6099e0d Slight tweak for when session timer expires 2016-06-24 16:01:46 -07:00
Jared Tabor 862dc458c6 fixing project view of failed syncs from dash
to include failed jobs and canceled jobs
2016-06-23 09:01:06 -07:00
Jared Tabor a26a4326ba Fixing add notificaiton template button for mgmt jobs 2016-06-23 09:00:02 -07:00
Jared Tabor 3e9b86e024 Fix breadcrumb for notification templates page
It didn't include the Settings crumb first
2016-06-23 09:00:02 -07:00
Jared Tabor c075aafd50 JSHint 2016-06-23 09:00:01 -07:00
Jared Tabor b1fff38243 Inserting ADD NOTIFICATION TEMPLATE button for tabs
with notification templates
2016-06-23 09:00:01 -07:00
Jared Tabor 81402bd2ee UX audit fixes for search bar on related tabs 2016-06-22 10:53:53 -07:00
Jared Tabor d1d620fd7c Portal mode search bars 100% 2016-06-21 14:13:40 -07:00
Jared Tabor 1abb6e8ffb Related tab-search-bars 100% width w/o actions
If there are no actions like ADD, then the search bar should be 100% width
2016-06-21 13:49:36 -07:00
Jared Tabor 205963a7ce Adding labels for notifications on related tabs
for notification type column
2016-06-21 12:30:02 -07:00
Jared Tabor ecb1e7b15e removing hover popover on recent notifications icon 2016-06-21 09:21:30 -07:00
Jared Tabor bc9289c5a5 Prevent dashboard resolve from sending GET requests until after user logs in 2016-06-20 13:18:05 -07:00
Jared Tabor 11bd5570cf fix for setup menu route resolve 2016-06-20 11:37:27 -07:00
Jared Tabor 8a34b5712a returning promise in resolve for setup menu 2016-06-20 10:43:31 -07:00
Jared Tabor 2de4a2d0f9 removing wait spinner on notification popover 2016-06-17 17:12:54 -07:00
Jared Tabor de1d605c28 fix for broken recent-notifications popover 2016-06-17 17:11:00 -07:00
Jared Tabor 3115dd4fee hiding notifcation templates on setup menu
for non org admins
2016-06-17 17:11:00 -07:00
Jared Tabor 17ffc39281 updating notifications status after test notification 2016-06-17 13:44:48 -07:00
Jared Tabor 95e500d472 the disabled key for the manual-inv-group-notifications
was getting added to the notifications object for all notifications-related-lists
2016-06-16 13:52:31 -07:00
Jared Tabor d9f4819372 js hint 2016-06-16 11:59:02 -07:00
Jared Tabor ab9448e039 changing logic for is-loggedOut class 2016-06-16 11:06:53 -07:00
Jared Tabor 322451853d unpromisifying the logout() function call
and fix for other PR feedback
2016-06-16 10:51:31 -07:00
Jared Tabor c6879e5163 Adding an extra session check for when a user closes tower
before the session times out and returns to Tower. Also changed the login route controller to a resolve to ensure that the login modal appears.
2016-06-16 10:50:53 -07:00
Jared Tabor 7286163281 Changing color of idle countdown text to #D9534F 2016-06-16 10:23:15 -07:00
Jared Tabor 98e5291bfc Disabling notifications related button for manual groups 2016-06-15 15:46:44 -07:00
Jared Tabor 490425970a JS Hint 2016-06-15 15:41:40 -07:00
Jared Tabor 928ae58430 Changing failed notification toaster icon
to fa-exclamation-triangle
2016-06-14 16:06:26 -07:00
Jared Tabor 4d7bc6e101 Changing wording and styling of notification toaster message
and adding some better error handling for failed notifications.
2016-06-14 10:05:11 -07:00
Jared Tabor 80815305c5 Check status of test notifications.
The response from the PUT call to the notifications_templates/<id>/test endpoint contains an ID to be used to
perform a lookup off of the notifications endpoint in order to obtain the status.
2016-06-14 00:00:41 -07:00
Jared Tabor a5634b24a7 updating license page for license that exists, but is not valid 2016-06-13 14:05:12 -07:00
Jared Tabor 70318f23cb Loading the viewport after /config response is returned from the API 2016-06-09 10:24:58 -07:00
Jared Tabor 945380c07a Redirecting non-playbook-jobs to correct stdout pages 2016-06-08 14:37:16 -07:00
Jared Tabor c5aee042ce fixing cancel button nghide when job is running 2016-06-08 11:30:02 -07:00
Jared Tabor 8602b66c47 adding delete/cancel for mgmt jobs stdout 2016-06-08 11:01:48 -07:00