Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Merge branch 'feature/partner-full-text-search' into feature/partner-full-text-search-rollout

Rafi9ed915f31d47
diff --cc apps/web/lib/api/partners/search/providers/resilience.ts
index d64e54d0ae,70c6002a7c..489d2d388c
--- a/apps/web/lib/api/partners/search/providers/resilience.ts
+++ b/apps/web/lib/api/partners/search/providers/resilience.ts
@@@ -51,10 -51,10 +51,10 @@@ export async function withTransientRetr
/**
* Rejects if `operation` has not settled within `timeoutMs`. The operation is
- * not cancelled — `Promise.race` cannot do that — so only pass work that
+ * not cancelled, because `Promise.race` cannot do that, so only pass work that
* settles on its own.
*/
-export async function withDeadline<T>(
+async function withDeadline<T>(
operation: () => Promise<T>,
timeoutMs: number,
message: string,
diff --cc apps/web/scripts/dev/seed-100k-partners.ts
index e067a4abaa,b0358845da..b7a29d9f9a
--- a/apps/web/scripts/dev/seed-100k-partners.ts
+++ b/apps/web/scripts/dev/seed-100k-partners.ts
@@@ -1,13 -1,9 +1,13 @@@
/**
* Bulk-seeds partners for local development and partner-search benchmarking.
*
- * Writes User, Partner, PartnerUser, ProgramEnrollment, PartnerPlatform, and Link
- * rows (every field the search index reads) in atomic chunks of CHUNK_SIZE
- * partners, so 100K partners lands ~400K rows in seconds.
+ * Writes User, Partner, PartnerUser, ProgramEnrollment, PartnerPlatform, Link,
- * and ProgramPartnerTag rows — every field the search index reads — in atomic
++ * and ProgramPartnerTag rows (every field the search index reads) in atomic
+ * chunks of CHUNK_SIZE partners, so 100K partners lands ~500K rows in seconds.
+ *
+ * Statuses, groups, and tags are spread across each partner so the filters have
+ * something to select on: seeding everything as approved and ungrouped makes a
+ * filtered search look correct while matching every row.
*
* Re-running with the same `--seed` collides. `seedFingerprint` is a deterministic
* hash of the program ID and `--seed`, so identical arguments regenerate identical