Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ on:
pull_request:

jobs:
# ── Guard: build artifacts must never be committed ────────────────────────
# Scans the git index for dist/ files and *.tsbuildinfo files.
# These are machine-generated outputs; committing them causes large diffs,
# guaranteed merge conflicts, and the risk of deploying a stale build.
no-build-artifacts:
# βž” Guard: build artifacts must never be committed β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”In the git index for dist/ files and *.tsbuildinfo files.
{{ no-build-artifacts:
name: No build artifacts in git
runs-on: ubuntu-latest
steps:
Expand All @@ -32,7 +29,7 @@ jobs:
fi
echo "βœ“ No build artifacts tracked."

# ── Main validation pipeline ──────────────────────────────────────────────
# βž” Main validation pipeline β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”X
validate:
runs-on: ubuntu-latest

Expand All @@ -46,7 +43,7 @@ jobs:
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-cmd pgisready
--health-interval 10s
--health-timeout 5s
--health-retries 10
Expand Down Expand Up @@ -90,7 +87,7 @@ jobs:
# queryRunner.connection) can't see uncommitted work from earlier
# migrations and breaks atomic rollback. See #1211.
- name: Check migrations use only the passed queryRunner
run: pnpm run migrations:check
run: pnpm run migration:check

- name: Run migrations
run: pnpm run migration:run
Expand Down
5 changes: 4 additions & 1 deletion src/analytics/segment/segment-destination-config.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ import {
Column,
CreateDateColumn,
UpdateDateColumn,
Index,
} from 'typeorm';

@Entity('segment_destination_configs')
Entity('segment_destination_configs')
@Index('IDX_SEG_DEST_CONFIG_ENABLED_UPDATED_AT', ['enabled', 'updatedAt'])
@Index('IDX_SEG_DEST_CONFIG_CREATED_AT', ['createdAt'])
export class SegmentDestinationConfig {
@PrimaryGeneratedColumn('uuid')
id: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import { MigrationInterface, QueryRunner } from 'typeorm';export class AddSegmentDestinationConfigIndexes1715000000000 implements MigrationInterface {async up(q:QueryRunner){await q.query('CREATE INDEX "IDX_SEG_DEST_CONFIG_ENABLED_UPDATED_AT" ON "segment_destination_configs" ("enabled", "updatedAt")');await q.query('CREATE INDEX "IDX_SEG_DEST_CONFIG_CREATED_AT" ON "segment_destination_configs" ("createdAt")');}async down(q:QueryRunner){await q.query('DROP INDEX "IDX_SEG_DEST_CONFIG_CREATED_AT"');await q.query('DROP INDEX "IDX_SEG_DEST_CONFIG_ENABLED_UPDATED_AT"');}}