Summary
PR #932 removed search_query.source, whose "curated" value was used to classify a data source as page-collection. classifyCollectionSource now keys off search-query linkage (searchQueryId null = page-collection, else data-collection). Page-collection sources write searchQueryId: null so they still classify correctly, but sources collected via a curated listing query (which used to carry source: "curated") now have a searchQueryId and therefore badge as data-collection instead of page-collection. Decide the intended behavior and make it explicit.
Scope
- In scope:
- Decide whether curated-listing-query sources should present as page-collection or data-collection.
- If page-collection: reintroduce an explicit marker (e.g. a boolean/flag on the data source or a dedicated linkage) instead of the removed
source value; otherwise formally retire the curated-listing-query path.
- Update
classifyCollectionSource / buildCollectionSourceDataSourceWhere and the admin badges/filters accordingly.
- Out of scope: reintroducing
SearchQuerySource.
Acceptance criteria
Notes
Files: apps/mediapulse/agent-data-api/src/services/data-collection-curated-query.ts, apps/mediapulse/agent-data-api/src/routes/data-collection-curated-listing-query.ts, apps/mediapulse/domain-api/src/resources/data-sources/collection-source.ts. Introduced by #932.
Summary
PR #932 removed
search_query.source, whose"curated"value was used to classify a data source as page-collection.classifyCollectionSourcenow keys off search-query linkage (searchQueryId null= page-collection, else data-collection). Page-collection sources writesearchQueryId: nullso they still classify correctly, but sources collected via a curated listing query (which used to carrysource: "curated") now have asearchQueryIdand therefore badge as data-collection instead of page-collection. Decide the intended behavior and make it explicit.Scope
sourcevalue; otherwise formally retire the curated-listing-query path.classifyCollectionSource/buildCollectionSourceDataSourceWhereand the admin badges/filters accordingly.SearchQuerySource.Acceptance criteria
Notes
Files:
apps/mediapulse/agent-data-api/src/services/data-collection-curated-query.ts,apps/mediapulse/agent-data-api/src/routes/data-collection-curated-listing-query.ts,apps/mediapulse/domain-api/src/resources/data-sources/collection-source.ts. Introduced by #932.