Skip to content

feat(errors): Rework errors management from the ground up #159

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

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft
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
1 change: 1 addition & 0 deletions api/src/db/pipelines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ pub fn is_duplicate_pipeline_error(err: &sqlx::Error) -> bool {
match err {
sqlx::Error::Database(ref db_err) => {
// 23505 is PostgreSQL's unique constraint violation code
// Check for unique constraint violation using SqlState constant
// Check for our unique constraint name defined
// in the migrations/20250605064229_add_unique_constraint_pipelines_source_destination.sql file
db_err.code().as_deref() == Some("23505")
Expand Down
1 change: 1 addition & 0 deletions etl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ uuid = { workspace = true, features = ["v4"] }
[dev-dependencies]
postgres = { workspace = true, features = ["test-utils", "tokio"] }
telemetry = { workspace = true }
insta = { workspace = true }

clap = { workspace = true, default-features = true, features = [
"std",
Expand Down
Loading