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 #11330: message on errata list if errata exist, BZ 1242943. #5413

Merged
merged 1 commit into from Aug 12, 2015

Conversation

waldenraines
Copy link
Contributor

Show a different message if errata exists in an organization but is
hidden by filters.

http://projects.theforeman.org/issues/11330
https://bugzilla.redhat.com/show_bug.cgi?id=1242943

Erratum.queryUnpaged({'organization_id': CurrentOrganization}, function (result) {
$scope.errataCount = result.total;
});

Copy link
Contributor

Choose a reason for hiding this comment

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

I have many thousands of errata, and this slows the page down about 1000% for me :-(

Rendering the RABL generates so many SQL queries.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I suppose I could add yet another parameter or an API to just return the count of the errata. I was wanting to avoid that because it seems silly.

Any other suggestions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just realized I was using queryUnpaged()! Let me try with queryPaged() that shouldn't slow it down as much.

@waldenraines
Copy link
Contributor Author

@stbenjam updated. Try that please, it should be faster.

@stbenjam
Copy link
Contributor

Much better! ACK

waldenraines pushed a commit that referenced this pull request Aug 12, 2015
Fixes #11330: message on errata list if errata exist, BZ 1242943.
@waldenraines waldenraines merged commit 87637a4 into Katello:master Aug 12, 2015
@waldenraines waldenraines deleted the 11330 branch August 12, 2015 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants