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

REPL: table breaks when table is wider than the available space #60

Open
iankressin opened this issue Nov 28, 2024 · 2 comments
Open

REPL: table breaks when table is wider than the available space #60

iankressin opened this issue Nov 28, 2024 · 2 comments
Assignees
Labels
bug Something isn't working eql-cli good first issue Good for newcomers

Comments

@iankressin
Copy link
Owner

iankressin commented Nov 28, 2024

Describe the bug

When a query returns a large number of columns or a field in a row is too long (e.g. data in the tx entity), and the necessary horizontal space is not enough to render the table, the component breaks making the data unreadable.

To Reproduce

  1. Start EQL REPL locally by typing eql repl or cargo run repl if you're running from the repo
  2. Run a query that returns a large number of columns.

Expected behavior

There are several possibilities:

  1. Truncate fields: for long fields, instead of printing a really long string, we should truncate it like 0x124...123
  2. Horizontal scroll
  3. Let user specify a different format when table is too wide. See this

Screenshots

image

Environment

  • OS: happens across all OSs
@iankressin iankressin added bug Something isn't working good first issue Good for newcomers eql-cli labels Nov 28, 2024
@mimisavage
Copy link

Could I take a shot at this?

@iankressin
Copy link
Owner Author

@mimisavage assigned to you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working eql-cli good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants