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

Consolidate TimeRange, Query and Filter types. #39074

Conversation

stacey-gammon
Copy link
Contributor

Stop exporting/importing from embedables.

@stacey-gammon stacey-gammon requested a review from a team as a code owner June 17, 2019 13:48
@stacey-gammon stacey-gammon added chore release_note:skip Skip the PR/issue when compiling release notes Team:AppArch labels Jun 17, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch

@@ -30,7 +28,7 @@ describe('FullTimeRangeSelector', () => {
};

const query: Query = {
language: QueryLanguageType.KUERY,
language: 'kuery',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Stacey, can you explain why this is no longer available as an enum?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally it would be, it's just that the type in the "source of truth" package always used a string, while the embeddable's one used an enum. A follow up PR could be be converting the source of truth type to use an enum. I thought about adding it in this PR... but these PRs really quickly grow in scope so tried to stick with one goal: stop importing/exporting these from the embeddables plugin.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No comments other than this one :)

@stacey-gammon stacey-gammon force-pushed the 2019-06-15-remove-embedd-type-exports branch from 9c39a9b to 11d2118 Compare June 17, 2019 14:22
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@lizozom lizozom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -30,7 +28,7 @@ describe('FullTimeRangeSelector', () => {
};

const query: Query = {
language: QueryLanguageType.KUERY,
language: 'kuery',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No comments other than this one :)

Copy link
Contributor

@walterra walterra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stacey-gammon stacey-gammon merged commit 17b185c into elastic:master Jun 18, 2019
stacey-gammon added a commit to stacey-gammon/kibana that referenced this pull request Jun 18, 2019
stacey-gammon added a commit to stacey-gammon/kibana that referenced this pull request Jun 18, 2019
stacey-gammon added a commit to stacey-gammon/kibana that referenced this pull request Jun 18, 2019
stacey-gammon added a commit to stacey-gammon/kibana that referenced this pull request Jun 19, 2019
stacey-gammon added a commit that referenced this pull request Jun 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants