Skip to content

feat: add deferrable support to exclusion decorator to mirror unique and index decorators - #11802

Merged
gioboa merged 9 commits into
typeorm:masterfrom
oGAD31:defer-support-for-exclusion
Jan 11, 2026
Merged

gioboa merged 9 commits into
typeorm:masterfrom
oGAD31:defer-support-for-exclusion

Conversation

@oGAD31

@oGAD31 oGAD31 commented Nov 24, 2025 •

Copy link
Copy Markdown
Contributor

User description

Add deferrable support to @exclusion decorator (mirror @unique & @Index), as described in #11793

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • This pull request links relevant issues as Fixes #00000
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 PR contains tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Type Safety Issue

The parameter expressionOrOptions can be either a string or ExclusionOptions, but the type guard only checks if it's a string. If an invalid type is passed, it could be assigned to expression without validation, potentially causing runtime errors.

    expressionOrOptions?: string | ExclusionOptions,
    maybeOptions?: ExclusionOptions,
): ClassDecorator & PropertyDecorator {
    const hasName = typeof expressionOrOptions === "string"

    const name = hasName ? nameOrExpression : undefined
    const expression = hasName ? expressionOrOptions : nameOrExpression
    const options = hasName ? maybeOptions : expressionOrOptions
Missing Return Statement

The map function in the exclusions SQL generation doesn't have an explicit return statement. While the constraint variable is built, it's not being returned from the map callback, which would result in undefined values in the array.

    let constraint = `CONSTRAINT "${exclusionName}" EXCLUDE ${exclusion.expression}`
    if (exclusion.deferrable)
        constraint += ` DEFERRABLE ${exclusion.deferrable}`
    return constraint
})

@oGAD31

oGAD31 commented Nov 24, 2025

Copy link
Copy Markdown
Contributor Author

@G0maa FYI :)

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 24, 2025 •

Copy link
Copy Markdown

PR Code Suggestions ✨

Latest suggestions up to cb1baac

CategorySuggestion                                                                                                                                    Impact
Security
Validate deferrable constraint values

Validate the exclusion.deferrable value against a whitelist of allowed
PostgreSQL values ('INITIALLY DEFERRED', 'INITIALLY IMMEDIATE') before using it
in the SQL query to prevent errors and potential security issues.

src/driver/postgres/PostgresQueryRunner.ts [4187-4190]

 let constraint = `CONSTRAINT "${exclusionName}" EXCLUDE ${exclusion.expression}`
-if (exclusion.deferrable)
+if (exclusion.deferrable) {
+    const validDeferrableValues = ['INITIALLY DEFERRED', 'INITIALLY IMMEDIATE']
+    if (!validDeferrableValues.includes(exclusion.deferrable)) {
+        throw new TypeORMError(`Invalid deferrable value: ${exclusion.deferrable}`)
+    }
     constraint += ` DEFERRABLE ${exclusion.deferrable}`
+}
 return constraint
  • Apply / Chat
Suggestion importance[1-10]: 8

__

Why: The suggestion correctly identifies that exclusion.deferrable is of type string and is directly concatenated into an SQL query, which could lead to SQL syntax errors or a potential SQL injection vulnerability. Adding validation improves both the security and robustness of the code.

Medium
  • More

Previous suggestions

Suggestions up to commit 30fe0fc
CategorySuggestion                                                                                                                                    Impact
Security
Validate deferrable value before SQL concatenation

Validate the exclusion.deferrable value against an allow-list (e.g., 'INITIALLY
DEFERRED', 'INITIALLY IMMEDIATE') before using it in a SQL query to prevent
potential SQL injection.

src/driver/postgres/PostgresQueryRunner.ts [4187-4190]

 let constraint = `CONSTRAINT "${exclusionName}" EXCLUDE ${exclusion.expression}`
-if (exclusion.deferrable)
+if (exclusion.deferrable) {
+    const allowedValues = ['INITIALLY DEFERRED', 'INITIALLY IMMEDIATE']
+    if (!allowedValues.includes(exclusion.deferrable)) {
+        throw new TypeORMError(`Invalid deferrable value: ${exclusion.deferrable}`)
+    }
     constraint += ` DEFERRABLE ${exclusion.deferrable}`
+}
 return constraint
Suggestion importance[1-10]: 8

__

Why: The suggestion correctly identifies a potential SQL injection vulnerability where the exclusion.deferrable string is concatenated into a query without validation. While the decorator path uses a strict type, manual creation via TableExclusion uses a plain string, making this a valid security concern.

Medium
Suggestions up to commit 1a043f9
CategorySuggestion                                                                                                                                    Impact
Possible issue
Validate deferrable constraint values

Validate the value of the deferrable property for an exclusion constraint before
using it in a SQL query to ensure it is either 'INITIALLY DEFERRED' or
'INITIALLY IMMEDIATE'.

src/driver/postgres/PostgresQueryRunner.ts [4117-4120]

 let constraint = `CONSTRAINT "${exclusionName}" EXCLUDE ${exclusion.expression}`
-if (exclusion.deferrable)
+if (exclusion.deferrable) {
+    const validDeferrable = ['INITIALLY DEFERRED', 'INITIALLY IMMEDIATE']
+    if (!validDeferrable.includes(exclusion.deferrable)) {
+        throw new TypeORMError(`Invalid deferrable value: ${exclusion.deferrable}. Must be 'INITIALLY DEFERRED' or 'INITIALLY IMMEDIATE'`)
+    }
     constraint += ` DEFERRABLE ${exclusion.deferrable}`
+}
 return constraint
Suggestion importance[1-10]: 6

__

Why: The suggestion correctly points out that the deferrable property, being a string, could receive invalid values, leading to runtime SQL errors. Adding validation improves robustness and provides clearer error messages.

Low
Suggestions up to commit feef102
CategorySuggestion                                                                                                                                    Impact
Security
Validate deferrable value before SQL concatenation

Validate the exclusion.deferrable value against a list of allowed options before
concatenating it into the SQL query to prevent potential SQL injection.

src/driver/postgres/PostgresQueryRunner.ts [4117-4120]

 let constraint = `CONSTRAINT "${exclusionName}" EXCLUDE ${exclusion.expression}`
-if (exclusion.deferrable)
+if (exclusion.deferrable) {
+    // Validate deferrable value against allowed options
+    const validDeferrable = ['INITIALLY DEFERRED', 'INITIALLY IMMEDIATE']
+    if (!validDeferrable.includes(exclusion.deferrable)) {
+        throw new TypeORMError(`Invalid deferrable value: ${exclusion.deferrable}`)
+    }
     constraint += ` DEFERRABLE ${exclusion.deferrable}`
+}
 return constraint
Suggestion importance[1-10]: 8

__

Why: The suggestion correctly identifies a potential SQL injection vulnerability where the exclusion.deferrable value is concatenated directly into a query. While the type system provides some safety, validating this user-provided value against a whitelist is a robust security practice.

Medium
Suggestions up to commit 0eba2d3
CategorySuggestion                                                                                                                                    Impact
Possible issue
Validate deferrable constraint values

Add runtime validation for the deferrable property to ensure it is either
'INITIALLY DEFERRED' or 'INITIALLY IMMEDIATE', preventing potential SQL syntax
errors.

src/driver/postgres/PostgresQueryRunner.ts [4117-4120]

 let constraint = `CONSTRAINT "${exclusionName}" EXCLUDE ${exclusion.expression}`
-if (exclusion.deferrable)
+if (exclusion.deferrable) {
+    const validDeferrable = ['INITIALLY DEFERRED', 'INITIALLY IMMEDIATE']
+    if (!validDeferrable.includes(exclusion.deferrable)) {
+        throw new TypeORMError(`Invalid deferrable value: ${exclusion.deferrable}. Must be 'INITIALLY DEFERRED' or 'INITIALLY IMMEDIATE'`)
+    }
     constraint += ` DEFERRABLE ${exclusion.deferrable}`
+}
 return constraint
Suggestion importance[1-10]: 6

__

Why: The suggestion correctly points out a missing validation for the deferrable property, which could prevent runtime SQL errors if an invalid string is passed. While TypeScript types provide some safety, this runtime check adds a layer of defense, especially for users who might not be using TypeScript.

Low
Suggestions
CategorySuggestion                                                                                                                                    Impact
Security
Validate deferrable value before SQL concatenation

To prevent potential SQL injection, validate the exclusion.deferrable value
against an allowlist of valid options ('INITIALLY DEFERRED', 'INITIALLY
IMMEDIATE') before concatenating it into the SQL query.

src/driver/postgres/PostgresQueryRunner.ts [4117-4120]

 let constraint = `CONSTRAINT "${exclusionName}" EXCLUDE ${exclusion.expression}`
-if (exclusion.deferrable)
+if (exclusion.deferrable) {
+    const validDeferrable = ['INITIALLY DEFERRED', 'INITIALLY IMMEDIATE']
+    if (!validDeferrable.includes(exclusion.deferrable)) {
+        throw new TypeORMError(`Invalid deferrable value: ${exclusion.deferrable}`)
+    }
     constraint += ` DEFERRABLE ${exclusion.deferrable}`
+}
 return constraint
Suggestion importance[1-10]: 8

__

Why: The suggestion correctly identifies a potential SQL injection vulnerability by directly concatenating exclusion.deferrable into a query string and proposes a robust validation, which is a critical security best practice.

Medium

@G0maa G0maa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What happens if an @Exclusion changes across migrations? (i.e. does it get dropped?)

@OSA413

OSA413 commented Nov 25, 2025

Copy link
Copy Markdown
Collaborator

And yeah, what about migrations? What will happen when I change deferrable type or remove it?

@pkg-pr-new

pkg-pr-new Bot commented Nov 25, 2025 •

Copy link
Copy Markdown
  • typeorm-sql-js-example

    npm i https://pkg.pr.new/typeorm/typeorm@11802
    

commit: cb1baac

@oGAD31

oGAD31 commented Nov 25, 2025

Copy link
Copy Markdown
Contributor Author

Regarding migrations: as i was working on the feature I noticed that changing ONLY the deferrable value (or removing it) after the exclusion was already created does not change it in the db. I tested it on the @Unique as well and got the same result so i figured fixing this is outside the scope of this issue.

@OSA413 @G0maa

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Code Suggestions ✨

CategorySuggestion                                                                                                                                    Impact
Security
Validate deferrable value before SQL concatenation

To prevent potential SQL injection, validate the exclusion.deferrable value
against an allowlist of valid options ('INITIALLY DEFERRED', 'INITIALLY
IMMEDIATE') before concatenating it into the SQL query.

src/driver/postgres/PostgresQueryRunner.ts [4117-4120]

 let constraint = `CONSTRAINT "${exclusionName}" EXCLUDE ${exclusion.expression}`
-if (exclusion.deferrable)
+if (exclusion.deferrable) {
+    const validDeferrable = ['INITIALLY DEFERRED', 'INITIALLY IMMEDIATE']
+    if (!validDeferrable.includes(exclusion.deferrable)) {
+        throw new TypeORMError(`Invalid deferrable value: ${exclusion.deferrable}`)
+    }
     constraint += ` DEFERRABLE ${exclusion.deferrable}`
+}
 return constraint
  • Apply / Chat
Suggestion importance[1-10]: 8

__

Why: The suggestion correctly identifies a potential SQL injection vulnerability by directly concatenating exclusion.deferrable into a query string and proposes a robust validation, which is a critical security best practice.

Medium
  • More

@OSA413

OSA413 commented Nov 27, 2025

Copy link
Copy Markdown
Collaborator

In order to properly fix the tests, it needs to be known:

  1. Is Exclusion supported by all DBs?
  2. Is Exclusion deferrable supported by all DBs?

@OSA413

OSA413 commented Nov 27, 2025

Copy link
Copy Markdown
Collaborator

I would also add the check against allowlist at runtime as qodo suggests. @alumni what do you think?

@alumni

alumni commented Nov 27, 2025 •

Copy link
Copy Markdown
Collaborator

Is Exclusion supported by all DBs?

At least in TypeORM, only the PostgresDriver implements exclusion constraints. Not sure if there are other DBs supporting them, they seem to be overlapping in functionality with other constraints.

Is Exclusion deferrable supported by all DBs?

Quite a lot of DBs support deferrable constraints and a lot of our drivers support them too. If it's supported for e.g. referential constraints (FKs), it should be supported for unique constraints and check constraints too.

I would also add the check against allowlist at runtime as qodo suggests. @alumni what do you think?

I would say it's not really necessary since it's validated by TypeScript types, so you'd have to cast, which means you have to really want to do something different. It's not validated for other types of constraints either.

@oGAD31

oGAD31 commented Nov 27, 2025

Copy link
Copy Markdown
Contributor Author

I will summaries why the tests keep failing and 2 possible solutions: the tests failed for the first time because i tried to use @Exclusion on type timestamp without time zone. this type isnt supported for overlap exclusions so i switched to timestamp with time zone (AKA timestamptz. This caused the the tests to fail because better-sqlite3,sap and sqlite DO NOT support type timestampz (but they do support deferrable on FK so they are included in the enabledDrivers array of test file test/functional/deferrable/deferrable.ts)

2 possible ways to fix the tests:

  1. rewrite the tested entities (Booking & Schedule)to not use timestampz (I can test overlaps with just regular numbers instead of dates...)
  2. not include the 2 new entities in the entities array of file test/functional/deferrable/deferrable.ts

IMO option 1 is the better one, tell me what you think @OSA413.

@OSA413

OSA413 commented Nov 28, 2025

Copy link
Copy Markdown
Collaborator

IMO option 1 is the better one

Yes, I think this is also better

@oGAD31

oGAD31 commented Nov 28, 2025

Copy link
Copy Markdown
Contributor Author

IMO option 1 is the better one

Yes, I think this is also better

Done :)

@coveralls

coveralls commented Nov 29, 2025 •

Copy link
Copy Markdown

Coverage Status

coverage: 80.875% (-0.01%) from 80.886%
when pulling cb1baac on oGAD31:defer-support-for-exclusion
into fbb625b on typeorm:master.

@oGAD31
oGAD31 requested review from G0maa and OSA413 December 30, 2025 13:34
@oGAD31
oGAD31 requested a review from gioboa January 9, 2026 19:38
@oGAD31 oGAD31 changed the title Add deferrable support to @Exclusion decorator (mirror @Unique & @Index) feat: add deferrable support to @Exclusion decorator (mirror @Unique & @Index) Jan 9, 2026
@oGAD31 oGAD31 changed the title feat: add deferrable support to @Exclusion decorator (mirror @Unique & @Index) feat: add deferrable support to Exclusion decorator (mirror Unique & Index) Jan 10, 2026
@G0maa

G0maa commented Jan 10, 2026

Copy link
Copy Markdown
Collaborator

@oGAD31

Why CI fails:

The description "add deferrable support to Exclusion decorator (mirror Unique & Index)" found in this pull request title "feat: add deferrable support to Exclusion decorator (mirror Unique & Index)"
didn't match the configured pattern. Please ensure that it doesn't
start with an uppercase character and contain only allowed characters.

tl;dr the title contains upper-case characters.

@oGAD31 oGAD31 changed the title feat: add deferrable support to Exclusion decorator (mirror Unique & Index) feat: add deferrable support to exclusion decorator to mirror unique and index decorators Jan 10, 2026
@oGAD31

oGAD31 commented Jan 10, 2026

Copy link
Copy Markdown
Contributor Author

fixed @G0maa

@G0maa G0maa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for your contribution!

CC: @alumni @gioboa

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Jan 10, 2026 •

Copy link
Copy Markdown

Code Review by Qodo (Alpha)

(Review updated until commit cb1baac)

🐞 Bugs (1) 📘 Rule Violations (0) 📎 Requirement Gaps (0) 💡 Suggestions (0)

Grey Divider


Action Required

1. Missing deferrable in constraint loading query 🐞 Bug
Description
• The PostgreSQL constraint loading query does not retrieve deferrable information (condeferrable
  and condeferred columns) from pg_constraint for exclusion constraints
• When TypeORM loads existing exclusion constraints from the database, the deferrable property will
  always be undefined, even if the constraint was created with DEFERRABLE
• This causes schema synchronization to incorrectly detect that constraints have changed and attempt
  to recreate them unnecessarily

correctness

Code

↗ src/driver/postgres/PostgresQueryRunner.ts

                              table,
Evidence
The constraint loading query at lines 3445-3453 only selects table_schema, table_name,
constraint_name, expression, constraint_type, and column_name. It does not include condeferrable or
condeferred columns from pg_constraint. When exclusion constraints are loaded at lines 4013-4020,
only name and expression are extracted into TableExclusion objects, leaving the deferrable property
undefined. In contrast, the foreign key loading query at lines 3484-3488 correctly includes
condeferrable and condeferred columns, and these are properly mapped to the deferrable property at
lines 4066-4068.

src/driver/postgres/PostgresQueryRunner.ts[3445-3453]
src/driver/postgres/PostgresQueryRunner.ts[4013-4020]
src/driver/postgres/PostgresQueryRunner.ts[3484-3488]

Agent Prompt
## Issue Description
The PostgreSQL constraint loading query does not retrieve deferrable information from the database, causing the deferrable property to always be undefined when loading existing exclusion constraints. This leads to incorrect schema synchronization behavior.

## Issue Context
The PR adds support for deferrable exclusion constraints, but the database query that loads existing constraints from PostgreSQL is missing the necessary columns to retrieve deferrable information.

## Fix Focus Areas
- src/driver/postgres/PostgresQueryRunner.ts[3445-3453] - Add condeferrable and condeferred columns to the constraintsSql query
- src/driver/postgres/PostgresQueryRunner.ts[4013-4020] - Map the loaded deferrable data to the TableExclusion deferrable property, similar to how foreign keys handle it at lines 4066-4068

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider


Previous review results

Results up to commit 30fe0fc


🐞 Bugs (3) 📘 Rule Violations (0) 📎 Requirement Gaps (0) 💡 Suggestions (0)

Grey Divider
Action Required
1. EntitySchema missing deferrable support 🐞 Bug
Description
• The EntitySchemaExclusionOptions interface lacks the deferrable field, preventing users from
  specifying deferrable constraints via EntitySchema
• Creates API inconsistency where decorator-based approach supports deferrable but EntitySchema
  approach does not
• Users relying on EntitySchema cannot use the new deferrable feature

correctness

Code

src/decorator/options/ExclusionOptions.ts[R6-11]

+export interface ExclusionOptions {
+    /**
+     * Indicate if exclusion constraints can be deferred.
+     */
+    deferrable?: DeferrableType
+}
Evidence
The PR adds deferrable to ExclusionOptions (decorator approach) and ExclusionMetadataArgs, but
EntitySchemaExclusionOptions.ts (read from codebase) only has name and expression fields. The
EntitySchemaTransformer.ts also only copies name and expression when creating ExclusionMetadataArgs,
not deferrable.

src/entity-schema/EntitySchemaExclusionOptions.ts[1-11]
src/entity-schema/EntitySchemaTransformer.ts[362-366]
src/decorator/options/ExclusionOptions.ts[6-11]

Agent Prompt
## Issue Description
The EntitySchemaExclusionOptions interface is missing the deferrable field that was added to the decorator-based ExclusionOptions. This prevents users from specifying deferrable constraints when using EntitySchema.

## Issue Context
The PR adds deferrable support to exclusion constraints, but only implements it for the decorator API. The EntitySchema API needs the same support for consistency.

## Fix Focus Areas
- src/entity-schema/EntitySchemaExclusionOptions.ts[1-11] - Add deferrable?: string field to the interface
- src/entity-schema/EntitySchemaTransformer.ts[362-366] - Add deferrable: exclusion.deferrable to the exclusionArgs object

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. PostgreSQL doesn't load deferrable from database 🐞 Bug
Description
• PostgresQueryRunner loads exclusion constraints from database but doesn't retrieve the deferrable
  state
• The SQL query doesn't select condeferrable or condeferred columns from pg_constraint
• Schema synchronization will always see database constraints as non-deferrable, causing false
  mismatches
• Will incorrectly drop and recreate constraints that already have correct deferrable settings

correctness

Code

src/driver/postgres/PostgresQueryRunner.ts[R4187-4190]

+                    let constraint = `CONSTRAINT "${exclusionName}" EXCLUDE ${exclusion.expression}`
+                    if (exclusion.deferrable)
+                        constraint += ` DEFERRABLE ${exclusion.deferrable}`
+                    return constraint
Evidence
The PostgresQueryRunner creates exclusion constraints with deferrable in SQL (diff lines 4187-4190),
but when loading constraints from the database, it only extracts name and expression. The
constraints SQL query at lines 3445-3453 doesn't include condeferrable or condeferred columns. In
contrast, foreign keys correctly load deferrable using 'CASE WHEN con1.condeferred' at line 3488.

src/driver/postgres/PostgresQueryRunner.ts[4013-4020]
src/driver/postgres/PostgresQueryRunner.ts[3445-3453]
src/driver/postgres/PostgresQueryRunner.ts[3487-3488]

Agent Prompt
## Issue Description
The PostgresQueryRunner doesn't load the deferrable state of exclusion constraints from the database, causing schema synchronization to fail when comparing constraints.

## Issue Context
When loading tables from the database, the query runner needs to retrieve all constraint properties including deferrable state. Foreign keys already do this correctly.

## Fix Focus Areas
- src/driver/postgres/PostgresQueryRunner.ts[3445-3453] - Add condeferrable and condeferred columns to the SELECT statement, similar to how foreign keys query them
- src/driver/postgres/PostgresQueryRunner.ts[4013-4020] - Extract deferrable from the query result and pass it to TableExclusion constructor

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation Recommended
3. Schema sync only compares constraints by name 🐞 Bug
Description
• RdbmsSchemaBuilder compares exclusion constraints only by name, not by properties
• Changes to deferrable or expression won't be detected during schema synchronization
• Users changing constraint properties will need to manually drop and recreate constraints
• This is a pre-existing issue made more visible by adding deferrable support

reliability

Code

src/decorator/options/ExclusionOptions.ts[R6-11]

+export interface ExclusionOptions {
+    /**
+     * Indicate if exclusion constraints can be deferred.
+     */
+    deferrable?: DeferrableType
+}
Evidence
The schema synchronization logic in RdbmsSchemaBuilder only checks if constraint names match when
determining what to drop or create. It doesn't compare expression or deferrable properties. This
means if a user changes the deferrable setting of an existing constraint, the schema sync won't
detect it. Check constraints have the same limitation (only compared by name at lines 501-505 and
1085-1091).

src/schema-builder/RdbmsSchemaBuilder.ts[561-566]
src/schema-builder/RdbmsSchemaBuilder.ts[1156-1162]
src/schema-builder/RdbmsSchemaBuilder.ts[501-505]

Agent Prompt
## Issue Description
The schema synchronization only compares exclusion constraints by name, so changes to deferrable or expression properties won't trigger constraint recreation.

## Issue Context
This is a pre-existing limitation that becomes more problematic with deferrable support. Users expect schema sync to detect all constraint changes.

## Fix Focus Areas
- src/schema-builder/RdbmsSchemaBuilder.ts[550-580] - Add logic to detect changed exclusions by comparing all properties, not just name
- src/schema-builder/RdbmsSchemaBuilder.ts[1145-1180] - Update to handle changed exclusions separately from new exclusions

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Qodo Logo

@gioboa gioboa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It looks good to me, can we update docs as well please?

@oGAD31

oGAD31 commented Jan 10, 2026

Copy link
Copy Markdown
Contributor Author

Hi @gioboa, not sure how to update the docs. Also, shouldn't i fix the first 2 bugs found by Qodo in the review?

@gioboa

gioboa commented Jan 10, 2026

Copy link
Copy Markdown
Collaborator

Yep, please have a look at the suggestions if those are correct or not.

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Persistent review updated to latest commit cb1baac

@oGAD31

oGAD31 commented Jan 10, 2026

Copy link
Copy Markdown
Contributor Author

Well i fixed the first bug but the other ones seems to exist for other decorators as well (@Unique for example) so im not sure if I should fix them.

@gioboa

@oGAD31

oGAD31 commented Jan 11, 2026

Copy link
Copy Markdown
Contributor Author

What's currently stopping the pr from being approved? Can you approve it @gioboa ?

I already got an approve from @G0maa

@gioboa
gioboa merged commit 441a000 into typeorm:master Jan 11, 2026
38 checks passed
mgohin pushed a commit to mgohin/typeorm that referenced this pull request Jan 15, 2026
kranners pushed a commit to kranners/typeorm that referenced this pull request Mar 1, 2026
@pkuczynski pkuczynski added this to the 1.0 milestone Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

7 participants