[UI] Use the official OpenAPI specification to generate types.#762
[UI] Use the official OpenAPI specification to generate types.#762jamieknight-db merged 29 commits intounitycatalog:mainfrom
Conversation
Signed-off-by: Shingo OKAWA <[email protected]>
Signed-off-by: Shingo OKAWA <[email protected]>
Signed-off-by: Shingo OKAWA <[email protected]>
Signed-off-by: Shingo OKAWA <[email protected]>
|
@jamieknight-db @yc-shawn |
Signed-off-by: Shingo OKAWA <[email protected]>
Signed-off-by: Shingo OKAWA <[email protected]>
Signed-off-by: Shingo OKAWA <[email protected]>
|
@ognis1205 this is really fantastic! Thank you for taking the lead on this. I have left some comments and suggestions. I still need to clone your branch and test it out, I will try to get that done tomorrow. Were you able to test out error states as well? |
… union, and modify the arguments of the "route" function to maintain conventional notification messages. Signed-off-by: Shingo OKAWA <[email protected]>
|
|
The current |
Signed-off-by: Shingo OKAWA <[email protected]>
|
|
|
Thank you for the detailed and thorough review. I have fixed the points that were straightforward and didn’t require further discussion. I’ve also left some comments, so when you have time, I’d appreciate it if you could review them again. |
Signed-off-by: Shingo OKAWA <[email protected]>
Signed-off-by: Shingo OKAWA <[email protected]>
Signed-off-by: Shingo OKAWA <[email protected]>
…de to infer types. Signed-off-by: Shingo OKAWA <[email protected]>
Signed-off-by: Shingo OKAWA <[email protected]>
Signed-off-by: Shingo OKAWA <[email protected]>
Signed-off-by: Shingo OKAWA <[email protected]>
Signed-off-by: Shingo OKAWA <[email protected]>
Signed-off-by: Shingo OKAWA <[email protected]>
Signed-off-by: Shingo OKAWA <[email protected]>
Signed-off-by: Shingo OKAWA <[email protected]>
…nt.ts. Signed-off-by: Shingo OKAWA <[email protected]>
I’d appreciate it if you could review them again when you have time. Thanks! |
Signed-off-by: Shingo OKAWA <[email protected]>
jamieknight-db
left a comment
There was a problem hiding this comment.
This all lgtm - I was not able to pull down the branch to test out CRUD operations myself but code looks good. Thank you for considering my feedback @ognis1205! I would like @yc-shawn and @dennyglee to take a look before merging.
|
Thank you for your thorough review. Please feel free to let me know if there are any issues or if anything needs to be addressed. |
Signed-off-by: Shingo OKAWA <[email protected]>
Signed-off-by: Shingo OKAWA <[email protected]>
Signed-off-by: Shingo OKAWA <[email protected]>
|
Just wanted to kindly follow up on this PR to see if you’ve had a chance to take another look. Let me know if there’s anything I can clarify or adjust to help with the review. Thank you! |
Signed-off-by: Shingo OKAWA <[email protected]>
|
@ognis1205 does this PR need to be merged first? before this PR? |
|
This PR and that PR are not dependent on each other, but since this PR has relatively fewer impacts and stakeholders, it might be better to merge this one first and wait a bit longer for feedback on the other PR. Thank you for the suggestion! |
|
@dennyglee are you ok with me merging this? |
Absolutely, feel free to merge and/or I can take care of this later today, eh?! :) |
…catalog#762) **PR Checklist** - [x] A description of the changes is added to the description of this PR. - [x] If there is a related issue, make sure it is linked to this PR. - [x] If you've fixed a bug or added code that should be tested, add tests! - [x] If you've added or modified a feature, documentation in `docs` is updated **Description of changes** - Use [openapi-typescript](https://openapi-ts.dev/) to generate types (URL paths, HTTP methods, requests, and responses) ***Rationale*** - The primary need for code generated from the OpenAPI schema is type information rather than client implementations. This allows for flexibility in selecting an HTTP client and supports gradual adaptation even when the schema YAML implementation is unstable. - openapi-generator requires a Java runtime, while openapi-typescript does not depend on Java, node-gyp, or an API server. - Even if the UI project becomes independent of the unitycatalog repository, it can still generate code from a remote schema without requiring a Java runtime. - Implement utility types and functions to handle generated artifacts type-safely - Install [npm-run-all](https://www.npmjs.com/package/npm-run-all) and enhance the build script Will close unitycatalog#431 . --------- Signed-off-by: Shingo OKAWA <[email protected]> Signed-off-by: Maksym Borodin <[email protected]>
PR Checklist
docsis updatedDescription of changes
Rationale
Will close #431 .