Commit graph

28 commits

Author SHA1 Message Date
Stacey Gammon
0e46a7d155 Refactor table sort properties (#11073) (#11196)
* Refactor sorting capabilities

* clean up and comments

* Move to ui_framework/services

- add tests
- address code review feedback
- Include new folders in build output.

* Rename to sortableProperties

Require initial sorted property name.

* fix a refactor miss
2017-04-12 21:09:50 -04:00
Spencer
72f716b5e6 [5.x] [functionalTestRunner] replace intern (#10910) (#11171)
* [esArchiver] combine elasticDump and ScenarioManager (#10359)

* As a part of bringing functional testing to plugins, esArchiver gives these plugins a way to capture and reload es indexes without needing to write a bunch of custom code. It works similarly to the elasticDump and ScenarioManager tools that it replaces.

Differences:
  - Streaming implementation allows for much larger archives
  - CLI for creating and using archives
  - Configurable archive location
  - Stores the data in gzipped files (better for source control, searching, large archives)
  - Automatically identifies and upgrades Kibana config documents

Methods:
  - `#load(name)`: import an archive
  - `#loadIfNeeded(name)`: import an archive, but skip the documents what belong to any existing index
  - `#unload(name)`: delete the indexes stored in an archive

CLI operations:
  - `./bin/es_archiver save <name> [index patterns...]`: save the mapping and documents in one or more indexes that match the wild-card patterns into an the `<name>` archive
  - `./bin/es_archiver load <name>`: load the mapping and documents from the `<name>` archive

* [functional_tests/common/nagivate] check for statusPage

* [es_archiver] move bins into new scripts dir

* [functional_tests/apps/context] use esArchiver

* [esArchiver] general improvements after showing to a few folks

 - remove auto-upgrading config doc logic (until we have better access to kibana version info)
 - export unload command
 - remove preemptive checks in favor of reacting to errors
 - use type "doc" vs "hit" for doc records (consistency)
 - wrote a bunch of pending tests to think though and plan

* [esArchiver] make log a stream that writes to itself

* [esArchiver] fill in stats and archive format tests

* [esArchiver] splitup action logic

* [esArchiver/cli] fix cli --help output and comment

* [esArchiver] remove type-based param coercion

* [esArchiver/log] use strings for log levels

* [esArchvier] remove unused var

* [esArchiver/indexDocRecordsStream] add tests

* [esArchive] fill in remaining tests

* [esArchiver] fix dem tests

* [eslint] remove unused vars

* [esArchiver/loadIfNeeded] fix call to load()

* [esArchiver] remove loadDumpData helpers

* [esArchiver] update archives for 5.x

* [functionalTestRunner] replace intern (#10910)

* [functional_test_runner] replace functional testing tools with custom/pluggable solution

* [functional_test_runner] Convert unit tests to commonjs format

* [functional_test_runner] Fix dashboard test in wrong mode

* [functional_test_runner] Add dashboardLandingPage test subject

* [functional_test_runner] Get Visualize page object

* [functional_test_runner] Fix outdated references

* [functional_test_runner] Fix more outdated refs

* [functional_test_runner] Remove duplicate tests

* [functional_test_runner] Improve test readability

* [functional_test_runner] 😞 So many duplicate methods

* [functional_test_runner] Move mgmt `before` outside toplevel describe

* [functional_test_runner] Settings page obj missing methods

* [functional_test_runner] Add improvements from @gammon

* [functional_test_runner] Fix return statements in async funcs

* [functional_test_runner] Move before() to correct scope

* [functional_test_runner] Add after() hooks to remove index patterns

* [functional_test_runner] Attempt to fix vertical bar chart tests

* [functional_test_runner] Clean up

* [functional_test_runner] Reinstate unit tests

* [functional_test_runner] Set default loglevel back to info

* [functional_test_runner] Replace `context`s with `describe`s

* [functional_test_runner] Better error handling

* [functional_test_runner] Add in new Tile Map tests

* Incorporate changes from master

* [functional_test_runner] validate that every test file has a single top-level suite

* Update contributing doc with link to full doc

* [docs] Spelling and grammar fixes

* docs: writing and running functional tests

* [docs] Move plugin doc to plugin area

* [docs] Housekeeping. Doc in wrong place

* [docs] Remove dup doc file

* [grunt] Only run mocha_setup when running tests, not every grunt task

* [eslint] remove use of context()
2017-04-12 08:44:53 -04:00
Spencer
e0c66b98d2 [backport/5.x] [eslint] enable no-undef rule - #10825 (#10846)
* [codeshift] add proper ignore comments

* use more descriptive file ignore pattern

* [codeshift] apply require-to-import transform

* [codeshift/fixup] remove duplicate imports

* [eslint] upgrade config for react "unused" support

(cherry picked from commit aa2bb174a3)

* [eslint] remove no-unused-vars override

* [eslint] remove no-unused-vars override

* add eslint-plugin-react peerDependency

* [codeshift] apply remove-unused-basic-requires transform

* [codeshift] apply remove-unused-function-arguments transform

* [lintroller] fix argument list spacing

* [codeshift] apply remove-unused-basic-vars transform

* [codeshift/fixup] fixup unused basic var removals

* manually apply remove-unused-assignments transform

* [codeshift] reapply remove-unused-imports transform

* [codeshift] reapply remove-unused-function-arguments transform

* [resizeChecker] remove assignment to unused var

* [eslint] autofix param spacing

* manually fix remaining no-undef errors

* replace values that looked unused in tests

* remove // kibana-jscodeshift-no-babel comment

* remove import statements from code required by api tests

* Remove '// kibana-jscodeshift-ignore' comments

* address review feedback

* remove remnant of removed if condition

* [console] use * import for settings
2017-03-22 11:13:19 -07:00
Tyler Smalley
95ac4c1cef Remove libsass as a dependency (#9803) (#9812)
Remove libsass as a dependency

libsass is platform specific, therefore we can not ship it as a dependency. Instead, we will commit the compiled CSS for the UI Framework to the repository. This is updated when running `npm run uiFramework:start` which also starts the docs site.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-01-09 21:11:26 -08:00
jasper
c0cac0094c Fix build with ui framework (#9471)
Backports PR #9463

**Commit 1:**
[uiFramework] include sass deps in production so we can rebuild

* Original sha: aae8eecade
* Authored by spalger <spalger@users.noreply.github.com> on 2016-12-13T19:08:06Z

**Commit 2:**
[build] do not copy the doc_site source into the final build

* Original sha: fccbe49622
* Authored by spalger <spalger@users.noreply.github.com> on 2016-12-13T19:08:31Z

**Commit 3:**
[licenses] allow code that uses the `Unlicense`

* Original sha: 9406b9e9f3
* Authored by spalger <spalger@users.noreply.github.com> on 2016-12-13T20:46:19Z
2016-12-13 16:47:26 -07:00
Jonathan Budzenski
81efe3b734 [folder structure] src/plugins -> src/core_plugins 2016-07-05 14:06:43 -05:00
spalger
8c4585a72e Merge branch 'master' of github.com:elastic/kibana into feature/console 2016-03-23 14:12:44 -07:00
spalger
5ea26743fa [console] involve in the build process 2016-03-07 16:09:41 -07:00
spalger
ba19a81dd2 testUtils -> test_utils 2016-02-24 13:00:46 -08:00
spalger
af3387442d [build] ☝️ include webpackShims in build 2015-08-26 17:05:54 -07:00
spalger
1d40ed48a3 [build] drop the .node-version file 2015-08-14 16:28:18 -07:00
spalger
ce366a06f4 [build] initial fix 2015-08-13 21:16:54 -07:00
Chris Cowan
1e6f904530 Fix tasks so the server builds correctly
- Fix logging to use json output when using kibana.js to start server
- Closes #4241
- Support process.env.CONFIG_PATH
- add bundled_plugin_ids support back into server
2015-06-15 13:56:47 -07:00
Joe Fleming
42f2cafae9 copy worker-json to root path
done to avoid dealing with the dynamic loading stuff ace does
2015-05-22 14:51:28 -07:00
Chris Cowan
9268660b3d Correction config/index.js path for replace adn removing it from the root config for builds 2015-02-25 18:57:39 -07:00
Chris Cowan
bd9a86ff14 Moving Node Binaries and Fixing the Shell Scripts 2015-01-19 14:29:05 -07:00
Chris Cowan
9e28e8bdbd Adding build process for the binaries 2015-01-19 14:29:05 -07:00
Spencer Alger
b0c9609cc1 [plugins] include the readme warning in the plugins directory of the build 2014-11-06 15:18:44 -07:00
Spencer Alger
7304ade3a6 remove old config file and reference from Grunt task 2014-10-08 15:36:35 -07:00
Rashid Khan
5c7614038f Version the extracted directory. Closes #462 2014-10-03 10:16:29 -07:00
Chris Cowan
5d39d334ea Closes #355 - Make bin/kibana executable in the tar and zip archives
grunt-compress is broken it does not honor the `mode` option when tyring
to set the permissions on a file. This is broken through out the entire
Grunt project (grunt-contrib-copy doesn't honor it, grunt-replace
doesn't honor it... as far as I can tell nothing does). SO instead of
wasting more time trying to get it to work (I already wasted an hour on
it) I decided to fall back to just writing a 10 minute script that
actually works. If you are intent on using a pure Grunt task to make it
work feel free to go do that rabit hole.
2014-09-23 07:02:34 -07:00
Chris Cowan
47b353fbcc Closes #353 - Created a way to compile markdown to text 2014-09-22 17:05:16 -07:00
Spencer Alger
470d58927e added readme renderability 2014-09-18 13:45:25 -07:00
Chris Cowan
45eed28fff Adding a README to the dist along with the LICENSE. 2014-09-08 16:39:37 -07:00
Chris Cowan
0f9bab8e37 Moving bin/kibana to bin/initialize 2014-09-08 10:26:02 -07:00
Chris Cowan
156b597010 Adding --version and fixing the config and command line options 2014-09-08 10:00:15 -07:00
Chris Cowan
0fa83908e0 Shell Scripts
- Fixing the *nix version to use the right script variable
- Adding windows bat file
- Adding an INSTALL readme
2014-09-08 10:00:15 -07:00
Chris Cowan
49017ee7cf Refactoring Directory Layout for Build Process
- Moving bower_componets to src/kibana
- Moving server to src/server
- Adjusting all the build scripts and tests
- Adding proxy for backend server to connect
- Adding build steps for jar and server
2014-09-08 09:59:29 -07:00