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

Inability to Filter Entry Schedules by Entry IDs in Contentful SDK #2080

Open
meldmy opened this issue Nov 26, 2024 · 0 comments
Open

Inability to Filter Entry Schedules by Entry IDs in Contentful SDK #2080

meldmy opened this issue Nov 26, 2024 · 0 comments

Comments

@meldmy
Copy link

meldmy commented Nov 26, 2024

Currently, the Contentful API for fetching entry schedules does not support providing a specific list of entry IDs to retrieve schedules only for those entries. Instead, the API fetches all scheduled actions for the entire Contentful space.

This limitation introduces inefficiencies, particularly in large spaces with numerous scheduled actions, as it requires additional processing on the client-side to filter the results for specific entries and paginate requests to Contentful. For projects with high-volume content, this behavior significantly impacts performance and usability.

There is a need to support in filter for sys.id in schedule search https://www.contentful.com/developers/docs/references/content-management-api/#/reference/scheduled-actions/scheduled-actions-collection/get-all-scheduled-actions-of-an-entry/console/js

In this case we can use the sdk as following:

client.getSpace('<space_id>')
.then((space) => space.getScheduledActions({
    'environment.sys.id': '<environment_id>',
    'sys.status': 'scheduled',
     'sys.id[in]': 'id1, id2'
}))
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

No branches or pull requests

1 participant