Skip to content

Conversation

@vistart
Copy link
Contributor

@vistart vistart commented Apr 26, 2025

The type conversion system of the database backend was refactored, and the type register (TypeRegistry) and converter (TypeConverter) mechanisms were introduced to replace the original TypeMapper and ValueMapper. This improvement improves the flexibility and scalability of type conversion, and supports more complex type mappings and custom converters. At the same time, the type processing logic of the SQLite backend is optimized to make it more in line with the needs of modern database operations.

…sters and converters

The type conversion system of the database backend was refactored, and the type register (TypeRegistry) and converter (TypeConverter) mechanisms were introduced to replace the original TypeMapper and ValueMapper. This improvement improves the flexibility and scalability of type conversion, and supports more complex type mappings and custom converters. At the same time, the type processing logic of the SQLite backend is optimized to make it more in line with the needs of modern database operations.
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
7.4% Duplication on New Code (required ≤ 3%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@codecov
Copy link

codecov bot commented Apr 26, 2025

Codecov Report

Attention: Patch coverage is 67.03448% with 239 lines in your changes missing coverage. Please review.

Project coverage is 75.65%. Comparing base (2419d3b) to head (20eb614).
Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
...ctiverecord/backend/impl/sqlite/type_converters.py 34.89% 87 Missing and 10 partials ⚠️
...ocial/activerecord/backend/basic_type_converter.py 71.73% 49 Missing and 29 partials ⚠️
src/rhosocial/activerecord/backend/base.py 22.50% 31 Missing ⚠️
src/rhosocial/activerecord/backend/dialect.py 85.18% 6 Missing and 6 partials ⚠️
.../rhosocial/activerecord/backend/type_converters.py 86.41% 9 Missing and 2 partials ⚠️
...social/activerecord/backend/impl/sqlite/backend.py 47.36% 9 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #9      +/-   ##
==========================================
- Coverage   77.03%   75.65%   -1.38%     
==========================================
  Files          42       45       +3     
  Lines        4097     4527     +430     
  Branches      698      812     +114     
==========================================
+ Hits         3156     3425     +269     
- Misses        733      853     +120     
- Partials      208      249      +41     
Flag Coverage Δ
python-3.10 75.43% <67.03%> (-1.36%) ⬇️
python-3.11 75.43% <67.03%> (-1.36%) ⬇️
python-3.12 75.43% <67.03%> (-1.36%) ⬇️
python-3.13 75.43% <67.03%> (-1.36%) ⬇️
python-3.8 75.57% <67.03%> (-1.37%) ⬇️
python-3.9 75.41% <67.03%> (-1.36%) ⬇️
unittests 75.63% <67.03%> (-1.38%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vistart vistart merged commit 47b90bc into main Apr 26, 2025
6 of 9 checks passed
@vistart vistart deleted the backend branch April 27, 2025 08:35
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