Commit graph

14548 commits

Author SHA1 Message Date
fanfan
26cf4c45fc misspelling substituting to subtituting 2016-10-18 16:09:14 +08:00
Spencer
3bb4fd7561 Merge pull request #8717 from spalger/cleanup/use-field-displayname-getter
[aggs] use getFieldDisplayName and getField helpers
2016-10-17 19:14:04 -07:00
spalger
ae3223262b [aggTypes/percentile] fix reference to aggConfig.fieldDisplayName() 2016-10-17 19:06:27 -07:00
debadair
f6e54b6bc9 Docs: Removed Shield config info & added tribe note. 2016-10-17 15:47:17 -07:00
Matt Bargar
c8e6fae235 Merge pull request #8721 from Bargs/fixVizUrl
Stop Discover's Visualize button from loading incorrect URL
2016-10-17 18:10:45 -04:00
spalger
51cc35b605 [tests] update tests that depended on aggConfig#field() 2016-10-17 14:26:31 -07:00
spalger
1ee969c97a [aggParams/field] throw better error when field missing 2016-10-17 14:13:11 -07:00
spalger
0190cda30e [aggConfig] use getField/getFieldDisplayName helpers 2016-10-17 14:13:11 -07:00
Matthew Bargar
d0d926b8a9 Stop Discover's Visualize button from loading incorrect URL
When App state is read from the url, it is accessed via
`$location.search()`. It turns out that the result of
`$location.search()` is a mutable object that allows you to modify the
results of `$location.search()` without actually modifying the URL. When
a user clicks a field in the Discover sidebar, it executes the scope
method `vizLocation` to get the href value for the "Visualize" button.
As an unintended side effect, `vizLocation` was modifying the object
returned from `$location.search()`. This change would ultimately be read
when the Visualize app loaded instead of the param in the actual URL
since there's no full page load from Discover -> Visualize.

To make things more complicated, I believe there was a race condition
partially masking this issue. Since `vizLocation` is used in an Angular
string template, the data binding causes it to execute on every digest
cycle. This is why the incorrect value continued to be written to
`$location.search()` even after `visLocation` ran for the correct field.
It also meant that the result of `$location.search()` was totally
dependent on which field `vizLocation` ran for most recently before the
user clicked Visualize.

Fixes https://github.com/elastic/kibana/issues/8718
2016-10-17 17:07:11 -04:00
Matt Bargar
ff01707352 Merge pull request #8694 from Bargs/filterVisualizeButton
Conditionally show Visualize button based on aggregatable status
2016-10-17 17:02:36 -04:00
Lukas Olson
bf0a12abbe Merge pull request #8716 from lukasolson/fix/console/copy-as-curl
[console] Fix copy as curl button
2016-10-17 13:55:10 -07:00
Lukas Olson
d44f102424 [console] Fix copy as curl button 2016-10-17 13:48:37 -07:00
Stacey Gammon
b394d193d1 Merge pull request #8691 from Stacey-Gammon/boolean-painless-filter-fix
Ensure boolean scripted field values are of boolean type
2016-10-17 15:21:14 -04:00
Spencer
700b08ef2c Merge pull request #7990 from hickeyma/issue-7661
Display the conflicting field types of an index pattern
2016-10-17 12:20:51 -07:00
Matthew Bargar
75a2f2356d Add visualizable flag to field object 2016-10-17 13:39:13 -04:00
Matthew Bargar
9da6ddfd16 Switch to ng-show so controller can maintain reference to Visualize button and remove it upon toggle 2016-10-17 13:21:11 -04:00
Stacey Gammon
7b8ff74513 Ensure boolean scripted field values are of boolean type
they come back from the server as ‘true’ currently.  Hopefully that
will be fixed in the future, so to future-proof this I am only
converting when the value is not of type boolean.

Fixes #8677

Need to convert both number and bool strings to their respective types.

