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 #25465 - limit load macros in preview mode #6244

Merged
merged 1 commit into from
Nov 20, 2018

Conversation

ares
Copy link
Member

@ares ares commented Nov 14, 2018

No description provided.

@theforeman-bot
Copy link
Member

Issues: #25465

Copy link
Member

@lzap lzap left a comment

Choose a reason for hiding this comment

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

Looks sane.

@@ -109,11 +109,14 @@ def validate_subnet(subnet)
# .each { |batch| batch.each { |record| record.name }}
# or
# .each_record { |record| record.name }
def load_resource(klass:, search:, permission:, batch: 1_000, includes: nil)
def load_resource(klass:, search:, permission:, batch: 1_000, includes: nil, limit: nil)
limit ||= 10 if preview?
Copy link
Member

Choose a reason for hiding this comment

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

However only ten seems to be bit of an overkill, how about 100?

@lzap lzap merged commit 353edb8 into theforeman:develop Nov 20, 2018
@lzap
Copy link
Member

lzap commented Nov 20, 2018

Whatever, merging thanks.

@tbrisker
Copy link
Member

tbrisker commented Dec 6, 2018

1.20 - c1ab967

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants