Commit graph

31 commits

Author SHA1 Message Date
Court Ewing
e635d25b26 fork flot into Kibana (#14366)
The flot-charts project has been abandoned since 2014, but we use it
pretty extensively in Kibana. By forking it, we can fix bugs and improve
on the library in ways that we need to for Kibana.
2017-10-10 13:27:47 -04:00
CJ Cenizal
720297d8da [UI Framework] Reorganize UI Framework and add Yeoman generator (#13172)
* Reorganize documentation styles so they all live in doc_site/components directory. (#12809)
  - Remove global styles, e.g. body and html element selectors.
* Create global_styles dir with sub-directories. (#12833)
* Add SCSS style guide. (#12850)
* Refactor UI Framework directory structure to house everything in a src directory. (#12880)
  - Add components/index.js and services/index.js files to continue to export JS modules from the root.
* Add KUI Yeoman generator.
* Support creation of components.
* Add documentation generator for main page, demo, and sandbox.
  - Add additional documentation snippets to KUI generator. (#13076)
  - Fix incorrect use of double quotes in KUI generator snippet. (#13086)
  - Remove infrequently used imports from the KUI generator test template. (#13110)
* Mock assets files for Jest. (#13060)
* Fix broken coverage report paths in Jest config. (#13082)
* Update eslint config to lint the new UI Framework directory structure. (#13102)
* Fix positioning of doc site pagination buttons. (#13203)
* Support hasReact prop for sandboxes. (#13270)
* Remove deprecated used of component mixin from KUI generator's SCSS template. (#13377)
* Fix rebasing errors.
  - Add dashboard back to Jest config.
  - Add missing form and tool_bar variables.
* Rename tasks to createComponent and documentComponent.
* Reference correct src paths in README.
* Add children and className to templates' propTypes.
* Add default folder name for page demo.
* Add suffix to sandbox routes.
* Specify testPathIgnorePatterns more clearly.
* Rename component.test.js to test.js so that Jenkins won't try to run it.
* Update npm scripts to depend on local yo dependency, not global.
* Add ui_framework/src to copy task.
* Simplify npm scripts and remove requirement for installing Yeoman from README.
* Add services to moduleNameMapper in jest config.
* Clean up Button and Gallery examples.
2017-08-11 08:48:48 -07:00
Spencer
90434765c0 [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
2017-04-11 17:01:06 -05:00
Stacey Gammon
8eb17b330e Refactor table sort properties (#11073)
* 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-11 12:47:33 -04:00
Spencer
e67790037a [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
2017-03-27 15:29:14 -04:00
Spencer
d8d65526c6 [eslint] enable no undef (#10825)
* [codeshift] add proper ignore comments

* [codeshift] apply require-to-import transform

* [codeshift/fixup] remove duplicate imports

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

* [codeshift] apply remove-unused-imports transform

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

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

* [lintroller] fix argument list spacing

* [codeshift] apply remove-unused-basic-bars 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

* [eslint] autofix param spacing

* manually fix remaining no-undef errors

* use more descriptive file ignore pattern

* add eslint-plugin-react peerDependency

* 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
2017-03-22 07:08:23 -07:00
Tyler Smalley
e6669ee19d Remove libsass as a dependency (#9803)
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 20:27:54 -08:00
Spencer
4b2ac10381 Fix build with ui framework (#9463)
* [uiFramework] include sass deps in production so we can rebuild

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

* [licenses] allow code that uses the `Unlicense`
2016-12-13 14:41:57 -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