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

fixes #21274 - determine cvv errata based on errata_counts total #7022

Merged
merged 1 commit into from Oct 24, 2017

Conversation

bbuckingham
Copy link
Member

This is a small change to address an edge case where when a user
would view the details of a content view version in the UI, they
may not see the Errata tab.

This was occuring in cases where the errata_counts had null
as the first entry in the result set (e.g. errata_counts['security']==null).
Since the version['errata_counts'] (if included) will include a
'total', this logic will use that total to decide if the
Errata tab will be shown.

To test this specific edge case:

  1. enable the RH Tools repo (e.g. Red Hat Satellite Tools 6.2 for RHEL 7 Server RPMs x86_64)
  2. sync the repo
  3. create a content view, add the repo to it and publish a content view version
  4. click on the version
  5. confirm that the Errata tab is shown

Note: performing a similar scenario with a docker repository only, should illustrate that the Errata tab is not included when not needed.

@theforeman-bot
Copy link

Issues: #21274

@theforeman-bot
Copy link

There were the following issues with the commit message:

  • commit message for 860466db9d5f2eb30273d4b7df53e000db795540 is not wrapped at 72nd column

If you don't have a ticket number, please create an issue in Redmine.

More guidelines are available in Coding Standards or on the Foreman wiki.


This message was auto-generated by Foreman's prprocessor

Copy link
Contributor

@waldenraines waldenraines left a comment

Choose a reason for hiding this comment

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

Nice find, sounds like a fun one.

This worked for me in my testing (including the two scenarios mentioned in the summary).

@bbuckingham
Copy link
Member Author

[test]

This is a small change to address an edge case where when a user
would view the details of a content view version in the UI, they
may not see the Errata tab.

This was occuring in cases where the errata_counts had null
as the first entry in the result set (e.g.
errata_counts['security']==null).  Since the
version['errata_counts'] (if included) will include a
'total', this logic will use that total to decide if the
Errata tab will be shown.
@bbuckingham
Copy link
Member Author

Thanks @waldenraines !

@bbuckingham bbuckingham merged commit fafe91d into Katello:master Oct 24, 2017
@bbuckingham bbuckingham deleted the 21274 branch October 24, 2017 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants