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

[HaveIBeenPwnedBridge] Add item limit parameter, set default limit to 20 #1219

Merged
merged 3 commits into from
Jul 26, 2019
Merged

[HaveIBeenPwnedBridge] Add item limit parameter, set default limit to 20 #1219

merged 3 commits into from
Jul 26, 2019

Conversation

VerifiedJoseph
Copy link
Contributor

@VerifiedJoseph VerifiedJoseph commented Jul 17, 2019

This pull request adds the parameter item_limit that allows the user to control the number of items returned by bridge. Default limit is 20.

@triatic
Copy link
Contributor

triatic commented Jul 18, 2019

20 is an acceptable default limit, but I think things like this should be user-definable.

@somini
Copy link
Contributor

somini commented Jul 22, 2019

To implement @triatic's proposal, add a new parameter:

'items_limit' => array(
   'name' => 'Limit the number of returned items',
   'type' => 'number',
   'defaultValue' => 20,
)

And use it, instead of the hardcoded 20:

$this->getInput('items_limit')

Add `item_limit` parameter to allow user to control number of item returned by bridge. Suggested by @triatic and @somini (code).
@VerifiedJoseph VerifiedJoseph changed the title [HaveIBeenPwnedBridge] Limit number of feed items to 20 [HaveIBeenPwnedBridge] Add item limit parameter, set default limit to 20 Jul 22, 2019
@teromene teromene merged commit e032705 into RSS-Bridge:master Jul 26, 2019
@teromene
Copy link
Member

Merged, thanks !

@VerifiedJoseph VerifiedJoseph deleted the VerifiedJoseph-HaveIBeenPwnedBridge-limit-feed-items-2 branch August 6, 2019 11:34
infominer33 pushed a commit to web-work-tools/rss-bridge that referenced this pull request Apr 17, 2020
… 20 (RSS-Bridge#1219)

* Add `item_limit` parameter to allow user to control number of item returned by bridge. Suggested by @triatic and @somini (code).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants