-
Notifications
You must be signed in to change notification settings - Fork 20
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
chore(ts): refactor types into separate modules #1107
Conversation
18e64ae
to
1ea6e23
Compare
d5dab4a
to
3b538f0
Compare
@andrewazores I just realized this is quite a huge set of changes. Do you think we have time to review for 2.4? If not, I think we could delay this till next release and use it as a chance to go over web UI functionalities from top to toe? |
Though, rebasing will be painful haha I will try to keep up with other PRs. |
I would rather try to get this in ASAP since it is so large and rebasing it will only get harder. It may not make it in time for the 2.4 release but that's fine, it can be merged into main after the release window as soon as it is ready as one of the first merges into the next development cycle. |
Suree just some little moving around and lots of tests broken left. Will try to get it done asap. |
Ready now ^^ Most changes are just moving definitions into new files. The following are the conventions:
I tried to move definitions closed to where they are used (colocation?). Quite a huge change but I guess its a good chance to go over the web UI as a whole. |
2dd1d0f
to
b5b7a74
Compare
Document these conventions in README or a CONTRIBUTING doc please :-) |
/build_test |
Test image available:
|
9f27e1d
to
a5028af
Compare
Ah right! I will go over it by this week! |
a5028af
to
d4febd9
Compare
Signed-off-by: Thuan Vo <[email protected]>
e5e51e6
to
5f69a43
Compare
/build_test |
Signed-off-by: Thuan Vo <[email protected]>
5f69a43
to
45712da
Compare
Test image available:
|
/build_test |
Test image available:
|
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.
Awesome work, thanks @tthvo
I do see one last dependency cycle:
|
Hmm, not seeing it on my end tho. Any idea? $ yarn lint
[eslint] yarn run eslint exited with code 0
[format] [prettier:check] Checking formatting...
[format] [license:check] No default format specified. Using {"prepend":"/*","append":"*/"} as backup
[format] [license:check] ✔ All files have licenses.
[format] [license:check] Command succeeded
[format] [license:check] yarn run license:check exited with code 0
[format] [prettier:check] All matched files use Prettier code style!
[format] [prettier:check] yarn run prettier:check exited with code 0
[format] yarn run format exited with code 0
[type-check] yarn run type-check exited with code 0 |
Weird. Good enough for me - I'll figure out what's happening on my setup then. |
Welcome to Cryostat! 👋
Before contributing, make sure you have:
main
branch[chore, ci, docs, feat, fix, test]
To recreate commits with GPG signature
git fetch upstream && git rebase --force --gpg-sign upstream/main
Fixes: #941
Description of the change:
Move common types into
types.ts
to avoid cirular deps. Also, fix some type annotations that eslint might have missed.Motivation for the change:
See #941