Add applicationId to syncableEntity and fix syncApp deletion (#15170)

## Context
- All flatEntity should extend SyncableEntity
- SyncableEntity should now have applicationId and application relation
- Fix syncApp deletion, should now properly use migration v2 to delete
syncable entities
This commit is contained in:
Weiko
2025-10-17 17:23:00 +00:00
committed by GitHub
parent 84e7fabaab
commit cceeb6ed4d
79 changed files with 734 additions and 271 deletions
@@ -15,15 +15,14 @@ describe.each(COVERED_APPLICATION_FOLDERS)(
expect(existsSync(appPath)).toBe(true);
});
// TODO uncomment when reinstall is fix to cleanup gracefully
// afterAll(async () => {
// const result = await deleteCommand.execute({
// appPath,
// askForConfirmation: false,
// });
afterAll(async () => {
const result = await deleteCommand.execute({
appPath,
askForConfirmation: false,
});
// expect(result.success).toBe(true);
// });
expect(result.success).toBe(true);
});
it(`should successfully install ${applicationName} application`, async () => {
const result = await syncCommand.execute(appPath);
@@ -40,13 +39,10 @@ describe.each(COVERED_APPLICATION_FOLDERS)(
expect(result.success).toBe(true);
});
it.failing(
`should successfully re-install ${applicationName} application`,
async () => {
const result = await syncCommand.execute(appPath);
it(`should successfully re-install ${applicationName} application`, async () => {
const result = await syncCommand.execute(appPath);
expect(result.success).toBe(true);
},
);
expect(result.success).toBe(true);
});
},
);