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

feat(contentful): add paging in searchByKeywords #1740

Merged
merged 7 commits into from
Jul 28, 2021

Conversation

asastre
Copy link
Contributor

@asastre asastre commented Jul 28, 2021

Description

  • Adding paging parameter in searchByKeywords the same way it's done with topContents.
  • Fixed an error with the perf_hooks dependency that was making the bot's webpack to fail when compiling.

Context

Contentful requests have a limit of 100 contents and some times there's a need to obtain more than 100 contents when searching by keywords.

Approach taken / Explain the design

If no paging object is passed to searchByKeywords the default one (with a limit of 1000) wil be set.

To document / Usage example

Testing

The pull request has no tests.

@asastre asastre force-pushed the contentful/paging-keywords branch from f4887ed to 5c60e05 Compare July 28, 2021 10:07
@github-actions

This comment has been minimized.

@github-actions
Copy link

github-actions bot commented Jul 28, 2021

Unit Test Results

  1 files    7 suites   3m 10s ⏱️
32 tests 32 ✔️ 0 💤 0 ❌

Results for commit 5c60e05.

♻️ This comment has been updated with latest results.

Copy link

@marcpdw marcpdw left a comment

Choose a reason for hiding this comment

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

Looks good, I just left a comment to consider

@pull-request-size pull-request-size bot added size/L and removed size/M labels Jul 28, 2021
@asastre asastre merged commit 6e141d0 into master Jul 28, 2021
@asastre asastre deleted the contentful/paging-keywords branch July 28, 2021 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants