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

refactor: fetch all references with includes #522

Open
wants to merge 12 commits into
base: development
Choose a base branch
from

Conversation

dimitrycf
Copy link
Contributor

Purpose

Refactoring proposal for https://github.com/contentful/experience-builder/pull/519/files

  • refactor recursion
    • clearly state destination variables (responseItems, responseAssetsFromIncludes , responseEntriesFromIncludes)
    • make explicit gathering of: responseItems, responseAssetsFromIncludes , responseEntriesFromIncludes
  • explicitly state TS types
    • also fixes unnecessary returning of includes{}
  • make downsizing of the LIMIT explicit
  • add deduplication of gathered Assets and Entries
  • ensure that includes.Assets and includes.Entries are aggregated on pages 2 and beyond

@dimitrycf dimitrycf requested review from a team as code owners March 25, 2024 13:47
Copy link

vercel bot commented Mar 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
experience-builder-test-app ✅ Ready (Inspect) Visit Preview Mar 25, 2024 3:38pm

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

1 participant