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 #26667 - Add pagination to policy dashboard #380

Merged
merged 1 commit into from May 9, 2019

Conversation

xprazak2
Copy link
Contributor

No description provided.

.includes(:host)
.of_policy(@policy.id)
.latest
.paginate(:page => params[:page], :per_page => params[:per_page])

Choose a reason for hiding this comment

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

Layout/MultilineMethodCallIndentation: Align .paginate with ForemanOpenscap::ArfReport on line 11.

@latest_reports = ForemanOpenscap::ArfReport
.includes(:host)
.of_policy(@policy.id)
.latest

Choose a reason for hiding this comment

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

Layout/MultilineMethodCallIndentation: Align .latest with ForemanOpenscap::ArfReport on line 11.

@@ -8,5 +8,10 @@ def prefetch_data
@policy = ::ForemanOpenscap::Policy.find(params[:id])
dashboard = ForemanOpenscap::PolicyDashboard::Data.new(@policy, params[:search])
@report = dashboard.report
@latest_reports = ForemanOpenscap::ArfReport
.includes(:host)
.of_policy(@policy.id)

Choose a reason for hiding this comment

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

Layout/MultilineMethodCallIndentation: Align .of_policy with ForemanOpenscap::ArfReport on line 11.

@@ -8,5 +8,10 @@ def prefetch_data
@policy = ::ForemanOpenscap::Policy.find(params[:id])
dashboard = ForemanOpenscap::PolicyDashboard::Data.new(@policy, params[:search])
@report = dashboard.report
@latest_reports = ForemanOpenscap::ArfReport
.includes(:host)

Choose a reason for hiding this comment

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

Layout/MultilineMethodCallIndentation: Align .includes with ForemanOpenscap::ArfReport on line 11.

@ares
Copy link
Member

ares commented May 9, 2019

[test foreman_openscap]

Copy link
Member

@ares ares left a comment

Choose a reason for hiding this comment

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

Thanks @xprazak2, works as expected, merging!

@ares ares merged commit 561e938 into theforeman:master May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants