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

fix(discover): truncate height of table cell #7178

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

joshuali925
Copy link
Member

@joshuali925 joshuali925 commented Jul 4, 2024

Description

see #7176. osdDocTable__limitedHeight class isn't associated with any style, use truncate-by-height to truncate.

@AMoo-Miki osdDocTable__limitedHeight was added in 1ba45a7, any concerns with this?

Issues Resolved

closes #7176

Screenshot

before
image

after

image

Testing the changes

Changelog

  • fix: truncate height of table cell in legacy discover

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Copy link
Contributor

github-actions bot commented Jul 4, 2024

❌ Empty Changelog Section

The Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section.

Copy link

codecov bot commented Jul 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.55%. Comparing base (e0945af) to head (00230f8).
Report is 320 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7178      +/-   ##
==========================================
- Coverage   67.56%   67.55%   -0.01%     
==========================================
  Files        3469     3469              
  Lines       68508    68479      -29     
  Branches    11141    11130      -11     
==========================================
- Hits        46289    46264      -25     
+ Misses      19514    19512       -2     
+ Partials     2705     2703       -2     
Flag Coverage Δ
Linux_1 33.13% <ø> (-0.04%) ⬇️
Linux_2 55.26% <ø> (+<0.01%) ⬆️
Linux_3 45.31% <ø> (-0.01%) ⬇️
Linux_4 34.71% <ø> (-0.02%) ⬇️
Windows_1 33.15% <ø> (-0.04%) ⬇️
Windows_2 55.21% <ø> (+<0.01%) ⬆️
Windows_3 45.32% <ø> (-0.01%) ⬇️
Windows_4 34.71% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AMoo-Miki
Copy link
Collaborator

AMoo-Miki commented Sep 13, 2024

Looks like some things are missing from #5766

I remember we decided against using clamp in favor of the value from Advanced Settings. I remember some match written to handle this but a quick search doesn't bring it up.

The reason for the new math is that truncate-by-height uses an injector from legacy which we are trying to get rid of. However, now that that math is not in the code, let's use truncate-by-height and deal with it later.

@joshuali925
Copy link
Member Author

got it

I remember we decided against using clamp in favor of the value from Advanced Settings

i think supporting value from advanced settings is a new feature, but right now it doesn't truncate at all which is a bug/regression. we can fix the bug first to improve readability for users, then improve it by implementing the feature and remove legacy stuff

@ashwin-pc ashwin-pc merged commit 21f4218 into opensearch-project:main Sep 13, 2024
71 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 13, 2024
* fix(discover): truncate height of table cell

Signed-off-by: Joshua Li <[email protected]>

* Changeset file for PR #7178 created/updated

---------

Signed-off-by: Joshua Li <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 21f4218)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ashwin-pc pushed a commit that referenced this pull request Sep 18, 2024
* fix(discover): truncate height of table cell



* Changeset file for PR #7178 created/updated

---------



(cherry picked from commit 21f4218)

Signed-off-by: Joshua Li <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
@ashwin-pc ashwin-pc added discover for discover reinvent 2.17.1 and removed v2.18.0 labels Sep 18, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 20, 2024
* fix(discover): truncate height of table cell

Signed-off-by: Joshua Li <[email protected]>

* Changeset file for PR #7178 created/updated

---------

Signed-off-by: Joshua Li <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 21f4218)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
abbyhu2000 pushed a commit that referenced this pull request Sep 21, 2024
* fix(discover): truncate height of table cell



* Changeset file for PR #7178 created/updated

---------



(cherry picked from commit 21f4218)

Signed-off-by: Joshua Li <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
abbyhu2000 added a commit to abbyhu2000/OpenSearch-Dashboards that referenced this pull request Sep 24, 2024
@iaroslavkorablev
Copy link

Could you please tell me - in which version of Opensearch Dashboards is this fix planned to be released?

Or is it already included in one of the versions ? 2.17.0 or 2.17.1.

Very much waiting for this fix, so I thought I'd ask. Thanks for the answer!

@iaroslavkorablev
Copy link

@ashwin-pc @joshuali925 @AMoo-Miki
I'm sorry to bother you, could you give me a hint, please? I'd be very grateful.

Could you please tell me - in which version of Opensearch Dashboards is this fix planned to be released?

Or is it already included in one of the versions ? 2.17.0 or 2.17.1.

Very much waiting for this fix, so I thought I'd ask. Thanks for the answer!

@joshuali925
Copy link
Member Author

@iaroslavkorablev it's labeled 2.17.1 but git tag 2.17.1 doesn't have this

if there's no 2.17.2, then it will be released in 2.18.0

@iaroslavkorablev
Copy link

@iaroslavkorablev it's labeled 2.17.1 but git tag 2.17.1 doesn't have this

if there's no 2.17.2, then it will be released in 2.18.0

thank you very much for your reply

@iaroslavkorablev
Copy link

@ashwin-pc @joshuali925 @AMoo-Miki
I'm sorry to bother you,
could you please kindly confirm if the change has been included in version 2.18.0?

@joshuali925
Copy link
Member Author

@iaroslavkorablev checking the 2.18.0 release notes it does include this PR, so it is fixed in 2.18.0

- Truncate height of table cell in legacy discover ([#7178](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7178))

if it's not working for you, you can try to clear browser cache first or open a new issue here

@iaroslavkorablev
Copy link

@iaroslavkorablev checking the 2.18.0 release notes it does include this PR, so it is fixed in 2.18.0

- Truncate height of table cell in legacy discover ([#7178](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7178))

if it's not working for you, you can try to clear browser cache first or open a new issue here

thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Discover no longer truncates long text fields
5 participants