@@ -248,10 +248,10 @@ describe("change log integration test", () => {
248
248
} ) ;
249
249
250
250
it ( "2.4 Child entity update without objectID annotation - should log object type for object ID (ERP4SMEPREPWORKAPPPLAT-32 ERP4SMEPREPWORKAPPPLAT-613 ERP4SMEPREPWORKAPPPLAT-538)" , async ( ) => {
251
- delete cds . services . AdminService . entities . Books [ "@changelog.keys " ] ;
252
- delete cds . services . AdminService . entities . BookStores [ "@changelog.keys " ] ;
253
- delete cds . db . entities . Books [ "@changelog.keys " ] ;
254
- delete cds . db . entities . BookStores [ "@changelog.keys " ] ;
251
+ delete cds . services . AdminService . entities . Books [ "@changelog" ] ;
252
+ delete cds . services . AdminService . entities . BookStores [ "@changelog" ] ;
253
+ delete cds . db . entities . Books [ "@changelog" ] ;
254
+ delete cds . db . entities . BookStores [ "@changelog" ] ;
255
255
256
256
const action = PATCH . bind ( { } , `/admin/Books(ID=9d703c23-54a8-4eff-81c1-cdce6b8376b1,IsActiveEntity=false)` , {
257
257
title : "new title" ,
@@ -271,12 +271,12 @@ describe("change log integration test", () => {
271
271
expect ( change . objectID ) . to . equal ( "Book" ) ;
272
272
expect ( change . parentObjectID ) . to . equal ( "Book Store" ) ;
273
273
274
- cds . services . AdminService . entities . Books [ "@changelog.keys " ] = [
274
+ cds . services . AdminService . entities . Books [ "@changelog" ] = [
275
275
{ "=" : "title" } ,
276
276
{ "=" : "author.name.firstName" } ,
277
277
{ "=" : "author.name.lastName" } ,
278
278
] ;
279
- cds . services . AdminService . entities . BookStores [ "@changelog.keys " ] = [
279
+ cds . services . AdminService . entities . BookStores [ "@changelog" ] = [
280
280
{
281
281
"=" : "name" ,
282
282
} ,
@@ -286,7 +286,7 @@ describe("change log integration test", () => {
286
286
it ( "4.1 Annotate multiple native and attributes comming from one or more associated table as the object ID (ERP4SMEPREPWORKAPPPLAT-913)" , async ( ) => {
287
287
// After appending object id as below, the object ID sequence should be:
288
288
// title, author.name.firstName, author.name.lastName, stock, bookStore.name, bookStore.location
289
- cds . services . AdminService . entities . Books [ "@changelog.keys " ] . push (
289
+ cds . services . AdminService . entities . Books [ "@changelog" ] . push (
290
290
{ "=" : "stock" } ,
291
291
{ "=" : "bookStore.name" } ,
292
292
{ "=" : "bookStore.location" }
@@ -330,7 +330,7 @@ describe("change log integration test", () => {
330
330
331
331
// After adjusting object id as below, the object ID sequence should be:
332
332
// title, bookStore.name, bookStore.location, stock, author.name.firstName, author.name.lastName
333
- cds . services . AdminService . entities . Books [ "@changelog.keys " ] = [
333
+ cds . services . AdminService . entities . Books [ "@changelog" ] = [
334
334
{ "=" : "title" } ,
335
335
{ "=" : "bookStore.name" } ,
336
336
{ "=" : "bookStore.location" } ,
@@ -358,7 +358,7 @@ describe("change log integration test", () => {
358
358
359
359
// After adjusting object id as below, the object ID sequence should be:
360
360
// bookStore.name, title, bookStore.location, author.name.firstName, stock, author.name.lastName
361
- cds . services . AdminService . entities . Books [ "@changelog.keys " ] = [
361
+ cds . services . AdminService . entities . Books [ "@changelog" ] = [
362
362
{ "=" : "bookStore.name" } ,
363
363
{ "=" : "title" } ,
364
364
{ "=" : "bookStore.location" } ,
@@ -383,15 +383,15 @@ describe("change log integration test", () => {
383
383
expect ( deleteTitleChange . objectID ) . to . equal ( "Shakespeare and Company, test title 1, Paris, Emily, 1, Brontë" ) ;
384
384
385
385
// Recover the object ID of entity Books as defined in admin-service
386
- cds . services . AdminService . entities . Books [ "@changelog.keys " ] = [
386
+ cds . services . AdminService . entities . Books [ "@changelog" ] = [
387
387
{ "=" : "title" } ,
388
388
{ "=" : "author.name.firstName" } ,
389
389
{ "=" : "author.name.lastName" } ,
390
390
] ;
391
391
} ) ;
392
392
393
393
it ( "4.2 Annotate multiple native attributes as the object ID (ERP4SMEPREPWORKAPPPLAT-913)" , async ( ) => {
394
- cds . services . AdminService . entities . Books [ "@changelog.keys " ] = [
394
+ cds . services . AdminService . entities . Books [ "@changelog" ] = [
395
395
{ "=" : "price" } ,
396
396
{ "=" : "title" } ,
397
397
{ "=" : "stock" } ,
@@ -415,15 +415,15 @@ describe("change log integration test", () => {
415
415
const titleChange = titleChanges [ 0 ] ;
416
416
expect ( titleChange . objectID ) . to . equal ( "11.11, new title, 12" ) ;
417
417
418
- cds . services . AdminService . entities . Books [ "@changelog.keys " ] = [
418
+ cds . services . AdminService . entities . Books [ "@changelog" ] = [
419
419
{ "=" : "title" } ,
420
420
{ "=" : "author.name.firstName" } ,
421
421
{ "=" : "author.name.lastName" } ,
422
422
] ;
423
423
} ) ;
424
424
425
425
it ( "4.3 Annotate multiple attributes comming from one or more associated table as the object ID (ERP4SMEPREPWORKAPPPLAT-913)" , async ( ) => {
426
- cds . services . AdminService . entities . Books [ "@changelog.keys " ] = [
426
+ cds . services . AdminService . entities . Books [ "@changelog" ] = [
427
427
{ "=" : "bookStore.location" } ,
428
428
{ "=" : "author.name.lastName" } ,
429
429
{ "=" : "author.name.firstName" } ,
@@ -449,7 +449,7 @@ describe("change log integration test", () => {
449
449
const titleChange = titleChanges [ 0 ] ;
450
450
expect ( titleChange . objectID ) . to . equal ( "Paris, Brontë, Charlotte, Shakespeare and Company, 16" ) ;
451
451
452
- cds . services . AdminService . entities . Books [ "@changelog.keys " ] = [
452
+ cds . services . AdminService . entities . Books [ "@changelog" ] = [
453
453
{ "=" : "title" } ,
454
454
{ "=" : "author.name.firstName" } ,
455
455
{ "=" : "author.name.lastName" } ,
@@ -694,7 +694,7 @@ describe("change log integration test", () => {
694
694
} ) ;
695
695
696
696
it ( "6.3 Attributes from the code list could be annotated as object ID (ERP4SMEPREPWORKAPPPLAT-1055)" , async ( ) => {
697
- cds . services . AdminService . entities . BookStores [ "@changelog.keys " ] = [
697
+ cds . services . AdminService . entities . BookStores [ "@changelog" ] = [
698
698
{ "=" : "name" } ,
699
699
{ "=" : "lifecycleStatus.name" } ,
700
700
] ;
@@ -726,7 +726,7 @@ describe("change log integration test", () => {
726
726
expect ( lifecycleStatusChange . modification ) . to . equal ( "Create" ) ;
727
727
expect ( lifecycleStatusChange . objectID ) . to . equal ( "test name, In Preparation" ) ;
728
728
729
- cds . services . AdminService . entities . BookStores [ "@changelog.keys " ] = [
729
+ cds . services . AdminService . entities . BookStores [ "@changelog" ] = [
730
730
{ "=" : "lifecycleStatus.name" } ,
731
731
{ "=" : "name" } ,
732
732
] ;
@@ -756,11 +756,11 @@ describe("change log integration test", () => {
756
756
expect ( lifecycleStatusUpdateChange . modification ) . to . equal ( "Update" ) ;
757
757
expect ( lifecycleStatusUpdateChange . objectID ) . to . equal ( "Closed, new test name" ) ;
758
758
759
- cds . services . AdminService . entities . BookStores [ "@changelog.keys " ] = [ { "=" : "name" } ] ;
759
+ cds . services . AdminService . entities . BookStores [ "@changelog" ] = [ { "=" : "name" } ] ;
760
760
} ) ;
761
761
762
762
it ( "7.1 Annotate fields from chained associated entities as objectID (ERP4SMEPREPWORKAPPPLAT-993)" , async ( ) => {
763
- cds . services . AdminService . entities . Books [ "@changelog.keys " ] = [
763
+ cds . services . AdminService . entities . Books [ "@changelog" ] = [
764
764
{ "=" : "bookStore.lifecycleStatus.name" } ,
765
765
{ "=" : "bookStore.location" } ,
766
766
{ "=" : "bookStore.city.name" } ,
@@ -783,7 +783,7 @@ describe("change log integration test", () => {
783
783
const titleChange = titleChanges [ 0 ] ;
784
784
expect ( titleChange . objectID ) . to . equal ( "In Preparation, Paris, Paris, FR" ) ;
785
785
786
- cds . services . AdminService . entities . Books [ "@changelog.keys " ] = [
786
+ cds . services . AdminService . entities . Books [ "@changelog" ] = [
787
787
{ "=" : "title" } ,
788
788
{ "=" : "bookStore.lifecycleStatus.name" } ,
789
789
{ "=" : "bookStore.city.country.countryName.name" } ,
@@ -812,7 +812,7 @@ describe("change log integration test", () => {
812
812
const deleteTitleChange = deleteTitleChanges [ 0 ] ;
813
813
expect ( deleteTitleChange . objectID ) . to . equal ( "new title, In Preparation, France" ) ;
814
814
815
- cds . services . AdminService . entities . Books [ "@changelog.keys " ] = [
815
+ cds . services . AdminService . entities . Books [ "@changelog" ] = [
816
816
{ "=" : "title" } ,
817
817
{ "=" : "author.name.firstName" } ,
818
818
{ "=" : "author.name.lastName" } ,
@@ -877,7 +877,7 @@ describe("change log integration test", () => {
877
877
} ) ;
878
878
879
879
it ( "9.1 Localization should handle the cases that reading the change view without required parameters obtained (ERP4SMEPREPWORKAPPPLAT-1414)" , async ( ) => {
880
- delete cds . services . AdminService . entities . BookStores [ "@changelog.keys " ] ;
880
+ delete cds . services . AdminService . entities . BookStores [ "@changelog" ] ;
881
881
const action = POST . bind (
882
882
{ } ,
883
883
`/admin/BookStores(ID=64625905-c234-4d0d-9bc1-283ee8946770,IsActiveEntity=false)/books` ,
@@ -923,7 +923,7 @@ describe("change log integration test", () => {
923
923
const bookChangeObjectId = bookElementChanges [ 3 ] ;
924
924
expect ( bookChangeObjectId . objectID ) . to . equal ( "" ) ;
925
925
926
- cds . services . AdminService . entities . BookStores [ "@changelog.keys " ] = [
926
+ cds . services . AdminService . entities . BookStores [ "@changelog" ] = [
927
927
{
928
928
"=" : "name" ,
929
929
} ,
0 commit comments