Skip to content
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

refactor: common-exception crate should be independent of meta-types #14275

Merged

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented Jan 9, 2024

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

refactor: common-exception crate should be independent of meta-types

The databend-common-exception crate, which is a general-purpose
library, should not have a dependency on the business-specific
databend-common-meta-types crate.

With this commit, we've relocated the conversion logic for transforming
Meta** errors into ErrorCode. These conversions are now handled
within the meta-service related crates: databend-common-meta-types and
databend-common-sto-error.

Changelog

  • Improvement

Related Issues


This change is Reviewable

The `databend-common-exception` crate, which is a general-purpose
library, should not have a dependency on the business-specific
`databend-common-meta-types` crate.

With this commit, we've relocated the conversion logic for transforming
`Meta**` errors into `ErrorCode`. These conversions are now handled
within the meta-service related crates: `databend-common-meta-types` and
`databend-common-sto-error`.
@github-actions github-actions bot added the pr-refactor this PR changes the code base without new features or bugfix label Jan 9, 2024
@drmingdrmer drmingdrmer marked this pull request as ready for review January 9, 2024 03:14
@drmingdrmer drmingdrmer enabled auto-merge January 9, 2024 03:32
@drmingdrmer drmingdrmer added this pull request to the merge queue Jan 9, 2024
@BohuTANG BohuTANG removed this pull request from the merge queue due to a manual request Jan 9, 2024
@BohuTANG BohuTANG merged commit 75622f3 into databendlabs:main Jan 9, 2024
75 checks passed
@drmingdrmer drmingdrmer deleted the 29-rm-base-depends-on-exception branch January 9, 2024 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-refactor this PR changes the code base without new features or bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants