Add twenty version validation (#20227)

as title, server version is checked before app deploy, and app install
commands

### New section in publishing doc
<img width="1344" height="912" alt="image"
src="https://github.com/user-attachments/assets/2a9335e7-0a7a-4973-a2db-f30f03181001"
/>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
martmull
2026-05-04 15:55:31 +02:00
committed by GitHub
parent 0bb345b75f
commit 3ffda0a29e
14 changed files with 214 additions and 12 deletions
@@ -1,3 +1,5 @@
import { getStandardObjectMetadataRelatedEntityIds } from 'src/engine/workspace-manager/twenty-standard-application/utils/get-standard-object-metadata-related-entity-ids.util';
let uuidCounter = 0;
jest.mock('uuid', () => ({
@@ -6,8 +8,6 @@ jest.mock('uuid', () => ({
),
}));
import { getStandardObjectMetadataRelatedEntityIds } from 'src/engine/workspace-manager/twenty-standard-application/utils/get-standard-object-metadata-related-entity-ids.util';
describe('getStandardObjectMetadataRelatedEntityIds', () => {
beforeEach(() => {
uuidCounter = 0;
@@ -1,16 +1,20 @@
let uuidCounter = 0;
jest.mock('uuid', () => ({
v4: jest.fn(
() => `00000000-0000-0000-0000-${String(++uuidCounter).padStart(12, '0')}`,
),
}));
import { v4 } from 'uuid';
import { getStandardPageLayoutMetadataRelatedEntityIds } from 'src/engine/workspace-manager/twenty-standard-application/utils/get-standard-page-layout-metadata-related-entity-ids.util';
jest.mock('uuid', () => ({
v4: jest.fn(),
}));
describe('getStandardPageLayoutMetadataRelatedEntityIds', () => {
let uuidCounter = 0;
beforeEach(() => {
uuidCounter = 0;
(v4 as jest.Mock).mockImplementation(
() =>
`00000000-0000-0000-0000-${String(++uuidCounter).padStart(12, '0')}`,
);
});
afterAll(() => {