Throw an error for unexpected types/values.
2016-10-17 13:20:46 -04:00
weltenwort
030730d364 Merge pull request #8654 from weltenwort/issue-8543-discover
Improve discovery test stability and readability
2016-10-17 18:45:02 +02:00
Tim Sullivan
182526a318 Merge pull request #8695 from tsullivan/ui-add-link-selector
ui: add `.link` selector for `cursor: pointer`
2016-10-17 09:31:33 -07:00
Felix Stürmer
731fe7924a
Use let/const where appropriate 2016-10-17 18:14:05 +02:00
Matthew Bargar
76c2687e86 Conditionally show Visualize button based on aggregatable status 2016-10-17 12:01:28 -04:00
Clinton Gormley
750fd1a1ab Fixed Shield links to point to X-Pack instead 2016-10-17 14:02:12 +02:00
Clinton Gormley
030b2e475f Fixed hard coded doc links 2016-10-17 13:39:25 +02:00
Felix Stürmer
956834430a
Take screenshots after assertions
The screenshots are now taken after the corresponding assertions are
made to make sure they actually depict the expected ui state.
2016-10-17 13:14:32 +02:00
Spencer
d6c67eac45 Merge pull request #8693 from spalger/upgrade/chromedriver
[npm] update chromedriver
2016-10-14 18:22:38 -07:00
spalger
29eeed22e2 [npm] update chromedriver
The latest macOS version of Chrome is incompatible with the version of chromedriver we currently depend on, so this updates it.
2016-10-14 14:10:25 -07:00
Timothy Sullivan
479fafd642 ui: add link selector for cursor pointer 2016-10-14 10:47:54 -07:00
Felix Stürmer
a5fe202432
Extract expected values into separate variables
to match convention
2016-10-14 10:48:50 +02:00
Stacey Gammon
a5aad4874e Merge pull request #8642 from Stacey-Gammon/fix-scripted-field-filtering
Scripted fields must reference values via params when filtering
2016-10-13 17:42:14 -04:00
Spencer
7155bd25f1 Merge pull request #8505 from spalger/fix/double-reply-route-handler
[ingest/register_fields_capabilities] prevent calling reply() twice
2016-10-13 14:33:02 -07:00
Spencer
378a7b57bf Merge pull request #8670 from spalger/hotfix/invalid-gulp-sourcemaps
[hotfix] force gulp-sourcemaps to 1.7.x
2016-10-13 14:22:59 -07:00
spalger
89a243f605 [hotfix] force gulp-sourcemaps to 1.7.x https://github.com/floridoo/gulp-sourcemaps/issues/238#issuecomment-253634399 2016-10-13 14:09:12 -07:00
Spencer
387ed5ddd8 Merge pull request #8538 from spalger/fix/legend-green-bizzaro-flash
[agg_response/point_series] always assign series labels to points
2016-10-13 13:47:57 -07:00
spalger
8d370826c4 [agg_response/point_series] use no-digest promises in tests 2016-10-13 13:32:57 -07:00
spalger
a119577af8 [agg_response/point_series] apply PR feedback 2016-10-13 13:32:57 -07:00
spalger
f681d6cf86 [agg_response/point_series] update tests to reflect changes in 19773a6 2016-10-13 13:32:57 -07:00
spalger
7460c0ac2d [agg_response/point_series] always assign series labels to points
Since forever, the vislib has been compensating for a behavior/bug in the agg_response module where "series" labels were not assigned to points if there wasn't a "series" aggregation or multiple y-axis. To compensate for this, the vislib was assigning the yAxisLabel to the series, which had the same effect, but now that the legend is rendered in it's own tick, followed by the visualization, and that behavior was being executed during the vislib render, the legend has been flashing an empty row for a while (this was worsened by the fact that vislib rendering did not trigger a digest cycle).

These changes remove the workaround code from the vislib, and update the agg_response to always send the y-axis label as the series label when there is no series aggregation. Behavior with multiple-y-axis and multiple series aggs should be preserved.
2016-10-13 13:32:57 -07:00
Stacey Gammon
7cdb74d6c9 Fix our request to ES for filtering on scripted fields
Need to use params.value instead of value.

Fixes #8404

Add params prefix in another spot for painless scripted fields

Fix date histogram with scripted fields

Remove format: epoch_millis so the script compiles.  I am not 100%
confident of the side affect from this (it’s used for non-scripted
fields, but I’m not sure where I would put it for scripted fields, or
if it’s needed).  At any rate, it appears that formatting settings for
scripted fields is still being honored, even after removing it from
params.
2016-10-13 16:29:38 -04:00
Jonathan Budzenski
4b08335fbb Merge pull request #8651 from ZTE-PaaS/typo-fix
typo fix for advanced-settings.asciidoc
2016-10-13 07:46:51 -05:00
spalger
a71dd2c22b [indexPatterns/mapping] extract conflict-describing logic 2016-10-13 11:13:46 +01:00
spalger
4c96efb6c6 [indexPatterns/field] show the conflict indices as a list, not JSON 2016-10-13 11:12:29 +01:00
Felix Stürmer
d4f717016f
Replace and remove static sleep calls
Any `sleep()` calls preceding a `verifyChartData()` call seem to be
redundant, because `verifyChartData()` already uses `try()` to avoid
flakyness due to timing.

A few more assertions are now wrapped in `try()` calls to avoid
occasional failures due to the timing of rendering.
2016-10-13 11:26:16 +02:00
Felix Stürmer
88c0b7b75e
Simplify NoResultsTimefilter link test
This reformulates the test case to a simple sequence of actions and
assertions to improve maintainability.
2016-10-13 11:26:16 +02:00
Felix Stürmer
db775687f2
Improve readability of some functional tests
Consistently use async/await and bring tests more in line with "Arrange,
Act, Assert".
2016-10-13 11:26:16 +02:00
Martin Hickey
14e9bb6c72 Move the warning message to near end of the page
Fixes #7661
2016-10-13 09:51:05 +01:00
Martin Hickey
8be70d4c61 Update the alert to a warning icon
Fixes #7661

Feedback in review as follows:
For such a large section, I think just displaying a warning icon near the top
of the section would be fine instead of wrapping the entire block in an alert
class.
2016-10-13 09:51:05 +01:00
Martin Hickey
ee698c4f0b Update the conflict data to show all index names per type
Fixes #7661

Feedback from review is that it would be better to display a list of indices
for each field type as would be easier to distinguish the outliers in this
case.
2016-10-13 09:51:05 +01:00
Martin Hickey
0af13831d5 Update to display the conflict information on the edit field page
Fixes #7661

Moved content to the edit field page from the tooltip for better scalability when large data.
The conflict description data is now only stored for conflicting fields.
2016-10-13 09:51:05 +01:00
Martin Hickey
f842f65faf Add indicies and type information for conflict field
Fixes #7661

Added indicies and type information when hover over field with conflict type in
index patterns page.
2016-10-13 09:51:05 +01:00
fanfan
45a1e5b8f8 typo fix for advanced-settings.asciidoc 2016-10-13 10:08:25 +08:00