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

[Discover][ES|QL] Reset selected fields when modifying the ES|QL query #185997

Merged
merged 17 commits into from
Jun 18, 2024

Conversation

jughosta
Copy link
Contributor

@jughosta jughosta commented Jun 11, 2024

Summary

This PR updates the logic of resetting columns when modifying the ES|QL query. The previous implementation was added in #167492 and then changed in #177241.

Checklist

@jughosta jughosta added release_note:fix backport:skip This commit does not require backporting Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. Feature:ES|QL ES|QL related features in Kibana labels Jun 11, 2024
@jughosta jughosta self-assigned this Jun 11, 2024
@jughosta
Copy link
Contributor Author

/ci

expect(await dataGrid.getHeaderFields()).to.eql(['@timestamp', 'Document']);
});
});
}
Copy link
Contributor Author

@jughosta jughosta Jun 12, 2024

Choose a reason for hiding this comment

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

@stratoula I made it closer to what we had in 8.13 and would be great if you could verify the use cases which are mentioned in these tests. Are they working as expected now or more modifications are needed?

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanx Jul, I will check first thing in the morning

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes they are correct 👍 I tested it also locally, everything works as expected

@stratoula
Copy link
Contributor

/ci

@jughosta
Copy link
Contributor Author

/ci

@jughosta jughosta marked this pull request as ready for review June 13, 2024 11:40
@jughosta jughosta requested review from a team as code owners June 13, 2024 11:40
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

Copy link
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

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

Code LGTM, thx for fixing it 👍 . Tested locally an work as expected,

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
discover 809.3KB 809.4KB +70.0B

History

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

cc @jughosta

@jughosta jughosta requested a review from stratoula June 17, 2024 13:01
Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

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

Looks fantastic! LGTM!

@stratoula stratoula merged commit 250c729 into elastic:main Jun 18, 2024
17 checks passed
@jughosta jughosta deleted the 183961-fix-esql-columns-reset branch June 18, 2024 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:ES|QL ES|QL related features in Kibana release_note:fix Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Discover] [ES|QL] Selected fields are not cleared when modifying the ES|QL query
7 participants