Skip to content

fix collection docs page by requesting docs_blob field#5572

Draft
drodowic wants to merge 1 commit intoansible:masterfrom
drodowic:include-fields
Draft

fix collection docs page by requesting docs_blob field#5572
drodowic wants to merge 1 commit intoansible:masterfrom
drodowic:include-fields

Conversation

@drodowic
Copy link
Copy Markdown
Collaborator

@drodowic drodowic commented Apr 9, 2026

pulp_ansible 0.28.3+ excludes large fields (docs_blob, contents, files, manifest) by default to prevent OOM issues. Explicitly request these fields only on the pages that need them, and skip large fields for better performance on other pages.

Pages that request large fields (docs_blob + contents):

  • ✅ Collection Docs page - needs docs_blob for documentation rendering
  • ✅ Collection Content page - needs contents for module/plugin list

Pages that skip large fields (lighter payload):

  • ✅ Collection Detail page - only needs metadata
  • ✅ Collection Dependencies page - only needs metadata
  • ✅ Collection Distributions page - only needs metadata
  • ✅ Collection Import Log page - only needs metadata

This optimized approach ensures:

  • The docs page works correctly with docs_blob.collection_readme
  • The content page has the contents array for displaying modules/plugins
  • Other pages get faster responses with smaller payloads (no unnecessary large fields)

Fixes TypeError: Cannot read properties of undefined (reading 'collection_readme')

🤖 Generated with Claude Code

@drodowic drodowic marked this pull request as draft April 9, 2026 19:30
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.

1 participant