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(ADIVOSR-3016): Add perPage arg to getEntities #1777

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

adonispuente
Copy link
Contributor

ADVISOR-3016 describes a bug where the second half of items when loading in more than 50 (the default) items from inventory dont have the rhel version attached. This was because the inventory end point could never get all 100 as the arguments are filled in as undefined. This PR just allows it to get passed in.

Tested against Patch, Inventory, and Advisor.

How to Reproduce:

  1. Go to console.redhat.com
  2. Advisor -> Recommendations, select one advisor with more than 100 affected systems
  3. Select 100 per page

Expected results:
All hosts should show the respective OS versions.

@adonispuente adonispuente requested a review from a team as a code owner February 28, 2023 23:17
@codecov-commenter
Copy link

Codecov Report

Patch coverage has no change and project coverage change: -1.16 ⚠️

Comparison is base (ca24e55) 70.45% compared to head (bf3d17d) 69.30%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1777      +/-   ##
==========================================
- Coverage   70.45%   69.30%   -1.16%     
==========================================
  Files         122      122              
  Lines        2579     2580       +1     
  Branches      885      885              
==========================================
- Hits         1817     1788      -29     
- Misses        762      792      +30     
Impacted Files Coverage Δ
src/api/api.js 45.78% <ø> (-18.08%) ⬇️
src/components/SystemDetails/Advisor.js 0.00% <0.00%> (ø)
src/store/groupDetail.js 71.42% <0.00%> (-28.58%) ⬇️
src/routes/InventoryTable.js 60.34% <0.00%> (-7.76%) ⬇️
src/components/InventoryTable/InventoryTable.js 94.73% <0.00%> (-5.27%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@mkholjuraev mkholjuraev left a comment

Choose a reason for hiding this comment

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

LGTM!

Just one reminder, there might be some applications that might get affected by this. I had a similar case with the ROS app. So we need to watch out or make sure this will not have a negative affect on other apps.

@adonispuente
Copy link
Contributor Author

@mkholjuraev thanks for taking a look. I'll keep that in mind and be more cautious releasing to the other envs

@adonispuente adonispuente merged commit 6b42a24 into RedHatInsights:master Mar 6, 2023
gkarat pushed a commit that referenced this pull request Mar 6, 2023
## [1.7.1](v1.7.0...v1.7.1) (2023-03-06)

### Bug Fixes

* **ADVISOR-3016:** Add perPage arg to getEntities ([#1777](#1777)) ([6b42a24](6b42a24))
@gkarat
Copy link
Contributor

gkarat commented Mar 6, 2023

🎉 This PR is included in version 1.7.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@gkarat gkarat added the released label Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants