Skip to content

[ES|QL] Lookup index - Add warning message when dropping a file upon unsaved data#228146

Merged
sddonne merged 70 commits intoelastic:feature/lookup-join-uxfrom
sddonne:lookup-join/override-warning-2
Jul 29, 2025
Merged

[ES|QL] Lookup index - Add warning message when dropping a file upon unsaved data#228146
sddonne merged 70 commits intoelastic:feature/lookup-join-uxfrom
sddonne:lookup-join/override-warning-2

Conversation

@sddonne
Copy link
Contributor

@sddonne sddonne commented Jul 16, 2025

Part of #207330

Design

Summary

  • Add a warning message when dropping a file upon unsaved data.
  • When deciding to override the data, it's cleaned up from memory.
  • Improve how unsavedColumns are tracked:
    • They are now added to the dataview after being saved, otherwise they would be shown after discarding changes.
Screen.Recording.2025-07-16.at.10.27.55.mov
@sddonne sddonne changed the title [ES|QL] Lookup index - Add warning message when overriding manually added data Jul 16, 2025
@sddonne sddonne requested a review from darnautov July 16, 2025 08:32
@sddonne sddonne marked this pull request as ready for review July 17, 2025 08:43
@sddonne sddonne requested a review from a team as a code owner July 17, 2025 08:43
for (const column of pendingColumnsToBeSaved) {
if (!dataView.fields.getByName(column.name)) {
dataView.fields.add({
const unsavedFields = pendingColumnsToBeSaved
Copy link
Contributor Author

Choose a reason for hiding this comment

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

same change as in #228421

sddonne added a commit that referenced this pull request Jul 24, 2025
Part of #207330

## Summary
While columns are not saved into elastic search, allow editing it's
names.

* Created `colum_input_control.tsx` as counterpart to
`value_input_control.tsx` to hold the custom renderization of the header
columns.
* Moved both into a folder `grid_custom_redenderers` folder.
* Added a new action to edit the name of unsaved columns.
* Allow deleting unsaved columns.
* Improve how unsavedColumns are tracked:
* They are now added to the dataview after being saved, otherwise they
would be shown after discarding changes.
* This change is also present in
#228146, had to bring it as it was
needed here too.




https://github.com/user-attachments/assets/ee97a1cf-171a-4acb-b31a-020a359eb8ed
Copy link
Contributor

@darnautov darnautov left a comment

Choose a reason for hiding this comment

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

LGTM

@elasticmachine
Copy link
Contributor

💔 Build Failed

Failed CI Steps

Metrics [docs]

‼️ ERROR: no builds found for mergeBase sha [d7dc48f]

History

@sddonne sddonne merged commit 4cde6bc into elastic:feature/lookup-join-ux Jul 29, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants