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
[Dashboard v1] Rewrite the backend for Central-Dashboard to Node.JS #2512
Comments
@avdaredevil: GitHub didn't allow me to assign the following users: prodonjs. Note that only kubeflow members and repo collaborators can be assigned and that issues/PRs can only have 10 assignees at the same time. In response to this:
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. |
/priority p1 |
I've been able to spend a little time in the past two days getting back into the swing of FE work as I ramp down on my current team. A few thoughts/questions come to mind before I hopefully take a stab at some of the items here.
In any case, those are my first thoughts as I think about how we can take on this one together. |
@prodonjs Great ideas, so the Polymer3 part crossed my mind, and I think we probably should go with that approach. However, I still feel strongly about the templating engine. However we can still minify and bundle our source (by not running the templating on runtime, but rather before building the prod/dev build. Something like: npm run
OR
npm run dev
npm run [build / prod]
|
SGTM. I'm working on two PoCs, one with Webpack and one using Polymer CLI. I think the webpack version will end up being the better solution of the two and converting what you already have to Polymer3 is already mostly there. I'm still a little bit uncertain of why we want to have server-side rendering of the front-end templates. It seems like we'd accomplish the same thing using webpack in our production build task that would package all of the static assets into a folder and then we'd just make sure that we serve that statics folder with express. Are there pieces in the server runtime that we'd expect to need to pass to the template when it's first rendered? |
Let's do a quick meeting to discuss the templating part. I don't plan on having node / express doing any of the templating. So this is not what I mean: app.set('templating_engine', 'jade') I meant webpack would parse jade so we can write symantically sound and condense HTML and have it preprocessed and minified for us by webpack. I also think Webpack is probably the better / more scalable way to go. To my knowledge Polymer CLI is better for static web builds? |
Created #2572 which addresses the following
|
@prodonjs How are we looking with the Build Information API? |
So according to my conversation with @kunmingg it seems we want to add a new I have a feeling, in that case, we could just have our webpack read the root-level version info, or use |
Any thoughts on this @prodonjs? |
It seems like doing some statically during build time would be the best option. The command that already lives in the Makefile |
@avdaredevil: Closing this issue. In response to this:
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. |
Child issue of #2361
Goals
The text was updated successfully, but these errors were encountered: