crates/db/Cargo.toml declares thiserror but nothing in db/src uses it — the repositories (audit, vocab, authority) all return raw sqlx::Error. It's been an unused dependency since the foundation (Plan 0).
Either drop it, or land the db::Error type it was presumably reserved for (a typed error enum at the db boundary, wrapping sqlx::Error + decode/not-found cases). Decide when the repositories need richer error semantics than raw sqlx::Error.
Source: Plan 2 (vocab/authorities) final review — pre-existing, non-blocking.
`crates/db/Cargo.toml` declares `thiserror` but nothing in `db/src` uses it — the repositories (`audit`, `vocab`, `authority`) all return raw `sqlx::Error`. It's been an unused dependency since the foundation (Plan 0).
Either drop it, or land the `db::Error` type it was presumably reserved for (a typed error enum at the db boundary, wrapping `sqlx::Error` + decode/not-found cases). Decide when the repositories need richer error semantics than raw `sqlx::Error`.
_Source: Plan 2 (vocab/authorities) final review — pre-existing, non-blocking._
Closing as obsolete: thiserror is no longer unused in the db crate. crates/db/src/catalog.rs derives thiserror::Error for FieldError and VisibilityError (added during the admin-CRUD work, after this issue was filed). The dependency is now legitimately used, so there's nothing to remove. If a unified db::Error boundary type is wanted later, that's a separate, larger refactor.
Closing as obsolete: `thiserror` is no longer unused in the `db` crate. `crates/db/src/catalog.rs` derives `thiserror::Error` for `FieldError` and `VisibilityError` (added during the admin-CRUD work, after this issue was filed). The dependency is now legitimately used, so there's nothing to remove. If a unified `db::Error` boundary type is wanted later, that's a separate, larger refactor.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
crates/db/Cargo.tomldeclaresthiserrorbut nothing indb/srcuses it — the repositories (audit,vocab,authority) all return rawsqlx::Error. It's been an unused dependency since the foundation (Plan 0).Either drop it, or land the
db::Errortype it was presumably reserved for (a typed error enum at the db boundary, wrappingsqlx::Error+ decode/not-found cases). Decide when the repositories need richer error semantics than rawsqlx::Error.Source: Plan 2 (vocab/authorities) final review — pre-existing, non-blocking.
Closing as obsolete:
thiserroris no longer unused in thedbcrate.crates/db/src/catalog.rsderivesthiserror::ErrorforFieldErrorandVisibilityError(added during the admin-CRUD work, after this issue was filed). The dependency is now legitimately used, so there's nothing to remove. If a unifieddb::Errorboundary type is wanted later, that's a separate, larger refactor.