Skip to content

Conversation

@lukemelia
Copy link
Contributor

No description provided.

@lukemelia lukemelia changed the base branch from main to cs-10100-add-explicit-store-read-type-for-file-meta-filedef January 27, 2026 23:47
@lukemelia lukemelia force-pushed the cs-10110-add-search-query-support-for-file-meta-entries-plan branch from 9dac7ed to a781e85 Compare January 27, 2026 23:49
@github-actions
Copy link

Preview deployments

@lukemelia lukemelia force-pushed the cs-10110-add-search-query-support-for-file-meta-entries-plan branch from a781e85 to a547883 Compare January 27, 2026 23:55
@github-actions
Copy link

github-actions bot commented Jan 28, 2026

Host Test Results

    1 files  ±0      1 suites  ±0   1h 43m 19s ⏱️ + 1m 36s
1 931 tests +6  1 914 ✅ +6  17 💤 ±0  0 ❌ ±0 
1 946 runs  +6  1 929 ✅ +6  17 💤 ±0  0 ❌ ±0 

Results for commit 1cc10bf. ± Comparison against base commit afa2175.

♻️ This comment has been updated with latest results.

@lukemelia lukemelia force-pushed the cs-10110-add-search-query-support-for-file-meta-entries-plan branch from e4b3f93 to e2ee565 Compare January 28, 2026 16:26
@lukemelia lukemelia changed the base branch from cs-10100-add-explicit-store-read-type-for-file-meta-filedef to main January 28, 2026 16:27
lukemelia and others added 5 commits January 28, 2026 17:08
The client-side search pipeline (SearchResource) was built exclusively
for card resources, causing "not a card collection document" errors when
queries returned file-meta results. This broadens the pipeline to accept
and correctly process file-meta resources alongside cards.

- Broaden generic type constraints from `<T extends CardDef>` to
  `<T extends CardDef | FileDef>` across SearchResource, StoreSearchResource,
  GetSearchResourceFunc, and getSearchResource
- Replace isCardCollectionDocument with isLinkableCollectionDocument
  to accept file-meta collection responses
- Route file-meta resources through store.get(id, { type: 'file-meta' })
  instead of store.add({ data }) which only handles cards
- Use type-aware store.peek with { type: 'file-meta' } for retrieval
- Fix wireUpNewReference to check file-meta map before falling back to
  getCardInstance, eliminating spurious 415 errors for non-card URLs
- Downgrade noisy query-field-support cache-hit log from info to debug
- Add client-side SearchResource tests for file-meta search and live
  file-meta search

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@lukemelia lukemelia force-pushed the cs-10110-add-search-query-support-for-file-meta-entries-plan branch from fa79768 to 4c7ee31 Compare January 28, 2026 22:10
@lukemelia lukemelia requested review from a team and ef4 January 28, 2026 23:28
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.

2 participants