Commit Graph

61 Commits

Author SHA1 Message Date
Michael Abashian
5ff2267211 Removed console.logs and cleaned up some unit test related errors 2016-11-09 13:40:05 -05:00
Michael Abashian
0c4db0354e Add and edit workflow job templates from the UI 2016-11-03 14:42:27 -04:00
Leigh Johnson
a49095bdbc Boolean / Smart Search (#3631)
* Part 1: building new search components

Directives: smart-search, column-sort, paginate
Service: QuerySet
Model: DjangoSearchModel

* Part 2: Implementing new search components, de-implementing old search
components

Remove old code:
	* tagSearch directive
	* old pagination strategy
	* old column sorting strategy
	* lookup

Add new directives to list/form generator:
	* smart-search,
	* paginate
	* column-sort

Connect $state + dataset resolution
	* upgrade ui-router lib to v1.0.0-beta3
	* Custom $urlMatcherFactory.type - queryset
	* Render lists, forms, related, lookups in named views
	* Provide html templates in list/form/lookup/related state definitions
	* Provide dataset through resolve block in state definitions

Update utilities
	* isEmpty filter
	* use async validation strategy in awlookup directive

* Part 3: State implementations (might split into per-module commits)

* Support optional state definition flag: squashSearchUrl. *_search params are only URI-encoded if squashSearchUrl is falsey.

* * Fix list badge counts
* Clear search input after search term(s) applied
* Chain of multiple search terms in one submission

* Hook up activity stream

* Hook up portal mode

* Fix pagination range calculations

* Hook up organization sub-list views

* Hook up listDefinition.search defaults

* Fix ng-disabled conditions reflecting RBAC access on form fields

* Fix actively-editing indicator in generated lists

* form generator - fix undefined span, remove dead event listeners

* wrap hosts/groups lists in a panel, fix groups list error

* Smart search directive: clear all search tags

* Search tags - ‘Clear All’ text - 12px
Search key - remove top padding/margin
Search key - reverse bolding of relationship fields / label, add commas
Search tags - remove padding-bottom
Lookup modal - “X” close button styled incorrectly
Lookup modal - List title not rendered
Lookup modal - 20px margin between buttons

* Portal Mode
Fix default column-sort on jobs list
Hide column-oort on job status column
Apply custom search bar sizes

* stateDefinition.factory

Return ES6 Promise instead of $q promise.
$q cannot be safely provided during module.config() phase
Some generated state trees (inventory / inventoryManage) need to be
reduced to one promise. Side-step issues caused by ui-router de-registering ALL registered states that match placeholder state name/url pattern.

e.g. inventories.lazyLoad() would de-register inventoryManage states if
a page refresh occured @ /#/inventories/**

* Combine generated state trees: inventories + inventoryManage
Hook up inventory sync schedule list/form add /form edit views

* Hook up system job schedule list/add/edit states

* Fix breadcrumb of generated states in /setup view
Fix typo in scheduler search prefix

* Remove old search system deritus from list definitions

* Fix breadcrumb definitions in states registered in app.js config block

* Transclude list action buttons in generated form lists

* Lookup Modal passes acceptance criterea:
Modal cancel/exit - don’t update form field’s ng-model
Modal save - do update form field's ng-model
Transclude generated list contents into <lookup-modal> directive
Lookup modal test spec

* Fix typo in merge conflict resolution

* Disable failing unit tests pending revision

* Integrate smart-search architechture into add-permissions modal

* use a semicolon delimiter instead of comma to avoid collision with django __in comparator

* Hook up Dashboard > Hosts states, update Dashboard Inventory/Project counts with new search filters

* Misc bug splat

Add 20px spacing around root ui-view
Fix missing closing div in related views
Remove dupe line in smart-search controller

* Remove defunct LookupHelper code

* Rebuild inventories list status tooltips on updates to dataset

Code cleanup - remove defunct modules
Remove LookupHelper / LookupInit code
Remove pre-RBAC permissions module

* Add mising stateTree / basePath properties to form definitions

* Resolve i18n conflicts in list and form generator
Freeze dependencies

* Integrate sockets

* Final bug splat:
fix jobs > job details and jobs > scheduled routing
fix mis-resolved merge conflicts
swap console.info for $log.debug
2016-10-28 14:28:06 -04: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
849c48a101 committing first pass at unit test for SocketService 2016-10-04 14:27:29 -07:00
Leigh Johnson
ce61fe4a42 Refactor UI Build System (#3203)
* initial build trial, clean up awx/ui

* fix hardcoded refs to ng-toast, add jshint preloader

* remove browserify test

* update grunt-jshint -> jshint module loader, browser-sync, update dev targets to build-docker-machine & build-docker-cid, fix blocking tasks

* less autoprefixer

* sample build commands

* fix release build

* update README

* karma config stub

* webpack config for karma tests

* karma preview for shane

* fix build-docker-machine target

* karma+webpack test pipeline configuration, stub tests

* fix smart/job status icons classes

* fix jquery + jsyaml shims, fix LESS cascade

* fix angular-codemirror dependency, explicitly import style/mode dependencies

* shim jsonlint

* fix angular-scheduler AMD imports, remove jquuery-ui shim, fix release config

* use closed $.fn.datepicker for system-tracking

* remove packaging/node/

* remove old tests

* shrinkwrap fragile dependency sandcastle, update README, lint

* first pass at fixing rrule shim

* update makefile targets

* update gitignore w/ new flag file

* add saucelabs karma config

* add license controller test

* add examples of service and directive tests

* Makefile flubs

* consolidate clean-ui target, compulsively update flag file location

* dep on CJS/AMD/UMD compatible version of rrule lib, fix example tests/config for demo

* boilerplate karma config for saucelabs (should be abstracted to common config after proven to work)

* update docs

* docs feedback

* update Dockerfile with Node 6.x dep
2016-08-17 16:09:54 -04:00
Joe Fiorini
b7c136aba7 Separate node test build from browser build 2015-07-27 10:19:14 -04:00
Joe Fiorini
98a37a354a Move code to awx/ui/client 2015-07-27 10:19:14 -04:00
Joe Fiorini
8d4e8f1164 Reorganize test directory structure 2015-07-09 12:57:39 -04:00
Joe Fiorini
1f118467b9 Remove karma and unused testing files 2015-07-09 12:57:01 -04:00
Joe Fiorini
c6549f4aca Allow tests to run in Phantom via testem for CI 2015-07-09 12:56:57 -04:00
Joe Fiorini
f1fe118c10 Make front-end tests run in node 2015-07-09 12:53:04 -04:00
Joe Fiorini
d2440f6cd7 Extract factory for generating template URLs 2015-07-09 12:53:03 -04:00
Joe Fiorini
fc2ed6fd83 [system_tracking] Fix nested fact compare with one empty side 2015-07-06 14:34:24 -04:00
Joe Fiorini
fef3d5d2b0 [system_tracking] Make sure value array comparison is order insensitive 2015-07-01 16:18:07 -04:00
Joe Fiorini
bda5a46729 [system_tracking] Support multiple versions of packages with same name 2015-06-18 15:05:21 -04:00
Joe Fiorini
327fea1db1 [system_tracking] Fix service test 2015-06-17 17:35:57 -04:00
Joe Fiorini
ef0e7d8f0d Merge pull request #284 from joefiorini/system-tracking--displayKeys
Adds support for formatting individual fact values
2015-06-16 09:28:57 -04:00
Joe Fiorini
61807efb9b Allow fact template to flatten or keep key/value structure 2015-06-15 16:53:43 -04:00
Joe Fiorini
ad0f267435 [system_tracking] Extract parameters into options object 2015-06-12 13:50:28 -04:00
Joe Fiorini
b0d773325b [system_tracking] Refactor flat comparison logic 2015-06-12 09:38:53 -04:00
Joe Fiorini
06da1e16c2 Add tests for fact template rendering 2015-06-11 16:14:04 -04:00
John Mitchell
32d1c0e4db fixed copyright date 2015-06-11 16:10:23 -04:00
Joe Fiorini
aed496a069 Add tests for flat fact comparison 2015-06-11 12:22:58 -04:00
Joe Fiorini
32580e2ffd Fix system tracking test 2015-06-03 08:12:17 -04:00
Joe Fiorini
6d6d8c66c2 Fix tests 2015-06-01 16:30:11 -04:00
Joe Fiorini
c804409ed3 Fix tests 2015-06-01 09:30:06 -04:00
John Mitchell
55bd774867 fixed dashboard graph karma tests 2015-05-29 09:53:39 -04:00
Joe Fiorini
df771d5c0d Display comparisons with data from API
See https://gist.github.com/joefiorini/3a8c36bcedf7ad954952 for an
explanation of the comparison logic.
2015-05-27 10:17:31 -04:00
Joe Fiorini
8acc73c833 Setup page to display fake data 2015-05-27 10:17:31 -04:00
Joe Fiorini
ae5594a853 Add some promise helpers to lodash 2015-05-27 10:16:40 -04:00
John Mitchell
299ece0b22 updating sockets to only init once. 2015-05-20 13:51:47 -04:00
Jared Tabor
79b79f0481 initial files for license diff directive
awLicenseFeature with show/hide

changed file locations

changing file location

adjusting controller logic to only return list of features

leveraging $rootScope instead of local storage

adding awFeature directive for lists/forms for activity stream button

Adding route resolvers and service for getting license

In order to get the license info from the API and not from local storage, the UI needs to hit hte API before loading any pages, therefore I've added route resolvers that will ensure that we have the appropriate data (license features) before navigating to a new page. I've also added the awFeature directive to the organizations list -> add-button and the ldap checkbox on the user form page.

adjusting alignment

fixing jshint errors

commting file for testings

adding tests for features service and features controller

adding features controller unit test
2015-05-04 11:34:38 -04:00
Joe Fiorini
3823b394b0 Fix bad parameters in rest stub 2015-03-27 17:12:34 -04:00
jaredevantabor
bbf87675db Merge pull request #106 from jaredevantabor/scan-job-templates
Scan job templates
2015-03-27 15:57:18 -04:00
Jared Tabor
3512bcdc59 moving jt test to test folder
so that merge will pass jenkins
2015-03-27 15:24:36 -04:00
Jared Tabor
2401865f59 adding delete jt service 2015-03-27 14:03:16 -04:00
Joe Fiorini
98ea258a9b Add tests for multi-select-list directive 2015-03-26 10:17:50 -04:00
Joe Fiorini
529fa935c9 Extract library for tests 2015-03-25 12:18:38 -04:00
Joe Fiorini
f2b4590545 Allow all static files to be loaded from dist 2015-03-02 16:47:42 -05:00
Joe Fiorini
f72cfd38df Explicitly declare dependencies in tests 2015-02-09 10:28:01 -05:00
Joe Fiorini
13998e2898 Use broccoli to build tests 2015-02-06 12:49:04 -05:00
Joe Fiorini
8d1898e4ae Fix failing tests 2015-02-06 10:21:25 -05:00
Joe Fiorini
e28869c63d Fix cleanup of resize events 2015-01-30 15:42:50 -05:00
Joe Fiorini
1809fec52e Setup testing for ci and development 2015-01-30 15:42:49 -05:00
Joe Fiorini
03e5e42dae Fix include order for tests 2015-01-30 15:42:49 -05:00
Joe Fiorini
d3a6fac5f9 Extract data loading for host count graph 2015-01-30 15:42:48 -05:00
Joe Fiorini
50d9c11419 Ensure we always catch errors on Rest calls 2015-01-30 15:42:48 -05:00
Joe Fiorini
8e092714fb Switch to using element instead of attribute 2015-01-30 15:42:47 -05:00
Joe Fiorini
7f291c91b5 Fix click handlers for filters 2015-01-30 15:42:47 -05:00