-
Notifications
You must be signed in to change notification settings - Fork 1
Add: GeoJSON + email support #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -18,4 +18,4 @@ jobs: | |||||
| - run: bun install --frozen-lockfile | ||||||
| - run: bun run lint | ||||||
| - run: bun run typecheck | ||||||
| - run: bun run test | ||||||
| # - run: bun run test | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Re-enable the test step in CI. Commenting this out lets PRs merge with only lint/typecheck, so regressions in the new email/GeoJSON paths can slip through untested. If tests currently need extra setup, keep them in CI behind the right env/config instead of disabling them wholesale. 💡 Suggested workflow fix- # - run: bun run test
+ - run: bun run test📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| /* | ||
| Warnings: | ||
|
|
||
| - You are about to drop the column `sourceId` on the `Alert` table. All the data in the column will be lost. | ||
|
|
||
| */ | ||
| -- DropForeignKey | ||
| ALTER TABLE "Alert" DROP CONSTRAINT "Alert_sourceId_fkey"; | ||
|
|
||
| -- DropIndex | ||
| DROP INDEX "Alert_sourceId_idx"; | ||
|
|
||
| -- AlterTable | ||
| ALTER TABLE "Alert" DROP COLUMN "sourceId"; | ||
|
Comment on lines
+1
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Backfill or guard existing This migration permanently deletes alert-source provenance. If any deployed environment still has non-null 🛑 Example preflight guard if a backfill is not ready yetDO $$
BEGIN
IF EXISTS (SELECT 1 FROM "Alert" WHERE "sourceId" IS NOT NULL) THEN
RAISE EXCEPTION 'Backfill Alert.sourceId before applying this migration';
END IF;
END $$;🤖 Prompt for AI Agents |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't pair Gmail SMTP with an unrelated default
SMTP_FROM.With
EMAIL_PROVIDER=smtp, this becomes the default copy/paste path, andsmtp.gmail.complusSMTP_FROM=noreply@clear-platform.orgis a bad combination for most developers. Gmail usually requires the sender to match a verified mailbox or alias, so this example will often fail until they notice the mismatch.📧 Safer example
📝 Committable suggestion
🧰 Tools
🪛 dotenv-linter (4.0.0)
[warning] 21-21: [UnorderedKey] The SMTP_PASS key should go before the SMTP_PORT key
(UnorderedKey)
[warning] 22-22: [UnorderedKey] The SMTP_FROM key should go before the SMTP_HOST key
(UnorderedKey)
🤖 Prompt for AI Agents