slhale
109d933945
[Search] Fix test file path
2015-08-11 10:42:10 -07:00
slhale
7b471e5379
[Search] Search icon
...
Moved the search icon to appear within the
text input area, and dissapears when the
input area is focused.
2015-08-11 10:35:08 -07:00
slhale
7141c2818a
[Search] Search icon near input
...
Added a search icon next to the search bar
input.
2015-08-06 16:59:09 -07:00
slhale
1d2cd4745c
[Search] Update tests
...
Updated generic provider test for more general
mock capability object.
2015-08-06 15:01:45 -07:00
slhale
ee2d7efae2
[Search] Index checks for changes
...
When indexing items initially, the generic
provider listens for mutations in case an
item's composition changes, so it can then
index the new children.
2015-08-06 15:01:17 -07:00
slhale
e0a0d293fa
[Search] Update test
...
Fully calls through the controller's search().
2015-08-06 10:35:57 -07:00
slhale
1a4d7618c1
[Search] Infinite cycle check
...
in indexItems in the generic provider.
2015-08-06 10:33:17 -07:00
slhale
44dce05ec5
[Search] Correct test file paths
2015-08-06 10:12:44 -07:00
slhale
e729a966c7
[Search] Type checking
...
Added type checking for arrays to indexItems.
2015-08-06 10:12:34 -07:00
slhale
8923f23f70
[Search] New item indexer
...
This one (hopefully) doesn't fill up the
call stack when there are lots of items.
2015-08-06 09:49:29 -07:00
slhale
6407a66d30
[Search] Worker test correction
...
Removed unused parameter. Made path to worker
not relative.
2015-08-05 10:26:16 -07:00
slhale
5fa6db72d2
[Search] More controller tweaking
2015-08-04 16:50:50 -07:00
slhale
e43e14ec00
[Search] Remove unused dependency
...
Removed the generic search worker's dependency on
the object service, which it does not use.
2015-08-04 16:45:23 -07:00
slhale
c9acfc9f89
[Search] Tweak controller loading
...
Changed the controller to update the tree
display status when the search result
promise is fufilled, not before making the
search query.
Also chagned the loading increment from
5 to 20.
2015-08-04 16:40:31 -07:00
slhale
d82be0deef
[Search] Remove unused parameter
2015-08-04 13:14:20 -07:00
slhale
eab140df48
[Search] Generic search roots constant
...
Made a constant for the generic search roots,
rather than depending on roots[].
2015-08-04 13:10:29 -07:00
slhale
15e39e00c2
[Search] Search aggregator return type
...
The search service returns objects containing
searchResult objects.
2015-08-04 13:07:47 -07:00
slhale
077a0ce3e3
[Search] Changed array to dictionary
...
for faster lookup times in the search aggregator's
filterDuplicated function.
2015-08-04 13:06:04 -07:00
slhale
5711b2b241
[Search] Fixed file paths
2015-08-04 13:04:52 -07:00
slhale
d9a1b9d530
[Search] Moving files
...
Moved the elasticsearch provider to
platform/persistence/elastic. Then moved
the search aggregator and the generic
provider into a services folder within
the search folder.
2015-08-04 13:03:34 -07:00
slhale
45bedb20c1
[Search] Comments and style
2015-08-04 10:01:54 -07:00
slhale
4439e1680d
[Search] Update CSS
...
Scrolling now does not move the search input
field. Load more text always stays on one line.
2015-08-03 13:49:53 -07:00
slhale
5569ef8b2d
Revert "[Search] Update CSS"
...
This reverts commit e05f16d780
.
2015-08-03 13:39:22 -07:00
slhale
e05f16d780
[Search] Update CSS
...
Slight tweak to the padding of the search view,
which affects where the top of the scroll bar
appears. Also removed the search scroll div
because it was unused.
2015-08-03 13:26:29 -07:00
slhale
e928e02b1c
[Search] Update tests
...
Updated the search controller test to work with
the changes to loadMore
2015-08-03 11:48:50 -07:00
slhale
1cd6685b36
[Search] Update loadMore
...
The controller's loadMore function now sends
new queries to the search service if the
controller's full results list does not have
enough results in it to load more.
2015-08-03 11:44:56 -07:00
slhale
695582b30f
[Search] Clean up
2015-08-03 11:38:47 -07:00
slhale
d0bad46627
[Search] Style
...
Removed use of the keyword 'catch' when dealing
with promises, and instead used the second
parameter of then.
2015-08-03 10:46:34 -07:00
slhale
eb0bdba666
[Search] Moved isLoading
...
Moved the isLoading function away from
the aggregator. It is now the controller's
responsibility. Corresponding tests
updated.
2015-08-03 10:45:30 -07:00
slhale
19b9668190
[Search] Restoring web worker tests
2015-08-03 10:21:50 -07:00
slhale
59d4c362f6
[Search] Temporarily remove web worker test
2015-08-03 10:13:00 -07:00
slhale
9be646f1e7
[Search] Moved search folder location
...
Moved search from platform/features/search to
platform/search. Added more style corrections.
2015-08-03 09:51:36 -07:00
slhale
164d5485e9
[Search] Wrote provider test
...
Completed tests for GenericSearchProvider.
Also fixed style in other tests.
2015-08-03 09:36:13 -07:00
slhale
7678289ead
[Search] Wrote worker test
...
Completed tests for GenericSearchWorker.
2015-07-31 16:37:11 -07:00
slhale
2a62494296
[Search] Wrote provider test
...
Completed tests for ElasticsearchSearchProvider.
2015-07-31 15:27:02 -07:00
slhale
ae94ba73d7
[Search] Wrote aggregator test
...
Completed tests for SearchAggregator.
2015-07-31 11:33:58 -07:00
slhale
5b3f78287e
[Search] Wrote controller tests
...
Completed tests for SearchController and
SearchItemController.
2015-07-31 10:40:16 -07:00
slhale
4bb000dd93
[Search] Writing tests
...
Created files for all the tests to write.
2015-07-31 09:38:45 -07:00
slhale
06d9b68406
[Search] Comments
2015-07-31 09:38:05 -07:00
slhale
3a3e98cc48
[Search] Update provider timeout
...
Added a timedOut property to the provider's
return object. Changed the generic search
worker to stop if it reaches timeout.
2015-07-30 16:35:26 -07:00
slhale
6e11941ae9
[Search] ES Provider error checks
...
The elasticsearch provider returns an empty
result when elasticsearch throws an error
(probably a bad request). This prevents the
aggregator from thinking that ES is loading
infinitely.
2015-07-30 15:47:09 -07:00
slhale
7c89e4aa4a
Merge branch 'master' of https://github.com/slhale/openmctweb into search
2015-07-30 15:08:33 -07:00
slhale
f8471bc944
[Search] Comments
2015-07-30 15:04:42 -07:00
slhale
15b7e3ac9b
[Search] Aggregator returns result object
...
The aggregator now returns a result object similar
to that of the providers, but the hits array contains
domain objects rather than searchResult objects.
Also removed overly complicated filterRepeats
function from the aggregator and replaced it with a
simpler one.
2015-07-30 14:57:15 -07:00
slhale
51bc7c6a7f
[Search] Generic tracks total hits
...
The generic search worker keeps track of the total
number of search hits before truncating to match
the max results.
2015-07-30 14:06:35 -07:00
slhale
60dad014cc
[Search] Changed provider return type
...
The provider now returns an object that has
a hits property which contains what it
previously returned, and also a total property
which contains the total number of results.
2015-07-30 13:54:56 -07:00
slhale
a7cd6d8807
[Search] Removed name field form ES provider
...
Removed the name field from the ElasticSearch provider
search query string, so now it will check all of the
fields of the domain object (such as type).
2015-07-30 13:32:34 -07:00
slhale
bce56c53ed
[Search] Clean up
...
Updated comments and documentation. Changed the generic
worker to return results as {id: score} key value pairs
rather than {id: {score: score}} format. Removed unused
getLatestResults and getLatestTimestamps functions from
the providers.
2015-07-30 13:27:45 -07:00
Victor Woeltjen
0b3170d2ef
[Tests] Remove logs
...
Remove protractor logs, WTD-1489
2015-07-30 12:54:26 -07:00
Victor Woeltjen
7e7754f9aa
[Tests] Add license headers
...
Add license headers to protractor test scripts,
WTD-1489.
2015-07-30 12:50:13 -07:00