Skip to content

Commit

Permalink
Studio persistence v2 spec (#2404)
Browse files Browse the repository at this point in the history
* Initial commit

* initial commit

* Added persistence V2 spec

* Minor fixes + Added studio round trip test

* Added persistence v2 unitemporal/bitemporal spec tests

Added persistence unitemporal/bitmporal spec tests

* Refactoring + Added roundtrip tests

* Create lemon-zebras-talk.md

* Create modern-adults-play.md

* Updated _type for SourceTimeFields and AppendStrategy per latest lenged-engine spec finos/legend-engine#1998

* Deleted redundant changeset file

* lint fixes + added tests for persistent test spec
  • Loading branch information
ankitamritraj authored Jul 13, 2023
1 parent 1125537 commit 757f5ae
Show file tree
Hide file tree
Showing 45 changed files with 5,043 additions and 35 deletions.
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

0 comments on commit 757f5ae

Please sign in to comment.