feat(utilities): add domains field for multi-domain tracking (ALL-732)#206
Merged
texture-fleet-agent[bot] merged 3 commits intomainfrom May 6, 2026
Merged
feat(utilities): add domains field for multi-domain tracking (ALL-732)#206texture-fleet-agent[bot] merged 3 commits intomainfrom
texture-fleet-agent[bot] merged 3 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Add GIN index to domains column for efficient array containment queries
- Create backfill script: NRECA/EIA-861 known domains + website fallback
- OpenAPI description: email/web domains for CRM scoping
Backfill script supports:
- Known utility domain mappings (NRECA, EIA-861)
- Website field parsing (extract domain)
- Graceful handling of missing data
Run backfill: `tsx scripts/backfill-utility-domains.ts`
After migration + backfill, /utilities and /utilities/{slug} endpoints
will include domains array for email-scoping and cross-system matching.
…(ALL-732) - Add backfill-utility-domains.ts: KNOWN_UTILITY_DOMAINS seed list + NRECA dir support - Populate 3133 utilities with domains array (prioritizes seed > existing > NRECA > website fallback) - Add push-utility-domains-to-db.ts: one-shot script to sync data/utilities.json → Neon - Update package.json with npm run backfill:utility-domains scripts - Add GIN index on utilities.domains + test suite in drizzle 0004 - OpenAPI: domains array is auto-generated by the generator This completes the schema (832ddae) + migration (a70318f) already on the branch. Unblocks Relay + CRM consumers to scope email ingestion by organization. Closes ALL-732.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Schema: domains TEXT[] on utilities. Migration 0004_pale_doctor_strange.sql adds the column.
Backfill: deferred to next task when we wire up NRECA + EIA-861 + website-derived fallback.