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(ui): Revert upgrade to react-lazylog #386

Merged

Conversation

deadlycoconuts
Copy link
Contributor

@deadlycoconuts deadlycoconuts commented Jul 17, 2024

Context

For some still yet to be understood reason, replacing the forked version of react-lazylog from https://github.com/gojekfarm/react-lazylog#master with the latest official version of the same package caused the logs viewer to crash due to some styling issues that get triggered when we manually set the height of the logs viewer (or the component containing it):

Screenshot 2024-07-17 at 13 48 53

In the Turing UI, this height is set by the custom style in PodLogsViewer.scss (removed in this PR) while in the Merlin UI, it is set by passing it as a prop to the LazyLog component. This PR also standardises the way both UIs are setting this value.

Strangely enough, the Merlin UI isn't experiencing these styling issues even after having its react-lazylog replaced with the official version but a deeper look into this will be done at a later time.

@deadlycoconuts deadlycoconuts added the type: bug Something isn't working label Jul 17, 2024
@deadlycoconuts deadlycoconuts requested a review from leonlnj July 17, 2024 06:00
@deadlycoconuts deadlycoconuts self-assigned this Jul 17, 2024
@deadlycoconuts deadlycoconuts force-pushed the revert_upgrade_to_react_lazylog branch from accef8f to 4a6e483 Compare July 17, 2024 06:03
Copy link

codecov bot commented Jul 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.27%. Comparing base (94bd5cf) to head (e7b626c).

❗ There is a different number of reports uploaded between BASE (94bd5cf) and HEAD (e7b626c). Click for more details.

HEAD has 3 uploads less than BASE
Flag BASE (94bd5cf) HEAD (e7b626c)
sdk-test-3.8 1 0
sdk-test-3.10 1 0
sdk-test-3.9 1 0
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #386      +/-   ##
==========================================
- Coverage   68.06%   62.27%   -5.79%     
==========================================
  Files         149      124      -25     
  Lines       11809     9774    -2035     
==========================================
- Hits         8038     6087    -1951     
+ Misses       3033     2949      -84     
  Partials      738      738              
Flag Coverage Δ
api-test 62.27% <ø> (+0.01%) ⬆️
sdk-test-3.10 ?
sdk-test-3.8 ?
sdk-test-3.9 ?

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.

@deadlycoconuts deadlycoconuts merged commit dd0b448 into caraml-dev:main Jul 17, 2024
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants