-
-
Notifications
You must be signed in to change notification settings - Fork 180
release:v0.5.1 #655
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
release:v0.5.1 #655
Changes from all commits
c2be0a3
c65cf16
72c6341
ae1e422
085c86b
319d18b
cba22fc
63d8ed5
65df5f4
2dd5043
4ae3cc9
b57da8e
fb045dc
3cdec3f
a79c351
25f0f38
885a772
2976216
bad9e28
bf2ada2
6643eb4
8fe1b7f
97af7ee
0f05b31
b6747e6
9bd1cc5
8b11e43
ed7d39e
43e8f84
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 |
|---|---|---|
|
|
@@ -89,3 +89,5 @@ docs-site/node_modules/ | |
|
|
||
| # local scratch | ||
| tmp/ | ||
| .trae/ | ||
| .sisyphus | ||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1 +1 @@ | ||||||||||
| 0.4.3 | ||||||||||
| 0.5.0 | ||||||||||
|
Contributor
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. 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. VERSION file shows Prompt To Fix With AIThis is a comment left during a code review.
Path: VERSION
Line: 1:1
Comment:
VERSION file shows `0.5.0` but PR title says `v0.5.1` - check which version is correct and ensure consistency
How can I resolve this? If you propose a fix, please make it concise.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. Version file shows
Suggested change
Prompt To Fix With AIThis is a comment left during a code review.
Path: VERSION
Line: 1:1
Comment:
Version file shows `0.5.0` but PR title indicates `v0.5.1`
```suggestion
0.5.1
```
How can I resolve this? If you propose a fix, please make it concise.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. Version should be
Suggested change
Prompt To Fix With AIThis is a comment left during a code review.
Path: VERSION
Line: 1:1
Comment:
Version should be `0.5.1` to match PR title
```suggestion
0.5.1
```
How can I resolve this? If you propose a fix, please make it concise. |
||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| CREATE TABLE IF NOT EXISTS "provider_endpoint_probe_logs" ( | ||
| "id" serial PRIMARY KEY NOT NULL, | ||
| "endpoint_id" integer NOT NULL, | ||
| "source" varchar(20) DEFAULT 'scheduled' NOT NULL, | ||
| "ok" boolean NOT NULL, | ||
| "status_code" integer, | ||
| "latency_ms" integer, | ||
| "error_type" varchar(64), | ||
| "error_message" text, | ||
| "created_at" timestamp with time zone DEFAULT now() | ||
| ); | ||
| --> statement-breakpoint | ||
| CREATE TABLE IF NOT EXISTS "provider_endpoints" ( | ||
| "id" serial PRIMARY KEY NOT NULL, | ||
| "vendor_id" integer NOT NULL, | ||
| "provider_type" varchar(20) DEFAULT 'claude' NOT NULL, | ||
| "url" text NOT NULL, | ||
| "label" varchar(200), | ||
| "sort_order" integer DEFAULT 0 NOT NULL, | ||
| "is_enabled" boolean DEFAULT true NOT NULL, | ||
| "last_probed_at" timestamp with time zone, | ||
| "last_probe_ok" boolean, | ||
| "last_probe_status_code" integer, | ||
| "last_probe_latency_ms" integer, | ||
| "last_probe_error_type" varchar(64), | ||
| "last_probe_error_message" text, | ||
| "created_at" timestamp with time zone DEFAULT now(), | ||
| "updated_at" timestamp with time zone DEFAULT now(), | ||
| "deleted_at" timestamp with time zone | ||
| ); | ||
| --> statement-breakpoint | ||
| CREATE TABLE IF NOT EXISTS "provider_vendors" ( | ||
| "id" serial PRIMARY KEY NOT NULL, | ||
| "website_domain" varchar(255) NOT NULL, | ||
| "display_name" varchar(200), | ||
| "website_url" text, | ||
| "favicon_url" text, | ||
| "created_at" timestamp with time zone DEFAULT now(), | ||
| "updated_at" timestamp with time zone DEFAULT now() | ||
| ); | ||
| --> statement-breakpoint | ||
| ALTER TABLE "providers" ADD COLUMN IF NOT EXISTS "provider_vendor_id" integer;--> statement-breakpoint | ||
|
Contributor
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.
为了确保迁移的安全性,建议分步操作:
|
||
| DO $$ BEGIN | ||
| ALTER TABLE "provider_endpoint_probe_logs" ADD CONSTRAINT "provider_endpoint_probe_logs_endpoint_id_provider_endpoints_id_fk" FOREIGN KEY ("endpoint_id") REFERENCES "public"."provider_endpoints"("id") ON DELETE cascade ON UPDATE no action; | ||
| EXCEPTION | ||
| WHEN duplicate_object THEN NULL; | ||
| END $$;--> statement-breakpoint | ||
| DO $$ BEGIN | ||
| ALTER TABLE "provider_endpoints" ADD CONSTRAINT "provider_endpoints_vendor_id_provider_vendors_id_fk" FOREIGN KEY ("vendor_id") REFERENCES "public"."provider_vendors"("id") ON DELETE cascade ON UPDATE no action; | ||
| EXCEPTION | ||
| WHEN duplicate_object THEN NULL; | ||
| END $$;--> statement-breakpoint | ||
| CREATE INDEX IF NOT EXISTS "idx_provider_endpoint_probe_logs_endpoint_created_at" ON "provider_endpoint_probe_logs" USING btree ("endpoint_id","created_at" DESC NULLS LAST);--> statement-breakpoint | ||
| CREATE INDEX IF NOT EXISTS "idx_provider_endpoint_probe_logs_created_at" ON "provider_endpoint_probe_logs" USING btree ("created_at");--> statement-breakpoint | ||
| CREATE UNIQUE INDEX IF NOT EXISTS "uniq_provider_endpoints_vendor_type_url" ON "provider_endpoints" USING btree ("vendor_id","provider_type","url");--> statement-breakpoint | ||
| CREATE INDEX IF NOT EXISTS "idx_provider_endpoints_vendor_type" ON "provider_endpoints" USING btree ("vendor_id","provider_type") WHERE "provider_endpoints"."deleted_at" IS NULL;--> statement-breakpoint | ||
| CREATE INDEX IF NOT EXISTS "idx_provider_endpoints_enabled" ON "provider_endpoints" USING btree ("is_enabled","vendor_id","provider_type") WHERE "provider_endpoints"."deleted_at" IS NULL;--> statement-breakpoint | ||
| CREATE INDEX IF NOT EXISTS "idx_provider_endpoints_created_at" ON "provider_endpoints" USING btree ("created_at");--> statement-breakpoint | ||
| CREATE INDEX IF NOT EXISTS "idx_provider_endpoints_deleted_at" ON "provider_endpoints" USING btree ("deleted_at");--> statement-breakpoint | ||
| CREATE UNIQUE INDEX IF NOT EXISTS "uniq_provider_vendors_website_domain" ON "provider_vendors" USING btree ("website_domain");--> statement-breakpoint | ||
| CREATE INDEX IF NOT EXISTS "idx_provider_vendors_created_at" ON "provider_vendors" USING btree ("created_at");--> statement-breakpoint | ||
| DO $$ BEGIN | ||
| ALTER TABLE "providers" ADD CONSTRAINT "providers_provider_vendor_id_provider_vendors_id_fk" FOREIGN KEY ("provider_vendor_id") REFERENCES "public"."provider_vendors"("id") ON DELETE restrict ON UPDATE no action; | ||
| EXCEPTION | ||
| WHEN duplicate_object THEN NULL; | ||
| END $$;--> statement-breakpoint | ||
| CREATE INDEX IF NOT EXISTS "idx_providers_vendor_type" ON "providers" USING btree ("provider_vendor_id","provider_type") WHERE "providers"."deleted_at" IS NULL; | ||
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.
PROBE_INTERVAL_MS和PROBE_TIMEOUT_MS这两个变量似乎已被新的ENDPOINT_PROBE_*变量所取代。如果它们已不再使用,建议将其移除以避免配置混淆。如果它们仍用于其他目的,最好添加注释说明其具体用途。