-
Notifications
You must be signed in to change notification settings - Fork 566
[UI] Use the official OpenAPI specification to generate types. #762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UI] Use the official OpenAPI specification to generate types. #762
Conversation
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
|
@jamieknight-db @yc-shawn |
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
|
@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 <shingo.okawa.g.h.c@gmail.com>
|
|
The current |
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
|
|
|
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 <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
…de to infer types. Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
…nt.ts. Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
I’d appreciate it if you could review them again when you have time. Thanks! |
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
jamieknight-db
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
|
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 <shingo.okawa.g.h.c@gmail.com>
|
@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 <shingo.okawa.g.h.c@gmail.com> Signed-off-by: Maksym Borodin <borodin.maksym@gmail.com>
PR Checklist
docsis updatedDescription of changes
Rationale
Will close #431 .