Compose SDK schema not as type safe as initially thought
Hello!
I have recently started working with the Sisense SDK with great success. I am pleased with the experience so far, so I would like first to congratulate the team on the results!
I am currently using the Sisense CLI to generate a typescript schema for a couple of elasticubes and it has been a wonderful boost to my productivity.
I write to you because I noticed an issue after some schema changes: tsc did not warn me of missing Dimensions. I would have expected it to show errors when the schema dropped dimensions that are referenced in code. Alas, I got nothing but a runtime error. I tracked the issue down to this line: https://github.com/sisense/compose-sdk-monorepo/blob/aac97b0e92b07143cea40013fd39a4509f8ea233/packages/sdk-data/src/dimensional-model/interfaces.ts#L252
That line makes the entire schema less type safe. Would it be possible to remove it or make it more type safe some other way?
Thank you!
Kind regards,
Cristian Necula
I understand now, and I really appreciate the detailed explanation. I fully agree that this is something that should be improved.
I believe we will address this in the near future.
Thank you!