-
Notifications
You must be signed in to change notification settings - Fork 884
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
[BUG] Object tables with updated_at
takes up too much space
#2663
Comments
updated_at
take up too much spaceupdated_at
takes up too much space
Need to check if |
For current These are the existing commonDurationRanges
There are two options available to display a pretty print version of the timestamp e.g. 1] Convert timestamp to relative time and use prettyDuration OUI component with custom commonDurationRanges
In above example 'now-2h' and label would be dynamic. 2] We can use moment library
But in both approach we first need to decide at what level (days, hours, minutes, seconds) we want to show time to the user. According to original issue, customer wanted to add this information to sort objects by date. That means they might be interested to see more granular level date. |
@bandinib-amzn To sort a value by date, the raw table should already have access to this information. We are only updating what the user sees here. We can also additionally toggle between the pretty version and descriptive version on user click. There are a lot of UI's that do exactly this. @KrooshalUX whats your guidance on this? As for how we want to approach |
Describe the bug
Ever since #1218, each item in an object table has a lot less space to work with e.g. in the Visualize page each visualization occupies 2 line. This is because we use the expanded notation for time for each record.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
There are a few ways to fix this:
2 hours ago
Ideally we should be able to do all 3 with the underlying component
<OUITable>
having support for 2&3OpenSearch Version
Please list the version of OpenSearch being used.
Dashboards Version
Please list the version of OpenSearch Dashboards being used.
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: