Skip to content

Classify new Contentstack content types in essc discovery#3621

Open
Mpdreamz wants to merge 1 commit into
mainfrom
fix/filter-content-stack-content-types
Open

Classify new Contentstack content types in essc discovery#3621
Mpdreamz wants to merge 1 commit into
mainfrom
fix/filter-content-stack-content-types

Conversation

@Mpdreamz

@Mpdreamz Mpdreamz commented Jul 7, 2026

Copy link
Copy Markdown
Member

Why

Contentstack is introducing new content types (blog_landing, tutorial, notebook, series, etc.) that aren't ready to appear in search yet, plus a long tail of reusable component/taxonomy types (hero, accordion_faq, tags_*, etc.) that will never represent a standalone page. PageContentTypes.All is an opt-in allow-list, so none of these are synced today — but the discovery command (essc contentstack types) had no way to distinguish "not yet classified" from "deliberately not a page," making it easy for a genuinely new page-worthy type to go unnoticed.

What

  • Added PageContentTypes.Blocked for content types intentionally excluded from sync for now (still being authored, not search-ready).
  • Added PageContentTypes.KnownNonPages for component/taxonomy/config content types that are never expected to sync.
  • contentstack types now renders a Status column per discovered type (synced / ignored / skipped / unregistered) and exits 1 if any discovered type isn't classified in All, Blocked, or KnownNonPages, so newly-added Contentstack types can't silently go unclassified.
  • SyncCommand is unchanged — it already only syncs types explicitly listed in PageContentTypes.All.

Register newly-added Contentstack content types (blog_landing, tutorial,
notebook, etc.) as intentionally blocked, and non-page component/taxonomy
types (accordion_faq, tags_*, hero, etc.) as known non-pages. The
`contentstack types` command now shows a per-type status and fails when
it finds a type that isn't classified in any of the three registries.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@cindychangy

Copy link
Copy Markdown

@Mpdreamz: just saw this from the Slack thread. I noticed a KnownNonPages section, can we add the following to that section:

public static readonly string[] KnownNonPages =
[
    ...
    category_cta
    auto_linking_settings
    auto_linking_term
    glossary_term
  ]

Can we also add glossary to the public static readonly string[] Blocked = section. Thank you!

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.

2 participants