Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up EuiSearchBar docs and reorganize code. #454

Merged
merged 1 commit into from
Feb 26, 2018

Conversation

cjcenizal
Copy link
Contributor

  • Move Query to services.
  • Change random.oneOf to accept an array.

@cjcenizal cjcenizal force-pushed the search-bar-docs branch 2 times, most recently from 625f357 to c7d4a35 Compare February 26, 2018 21:06
- Rename AST to Ast and astToES to astToEs to maintain consistent naming convention.
- Fix enzyme imports.
- Move Query to services.
- Publish Ast and Query services.
- Change random.oneOf to accept an array.
@cjcenizal
Copy link
Contributor Author

Tests passed locally, looks like the failures are on Jenkins's side.

@cjcenizal
Copy link
Contributor Author

CC @uboness made some changes here to some of the code you contributed, in case you're curious. I think these changes are non-controversial so I'm going to go ahead and merge.

@cjcenizal cjcenizal merged commit 3a910d3 into elastic:master Feb 26, 2018
@cjcenizal cjcenizal deleted the search-bar-docs branch February 26, 2018 21:18
@uboness
Copy link
Contributor

uboness commented Feb 27, 2018

I wouldn't have moved query to services... because it was built for the search bar... But if you really want it there go for it... I'd change the name though because it's fairly generic name and there'll be other query languages in kibana, associating it with the search bar avoided that... I actually have (now had) another pr to actually expose it as a static field on the search bar component itself

@uboness
Copy link
Contributor

uboness commented Feb 27, 2018

actually... I'd appreciate it if you revert this changes... I have quite a big PR coming that adds loads of features to the query support and I don't have time to now merge it all... this PR should have been reviewed prior to pushing

cjcenizal added a commit to cjcenizal/eui that referenced this pull request Mar 5, 2018
cjcenizal added a commit to cjcenizal/eui that referenced this pull request Mar 8, 2018
cjcenizal added a commit that referenced this pull request Mar 8, 2018
* Revert "Clean up EuiSearchBar docs and reorganize code. (#454)"
This partially reverts commit 3a910d3.
* Change random.oneOf() to accept an array.
* Export Query and Ast services. Import components into examples via the root components module.
* Fix typos in docs.
* Refactor search bar docs for clearer data flow and render methods.
* Import Enzyme utilities from enzyme root module in tests.
* Use Component instead of React.Component.
* Rename astToES to astToEs.
* Fix line-break in CHANGELOG.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants