Skip to content

[ENG-3818] docs: document read field filters in manifest reference - #725

Open
eberle1080 wants to merge 2 commits into
mainfrom
docs/read-field-filters
Open

eberle1080 wants to merge 2 commits into
mainfrom
docs/read-field-filters

Conversation

@eberle1080

@eberle1080 eberle1080 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Description

The manifest schema reference had no mention of read filters, while read actions documents them. Anyone searching the manifest page for how to filter records found nothing and no pointer to where the feature lives.

fieldFilters is not a manifest field — it exists only in the installation config schema (IntegrationObject and the manifest's Backfill have no filter key), so this documents it as an installation-config field rather than inventing amp.yaml syntax. search-actions.mdx already sets the same kind of manifest-vs-installation-config boundary.

manifest-reference.mdx

  • Pointer under the Read object table drawing the which fields vs which records distinction — placed where someone scanning a read object's fields would look for filtering.
  • Bullet in Backfill considerations noting the installation config's backfill object accepts one extra key, fieldFilters, which amp.yaml does not.
  • New Field filters section under Details: what it does, JSON example, a field table for fieldName / operator / value, AND semantics, provider support, and object-level vs. backfill-scoped precedence.

read-actions.mdx

  • New Filter field names section: fieldName must be the provider's API name and is case-sensitive, and field mappings are not resolved for read filters — unlike search actions, which do accept mapped names. Includes a correct/incorrect example pair reusing the mobilephonephone mapping from the manifest page so the two read consistently.
  • Also notes the filter field does not have to be in selectedFields.

The mapping behavior is the one genuinely new fact here, sourced from the code: reads pass fieldName through verbatim (server/shared/workflow/read/state.go:677), while search resolves it against SelectedFieldMappings (server/api/routes/search/search.go:207-211). It wasn't documented on either page.

Screenshot

Screenshot 2026-09-14 at 12 25 45 PM Screenshot 2026-09-14 at 12 26 21 PM Screenshot 2026-09-14 at 12 27 07 PM Screenshot 2026-09-14 at 12 27 19 PM

pnpm run test:links passes.

Known gaps not addressed here

Two caveats about filtered reads remain undocumented and are larger than a cross-reference:

  • HubSpot silently drops filters for objects outside the CRM Objects API (lists, marketing objects, communication objects, meeting-links, activity events) — those route away before BuildBuilderFilters is applied in connectors/providers/hubspot/read.go.
  • A filtered HubSpot fullHistory backfill or triggered read goes through ListReader rather than SearchReader, so it bypasses the 10K-record windowing workaround.

🤖 Generated with Claude Code

@mintlify

mintlify Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
Ampersand 🟢 Ready View Preview Sep 14, 2026, 7:19 PM

eberle1080 and others added 2 commits September 14, 2026 12:15
The manifest schema reference had no mention of read filters, so anyone
searching that page for how to filter records found nothing and no
pointer. `fieldFilters` is not a manifest field — it exists only in the
installation config schema — so document it as such rather than as
amp.yaml syntax.

manifest-reference:
- Pointer under the read object table drawing the which-fields vs
  which-records distinction.
- Bullet in the backfill considerations noting the installation config's
  backfill object accepts fieldFilters, which amp.yaml does not.
- New "Field filters" section under Details: JSON example, field table,
  AND semantics, provider support, and object-level vs backfill-scoped
  precedence.

read-actions:
- New "Filter field names" section documenting that fieldName must be the
  provider's API name and that field mappings are not resolved for read
  filters, unlike search actions. Also notes the filter field need not be
  in selectedFields.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@eberle1080
eberle1080 force-pushed the docs/read-field-filters branch from be58bbc to df40844 Compare September 14, 2026 19:18
@eberle1080 eberle1080 changed the title docs: document read field filters in manifest reference [ENG-3818] docs: document read field filters in manifest reference Sep 14, 2026
@linear

linear Bot commented Sep 14, 2026

Copy link
Copy Markdown

ENG-3818

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