OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Refactor UI code to depend on typescript and make the generation of typescript code from JsonSchemas

Open harshach opened this issue 5 years ago • 4 comments

Instead of checking the generated code. Lets do this as part of build process such that during the release the generated code gets packaged but doesn't need to be checked into the repository. cc @shahsank3t

harshach avatar Nov 22 '21 00:11 harshach

Generated Typescript interface files are empty if,

  1. "$id" field does not consist of proper path - Refer ingestion.json or filters.json file
  2. "properties" field does not exist - Refer storage.json or basic.json

darth-coder00 avatar Nov 22 '21 12:11 darth-coder00

Removed global package installation to generate Typescript code from schema

Need to add it to Pre-build run script

darth-coder00 avatar Nov 25 '21 14:11 darth-coder00

Moving this to the next release as we have added the root package.json to install quicktype to generate Typescript interface from JSON schema. Also, we have added documentation for the same

Sachin-chaurasiya avatar Dec 08 '21 09:12 Sachin-chaurasiya

@vivekratnavel marking this issue as resolved given we already use code generation.

sureshms avatar Aug 22 '22 00:08 sureshms