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

feat(Single recommendation page): add Impacted column #340

Merged

Conversation

gkarat
Copy link
Collaborator

@gkarat gkarat commented Jul 4, 2022

Implements https://issues.redhat.com/browse/CCXDEV-7462.

The "Impacted" column displays the date when the recommendation first hit the particular cluster. The column is sortable, no filter is required.

Screenshot 2022-07-04 at 14-12-44 Reduced ability to recover from faults when SDI backup is not enabled - Recommendations - OCP Advisor Red Hat Insights console redhat com

@gkarat gkarat added the enhancement New feature or request label Jul 4, 2022
@gkarat gkarat self-assigned this Jul 4, 2022
@gkarat gkarat requested review from Fewwy and ikerreyes July 4, 2022 12:14
@gkarat gkarat marked this pull request as ready for review July 4, 2022 12:14
@gkarat
Copy link
Collaborator Author

gkarat commented Jul 4, 2022

@RedHatInsights/team-interact, please take a look 🌞

@gkarat gkarat force-pushed the ccxdev-7462-single-rec-impacted-col branch from 0f789d1 to 1b59344 Compare July 4, 2022 12:51
@Fewwy
Copy link
Collaborator

Fewwy commented Jul 4, 2022

Ran it locally, tested the functionality
LGTM

},
{
"cluster": "f7331e9a-2f59-484d-af52-338d56165df5",
"cluster_name": "custom cluster name 2",
"last_checked_at": "2020-11-07T08:32:37.690Z",
"meta": {
"cluster_version": "4.18.12"
}
},
"impacted": ""
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the server will not respond with empty string but with the field missing

Copy link
Collaborator Author

@gkarat gkarat Jul 7, 2022

Choose a reason for hiding this comment

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

You are true, they marked it as optional, then this key can be possibly omitted. I'll rewrite the code so that it also considers missing "impacted"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@ikerreyes, updated, PTAL

@gkarat gkarat requested a review from ikerreyes July 7, 2022 13:08
@codecov-commenter
Copy link

Codecov Report

Merging #340 (99d1ef0) into master (3e818bf) will increase coverage by 0.72%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #340      +/-   ##
==========================================
+ Coverage   79.75%   80.47%   +0.72%     
==========================================
  Files          25       25              
  Lines        1121     1127       +6     
  Branches      425      431       +6     
==========================================
+ Hits          894      907      +13     
+ Misses        227      220       -7     
Impacted Files Coverage Δ
...nts/AffectedClustersTable/AffectedClustersTable.js 94.77% <100.00%> (+5.71%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3e818bf...99d1ef0. Read the comment docs.

Copy link
Collaborator

@ikerreyes ikerreyes left a comment

Choose a reason for hiding this comment

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

Looks very good. Just a minor improvement we can discuss.

@gkarat gkarat merged commit be12a3e into RedHatInsights:master Jul 8, 2022
gkarat pushed a commit that referenced this pull request Jul 8, 2022
# [1.5.0](v1.4.10...v1.5.0) (2022-07-08)

### Features

* **Single recommendation page:** add Impacted column ([#340](#340)) ([be12a3e](be12a3e))
@gkarat
Copy link
Collaborator Author

gkarat commented Jul 8, 2022

🎉 This PR is included in version 1.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@gkarat gkarat added the released label Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants