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

[ML] File data viz fix fields from mappings #77251

Merged
merged 4 commits into from
Sep 15, 2020

Conversation

jgowdyelastic
Copy link
Member

@jgowdyelastic jgowdyelastic commented Sep 10, 2020

Removes properties as a field in the UI which was introduced by accident as part of the changes in elastic/elasticsearch#62158 and #77035

Fixes #77220

@jgowdyelastic jgowdyelastic self-assigned this Sep 14, 2020
@jgowdyelastic jgowdyelastic added :ml bug Fixes for quality problems that affect the customer experience Feature:File and Index Data Viz ML file and index data visualizer non-issue Indicates to automation that a pull request should not appear in the release notes release_note:skip Skip the PR/issue when compiling release notes v7.10.0 v8.0.0 labels Sep 14, 2020
@jgowdyelastic jgowdyelastic marked this pull request as ready for review September 14, 2020 10:49
@jgowdyelastic jgowdyelastic requested a review from a team as a code owner September 14, 2020 10:49
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@jgowdyelastic
Copy link
Member Author

@elasticmachine merge upstream

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

LGTM

async assertNumberOfFieldCards(number: number) {
const cards = await testSubjects.findAll('mlPageFileDataVisFieldDataCard');
if (cards.length !== number) {
throw new Error(`expected ${number} field cards to exist, but found ${cards.length}`);
Copy link
Member

Choose a reason for hiding this comment

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

While this works, I'd suggest to use expect which is used for most of our assertions, something like

expect(cards.length).to.eql(number, `expected ${number} field cards to exist, but found ${cards.length}`);

Copy link
Member Author

Choose a reason for hiding this comment

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

changed in 088c544

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

async chunks size

id value diff baseline
ml 8.0MB +230.0B 8.0MB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Member

@pheyos pheyos left a comment

Choose a reason for hiding this comment

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

Functional test changes LGTM

@jgowdyelastic jgowdyelastic merged commit 9675e55 into elastic:master Sep 15, 2020
@jgowdyelastic jgowdyelastic deleted the fix-fields-in-mappings branch September 15, 2020 15:36
jgowdyelastic added a commit to jgowdyelastic/kibana that referenced this pull request Sep 15, 2020
* [ML] File data viz fix fields from mappings

* adding card count test

* updating test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
jgowdyelastic added a commit that referenced this pull request Sep 15, 2020
* [ML] File data viz fix fields from mappings

* adding card count test

* updating test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:File and Index Data Viz ML file and index data visualizer :ml non-issue Indicates to automation that a pull request should not appear in the release notes release_note:skip Skip the PR/issue when compiling release notes v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] Non-existing field "properties" is displayed in file upload file stats.
5 participants