Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Studio persistence v2 spec #2404

Merged
merged 12 commits into from
Jul 13, 2023
5 changes: 5 additions & 0 deletions .changeset/modern-adults-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@finos/legend-extension-dsl-persistence': patch
---

Added persistence V2 spec
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ import {
} from '@finos/legend-graph/test';
import { unitTest } from '@finos/legend-shared/test';
import type { Entity } from '@finos/legend-storage';
import {
TEST_DATA__roundtrip_append_only_allow_duplicates,
TEST_DATA__roundtrip_bitemporal_no_del_ind_user_specifies_from,
TEST_DATA__roundtrip_non_temporal_snapshot_date_time_audit,
} from './TEST_DATA_DSL_PersistenceV2_Roundtrip.js';

const pluginManager = new TEST__GraphManagerPluginManager();
pluginManager
Expand All @@ -51,3 +56,18 @@ test(unitTest('DSL Persistence roundtrip'), async () => {
pluginManager,
);
});

test(unitTest('DSL Persistence V2 roundtrip'), async () => {
await TEST__checkBuildingElementsRoundtrip(
TEST_DATA__roundtrip_append_only_allow_duplicates as Entity[],
pluginManager,
);
await TEST__checkBuildingElementsRoundtrip(
TEST_DATA__roundtrip_bitemporal_no_del_ind_user_specifies_from as Entity[],
pluginManager,
);
await TEST__checkBuildingElementsRoundtrip(
TEST_DATA__roundtrip_non_temporal_snapshot_date_time_audit as Entity[],
pluginManager,
);
});
Loading
Loading