-
Notifications
You must be signed in to change notification settings - Fork 443
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
new-ui: Add devDependency - prettier #1629
Conversation
Hi @seong7. Thanks for your PR. I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @andreyvelich |
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.
/ok-to-test
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.
Thank you for this update @seong7!
Can we also update GitHub actions: https://github.com/kubeflow/katib/blob/master/.github/workflows/test-node.yaml#L23, to take prettier version from this config ?
cc @kimwnasptd |
Hi @andreyvelich :) |
.github/workflows/test-node.yaml
Outdated
@@ -20,5 +20,5 @@ jobs: | |||
|
|||
- name: Run Node test | |||
run: | | |||
npm install --global prettier@2.2.0 | |||
npm install --global prettier@2.3.2 |
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.
Can we try to take version from package.json ?
For example: (cd pkg/new-ui/v1beta1/frontend && npm install prettier)
I think it will be easier to maintain.
WDYT @seong7 ?
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.
If this will not work (with --global
flag, I unable to install specific version from package.json
), try to use this command:
version=$(cd pkg/new-ui/v1beta1/frontend && node -p "require('prettier/package.json').version")
npm install --global prettier@${version}
Also, please modify this command: https://github.com/kubeflow/katib/blob/master/Makefile#L82-L83. |
@seong7 I've tried to make some tests: andreyvelich#8. |
@andreyvelich Thank you so much for your work 🙏 I was stuck on that issue. |
/retest |
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.
Thank you for this update @seong7!
/lgtm
/assign @kimwnasptd Please take a look.
Can we get updated on the progress? 😃 |
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.
Can we get updated on the progress? 😃
Yes, sorry for the delay. I think we can merge it.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andreyvelich, seong7 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
What :
It adds 'Prettier' as devDependency to
package.json
of 'new-ui/frontend' app.Why :
Currently the style formatter 'Prettier' is not included in the
package.json
. Which makes the style formatting of 'new-ui/frontend' app on local dev environment depend on whetherPrettier
is installed globally on each developer's computer. It may confuse them while setting the IDE integration for style formatting.Even though it's being checked on Github Actions, checking and fixing the style errors on Actions take way much longer than formatting on local with features of IDE such as 'auto format on save'.
So I suggest adding
Prettier
to the project'spackage.json
so every developer can easily set the style formatting process on their local.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):none
Checklist: