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

Dedupe Deployment error messages in tooltip #4170

Conversation

vrubezhny
Copy link
Contributor

@vrubezhny vrubezhny commented May 30, 2024

The PR deduplicates the same Deployment error messages, showing only 1 message for every problem reason.
Also, it limits the number of shown error messages for Deployment and Pod Containers to 3 messages each.

@vrubezhny vrubezhny requested a review from datho7561 May 30, 2024 16:51
@vrubezhny vrubezhny force-pushed the fix-dedup-deployment-errors-in-tooltip branch from 38206a9 to 766a5a8 Compare May 30, 2024 16:57
@vrubezhny
Copy link
Contributor Author

vrubezhny commented May 30, 2024

For example, the same errors from all 5 Pod Containers were deduped into the single CreateContainerError message in tooltip:

  • Before:
    image

  • After:
    image

@codecov-commenter
Copy link

codecov-commenter commented May 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.00%. Comparing base (da60441) to head (740d9b8).
Report is 262 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #4170       +/-   ##
===========================================
+ Coverage   32.37%   44.00%   +11.62%     
===========================================
  Files          85       91        +6     
  Lines        6505     7352      +847     
  Branches     1349     1569      +220     
===========================================
+ Hits         2106     3235     +1129     
+ Misses       4399     4117      -282     

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

src/explorer.ts Outdated Show resolved Hide resolved
src/explorer.ts Outdated Show resolved Hide resolved
src/explorer.ts Outdated Show resolved Hide resolved
@vrubezhny vrubezhny force-pushed the fix-dedup-deployment-errors-in-tooltip branch 2 times, most recently from cb9c1db to 04b336e Compare May 30, 2024 18:35
datho7561
datho7561 previously approved these changes May 30, 2024
Copy link
Contributor

@datho7561 datho7561 left a comment

Choose a reason for hiding this comment

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

Seems good to me; this makes the error log significantly more readable

The PR deduplicates the same Deployment error messages, showing only 1 message for every problem reason.
Also, it limits the number of shown error messages for Deployment and Pod Containers to 3 messages each.

Signed-off-by: Victor Rubezhny <[email protected]>
@vrubezhny vrubezhny force-pushed the fix-dedup-deployment-errors-in-tooltip branch from 04b336e to 740d9b8 Compare May 30, 2024 20:18
@vrubezhny vrubezhny self-assigned this May 30, 2024
@vrubezhny vrubezhny merged commit f966973 into redhat-developer:main May 30, 2024
3 of 4 checks passed
@rgrunber rgrunber mentioned this pull request Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants