Skip to content

chore: merge v1.16.3#1204

Merged
hwbrzzl merged 15 commits intomasterfrom
bowen/merge-v1.16.3
Sep 19, 2025
Merged

chore: merge v1.16.3#1204
hwbrzzl merged 15 commits intomasterfrom
bowen/merge-v1.16.3

Conversation

@hwbrzzl
Copy link
Contributor

@hwbrzzl hwbrzzl commented Sep 19, 2025

📑 Description

✅ Checks

  • Added test cases for my code

krishankumar01 and others added 15 commits July 25, 2025 19:59
…not reset when Booting (#1162)

* fix: The configuredServiceProviders, publishes and publishGroups are not reset when Booting

* optimize
…th the Model method (#1166)

* fix: [#738] The Orm Creating event can be triggered when the query with the Model method

* fix tests
* fix: [#762] handle panic when using transaction

* v1.16.2

* optimize

* fix lint
* fix: [#768] facades.DB will panic when migrating a new column

* optimize

* optimize
* fix: [#770] Add a SelectRaw function for the ORM

* fix: [#770] Add a SelectRaw function for the ORM
@hwbrzzl hwbrzzl marked this pull request as ready for review September 19, 2025 08:36
@hwbrzzl hwbrzzl requested a review from a team as a code owner September 19, 2025 08:36
Copilot AI review requested due to automatic review settings September 19, 2025 08:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR merges version 1.16.3, bringing several enhancements to the database ORM functionality including a new SelectRaw method for raw SQL queries, improved transaction error handling with panic recovery, and fixes for missing database columns.

  • Added SelectRaw method to ORM Query interface for raw SQL query support
  • Enhanced transaction methods with panic recovery and proper error handling
  • Fixed database column mapping issues by enabling unsafe mode in sqlx
  • Added comprehensive test coverage for new functionality

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
support/constant.go Updates version from v1.16.0 to v1.16.3
contracts/database/orm/orm.go Adds SelectRaw method to Query interface
database/gorm/query.go Implements SelectRaw functionality and updates select column building
database/gorm/conditions.go Adds Select struct for raw query support
database/orm/orm.go Enhances Transaction method with panic recovery
database/db/db.go Enhances Transaction method with panic recovery
database/db/builder.go Enables unsafe mode in sqlx for missing column handling
mocks/database/orm/Query.go Adds mock implementation for SelectRaw method
errors/errors.go Adds Join function for error combination
tests/query_test.go Adds comprehensive test for SelectRaw functionality
tests/orm_test.go Adds test for transaction panic handling
tests/db_test.go Adds tests for missing columns and transaction panic handling

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@codecov
Copy link

codecov bot commented Sep 19, 2025

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.73%. Comparing base (568074d) to head (9fdcb19).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
errors/errors.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1204      +/-   ##
==========================================
- Coverage   68.73%   68.73%   -0.01%     
==========================================
  Files         232      232              
  Lines       15102    15104       +2     
==========================================
  Hits        10381    10381              
- Misses       4361     4363       +2     
  Partials      360      360              

☔ 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.

@hwbrzzl hwbrzzl merged commit 4b7bb1d into master Sep 19, 2025
12 of 14 checks passed
@hwbrzzl hwbrzzl deleted the bowen/merge-v1.16.3 branch September 19, 2025 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants