Fix 2.16 search field metadata cross version upgrade#22039
Merged
Conversation
🔍 Automated Pre-Review✅ No issues detected - This PR is ready for human review. Automated pre-review — human approval still required. |
Contributor
There was a problem hiding this comment.
1 issue found across 9 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="packages/twenty-server/src/engine/twenty-orm/upgrade-aware/upgrade-aware-entity-metadata.adapter.ts">
<violation number="1" location="packages/twenty-server/src/engine/twenty-orm/upgrade-aware/upgrade-aware-entity-metadata.adapter.ts:365">
P2: Validation now accepts relation property names for `@WasIntroducedInUpgrade(properties)`, but upgrade-aware resolution only supports columns. This can hide misconfigured decorators that never take effect.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Weiko
approved these changes
Jun 23, 2026
| expect(getWasIntroducedInUpgradeClassMetadata(Example)).toBeUndefined(); | ||
| }); | ||
|
|
||
| it('merges with property-level decorators on the same entity', () => { |
Member
There was a problem hiding this comment.
FYI TS applies class decorators after property decorators
c6073b6 to
22f317c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduction
Allow decorating at class scope the properties introduced in specific upgrade command
Here the search field metadata has been created as it without extending the syncableEntity a previous PR I've created now extends it, but nothing has been protected the fact they're not decorated. Also having to re-declare the properties would be redundant to me