Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
show issue with missing key and type
  • Loading branch information
gregorwolf committed Jun 16, 2021
1 parent 3205347 commit ccc3f73
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
35 changes: 35 additions & 0 deletions db/schema.cds
Expand Up @@ -105,6 +105,41 @@ view BooksAnalytics as
currency
};

@Aggregation.ApplySupported.PropertyRestrictions : true
view BooksViewWOkey as
select from Books {
ID,
/*
@Analytics.Dimension : true
BooksAuthorsAssignment_ASSOC_Books.ASSOC_Author.name,
@Analytics.Dimension : true
BooksAuthorsAssignment_ASSOC_Books.ASSOC_Author.country.code,
*/
@Analytics.Measure : true
@Aggregation.default : #SUM
stock,
@Analytics.Dimension : true
currency
};

@Aggregation.ApplySupported.PropertyRestrictions : true
view BooksViewWOtype as
select from Books {
key ID,
/*
@Analytics.Dimension : true
BooksAuthorsAssignment_ASSOC_Books.ASSOC_Author.name,
@Analytics.Dimension : true
BooksAuthorsAssignment_ASSOC_Books.ASSOC_Author.country.code,
*/
@Analytics.Measure : true
@Aggregation.default : #SUM
stock,
@Analytics.Dimension : true
currency,
1 as count
};

entity Images : cuid, managed {
@Core.MediaType : mediatype
@Core.ContentDisposition.Filename : filename
Expand Down
6 changes: 6 additions & 0 deletions srv/admin-service.cds
Expand Up @@ -102,6 +102,12 @@ service AdminService @(
@readonly
entity BooksAnalytics as projection on db.BooksAnalytics;

@readonly
entity BooksViewWOkey as projection on db.BooksViewWOkey;

@readonly
entity BooksViewWOtype as projection on db.BooksViewWOtype;

@readonly
entity SEPMRA_I_Product_E as projection on external.SEPMRA_I_Product_E excluding {
CreationDateTime,
Expand Down

0 comments on commit ccc3f73

Please sign in to comment.