Skip to content

fix: support multiple numeric types for t_id in document. - #161

Merged
auula merged 2 commits into
mainfrom
fix-cast-id
Aug 3, 2026
Merged

fix: support multiple numeric types for t_id in document.#161
auula merged 2 commits into
mainfrom
fix-cast-id

Conversation

@auula

@auula auula commented Aug 3, 2026

Copy link
Copy Markdown
Owner

No description provided.

auula added 2 commits August 3, 2026 14:41
json unmarshals numbers as float64 in map[string]any, causing type
assertion failures when checking t_id as uint32. this fix adds support
for float64, int, and string types for t_id parameter, making the api
compatible with javascript/json clients where numbers don't have
explicit integer types.
test cases cover uint32, float64, int, and string types for t_id
parameter, as well as invalid types like bool, slice, and non-numeric
strings.
@deepsource-io

deepsource-io Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

DeepSource Code Review

We reviewed changes in 90613dc...5713b33 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
Shell Aug 3, 2026 6:47a.m. Review ↗
Java Aug 3, 2026 6:47a.m. Review ↗
JavaScript Aug 3, 2026 6:47a.m. Review ↗
Go Aug 3, 2026 6:47a.m. Review ↗
Secrets Aug 3, 2026 6:47a.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

@auula auula changed the title fix: support multiple numeric types for t_id in documents. fix: support multiple numeric types for t_id in document. Aug 3, 2026
@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@auula
auula merged commit 5a6b340 into main Aug 3, 2026
9 checks passed
@auula
auula deleted the fix-cast-id branch August 3, 2026 06:50
auula added a commit that referenced this pull request Aug 3, 2026
* fix: support multiple numeric types for t_id in updaterows.

json unmarshals numbers as float64 in map[string]any, causing type
assertion failures when checking t_id as uint32. this fix adds support
for float64, int, and string types for t_id parameter, making the api
compatible with javascript/json clients where numbers don't have
explicit integer types.

* test: add unit tests for t_id type support in updaterows.

test cases cover uint32, float64, int, and string types for t_id
parameter, as well as invalid types like bool, slice, and non-numeric
strings.

-- amazon krio bot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant