Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: DeepakSPemmaraju/documentdb

Tags

v0.105-0

Toggle v0.105-0's commit message
Merged PR 1713127: Provide the correct codeName on error and codegen …

…for error codes and mapping

### Does this PR have any customer impact?

### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)

### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)

### Are you introducing any new config? If yes, do you have tests with and without them being set?

### ChangeLog (Refer [Template](../oss/CHANGELOG.md))

### Description

Added code generation to create all error codes off of shared csv definition files as well as the means to map an i64 to an error code. Also, if we have a known error code, fetch the proper error string, if exists, or None

----
#### AI description  (iteration 1)
#### PR Classification
Bug fix to correctly convert error codes to text strings.

#### PR Summary
This pull request fixes the misassignment of error code and message, ensuring that error codes are properly converted to their text representation.
- `src/responses/error.rs`: Reordered parameters in the `CommandError::new` call to swap the error code and message.
- `src/responses/pg.rs`: Updated error handling to use `ErrorCode::from_i64` for converting error codes to text and added a dependency on `num_traits::FromPrimitive`.
- `src/error.rs`: Added the `IndexNotFound` error variant with corresponding mapping in the `FromPrimitive` implementation.
- `tests/test_search_tests.rs`: Introduced a test to validate that a text query fails with the expected "text index required for $text query" error message.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->

Related work items: #4293767

v0.104-0

Toggle v0.104-0's commit message
creating tag for 104 release

v0.103-0

Toggle v0.103-0's commit message
Release version 0.103-0

v0.102-0

Toggle v0.102-0's commit message
v0.102-0 release

v0.101-0

Toggle v0.101-0's commit message
DocumentDB 0.101-0 Release

see change log for details:
https://github.com/microsoft/documentdb/blob/main/CHANGELOG.md

v0.100-0

Toggle v0.100-0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Editing ReadMe to remove catalog schema reference (documentdb#12)