Skip to content
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

Frontend Project Health Improvements #2407

Closed
14 of 16 tasks
Bobgy opened this issue Oct 16, 2019 · 13 comments
Closed
14 of 16 tasks

Frontend Project Health Improvements #2407

Bobgy opened this issue Oct 16, 2019 · 13 comments
Assignees
Labels
area/docs area/engprod area/frontend area/testing help wanted The community is welcome to contribute. kind/misc types beside feature and bug priority/p2

Comments

@Bobgy
Copy link
Contributor

Bobgy commented Oct 16, 2019

@Bobgy
Copy link
Contributor Author

Bobgy commented Oct 16, 2019

/area front-end
#frontend-pH

@Bobgy

This comment has been minimized.

@Bobgy

This comment has been minimized.

@Bobgy
Copy link
Contributor Author

Bobgy commented Oct 21, 2019

Hi @eterna2, do you want to add anything like pain points here?

@eterna2
Copy link
Contributor

eterna2 commented Oct 22, 2019

Looks great to me. I will add here if I think anything else.

Not sure if we wish to impose consistency in the usage of async/await vs promise chaining because I notice the node backend uses both.

@Bobgy
Copy link
Contributor Author

Bobgy commented Oct 22, 2019

@eterna2 Thanks for the suggestion. I've not written much code for node backend. Which do you prefer? I think async/await is clearer and easier to write by all means. We can recommend switching to it doing new changes.

Do you think we need a strict rule (maybe https://github.com/xjamundx/eslint-plugin-promise/blob/master/docs/rules/prefer-await-to-then.md)? We cannot use an eslint rule right now, but after we switch to eslint-typescript. Maybe we can use it.

@eterna2
Copy link
Contributor

eterna2 commented Oct 22, 2019

I generally prefer async/await over promises too because of the readability.

Would nice to enforce this consistency just to reduce confusion on how we shld handle async functions.

Just need to be careful when using them, as u can incorrectly blocks the thread w/o actually needing to.

Here is a good article on it:
https://hackernoon.com/javascript-async-await-the-good-part-pitfalls-and-how-to-use-9b759ca21cda

@Bobgy Bobgy added the help wanted The community is welcome to contribute. label Oct 22, 2019
@Bobgy
Copy link
Contributor Author

Bobgy commented Oct 23, 2019

I generally prefer async/await over promises too because of the readability.

Would nice to enforce this consistency just to reduce confusion on how we shld handle async functions.

@eterna2 I think that's a good idea. Do you want to contribute to this or any of the items above? I don't think I can have time for this refactoring shortly.

Rough ideas:

  1. We should first complete [Frontend] Set up unit tests for frontend node server #2460 for test coverage.
  2. Convert existing usage of promise chain to async/await.
  3. (optional) Add a code style document recommending best practices or enforce by lint rules.
    (Maybe we don't even need this, when our code base only uses async/await, I think contributors will discover that consistency by themselves.)

@jingzhang36
Copy link
Contributor

I ran into an issue where FE complier complains about casing difference. We probably can remove the check at

"forceConsistentCasingInFileNames": true,

@rmgogogo rmgogogo added kind/misc types beside feature and bug and removed kind/code-quality labels Nov 18, 2019
@Bobgy
Copy link
Contributor Author

Bobgy commented Nov 28, 2019

New issue that came out:

@Bobgy
Copy link
Contributor Author

Bobgy commented Apr 24, 2020

Another new issue I found out:

  • p1 Inconsistency between building in frontend/server folder locally and in docker.

@Bobgy
Copy link
Contributor Author

Bobgy commented Apr 24, 2020

Most important issues have all been fixed!!
The remaining tasks will be tracked in https://github.com/kubeflow/pipelines/projects/4
/close

@k8s-ci-robot
Copy link
Contributor

@Bobgy: Closing this issue.

In response to this:

Most important issues have all been fixed!!
/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docs area/engprod area/frontend area/testing help wanted The community is welcome to contribute. kind/misc types beside feature and bug priority/p2
Projects
None yet
Development

No branches or pull requests

5 participants