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:
+2
-2
@@ -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;
|
||||
|
||||
+11
-7
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user