mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-07-16 01:47:20 +02:00
feat(editor): Add custom data store column headers (no-changelog) (#18390)
Co-authored-by: Milorad FIlipović <milorad@n8n.io>
This commit is contained in:
@@ -795,6 +795,7 @@ describe('dataStore', () => {
|
||||
createdAt: expect.any(Date),
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
updatedAt: expect.any(Date),
|
||||
index: 0,
|
||||
},
|
||||
{
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
@@ -805,6 +806,7 @@ describe('dataStore', () => {
|
||||
createdAt: expect.any(Date),
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
updatedAt: expect.any(Date),
|
||||
index: 1,
|
||||
},
|
||||
{
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
@@ -815,6 +817,7 @@ describe('dataStore', () => {
|
||||
createdAt: expect.any(Date),
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
updatedAt: expect.any(Date),
|
||||
index: 2,
|
||||
},
|
||||
{
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
@@ -825,6 +828,7 @@ describe('dataStore', () => {
|
||||
createdAt: expect.any(Date),
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
updatedAt: expect.any(Date),
|
||||
index: 3,
|
||||
},
|
||||
]),
|
||||
);
|
||||
|
||||
@@ -221,8 +221,7 @@ export class DataStoreRepository extends Repository<DataStore> {
|
||||
'dataStore',
|
||||
...this.getDataStoreColumnFields('data_store_column'),
|
||||
...this.getProjectFields('project'),
|
||||
])
|
||||
.addOrderBy('data_store_column.index', 'ASC');
|
||||
]);
|
||||
}
|
||||
|
||||
private getDataStoreColumnFields(alias: string): string[] {
|
||||
@@ -232,6 +231,7 @@ export class DataStoreRepository extends Repository<DataStore> {
|
||||
`${alias}.type`,
|
||||
`${alias}.createdAt`,
|
||||
`${alias}.updatedAt`,
|
||||
`${alias}.index`,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user