-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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: added node constraint solver to UI #8887
Conversation
Review status: 0 of 54 files reviewed at latest revision, 13 unresolved discussions, some commit checks failed. ui/app/containers/nodeConstraints.tsx, line 20 [r8] (raw file):
State is a pretty overloaded word, since we already have the Redux state and the React component state. ui/app/containers/nodeConstraints.tsx, line 32 [r8] (raw file):
I feel like this could be hard to follow, since this isn't actually a list of constraints but more of a constraint selector of some sort? ui/app/containers/nodeConstraints.tsx, line 39 [r8] (raw file):
Since the types here a pretty simple, you can just combine everything straight up, without composing it piecewise. ui/app/containers/nodeConstraints.tsx, line 59 [r8] (raw file):
@mrtracy Do you prefer using ui/app/containers/nodeConstraints.tsx, line 61 [r8] (raw file):
Why do you need to wait for the next tick here? Also you probably don't need to specify an actual delay. You can leave off that parameter. ui/app/containers/nodeConstraints.tsx, line 77 [r8] (raw file):
Some of this can be rewritten nicely with
or, to maintain type safety,
ui/app/containers/nodeConstraints.tsx, line 79 [r8] (raw file):
ui/app/containers/nodeConstraints.tsx, line 91 [r8] (raw file):
I feel like this big ui/app/containers/nodeConstraints.tsx, line 92 [r8] (raw file):
Why are you only ever using ui/app/containers/nodeConstraints.tsx, line 121 [r8] (raw file):
What about writing this recursively so you aren't setting external values in a ui/app/containers/nodeConstraints.tsx, line 136 [r8] (raw file):
I'm not sure if you borrowed any of this code from a d3 example, but you should attribute it if you did. ui/app/containers/nodeConstraints.tsx, line 174 [r8] (raw file):
Eventually we should update this chart to conform to the styles of the rest of the site. ui/app/util/api.ts, line 200 [r8] (raw file):
Change comment. Comments from Reviewable |
cc @mrtracy |
Also: looks awesome! |
Thanks! Review status: 0 of 54 files reviewed at latest revision, 13 unresolved discussions, some commit checks failed. ui/app/containers/nodeConstraints.tsx, line 20 [r8] (raw file):
|
Review status: 0 of 54 files reviewed at latest revision, 13 unresolved discussions, some commit checks failed. ui/app/containers/nodeConstraints.tsx, line 59 [r8] (raw file):
|
Review status: 0 of 54 files reviewed at latest revision, 13 unresolved discussions, some commit checks failed. ui/app/containers/nodeConstraints.tsx, line 59 [r8] (raw file):
|
Review status: 0 of 54 files reviewed at latest revision, 5 unresolved discussions, some commit checks failed. ui/app/containers/nodeConstraints.tsx, line 77 [r8] (raw file):
|
Review status: 0 of 54 files reviewed at latest revision, 5 unresolved discussions, some commit checks failed. ui/app/containers/nodeConstraints.tsx, line 90 [r9] (raw file):
|
5216bde
to
14c096b
Compare
14c096b
to
76f8a78
Compare
Fixed an out of bounds error and added showing errors to the UI. |
76f8a78
to
2e87a1f
Compare
reopen if you still care about this PR |
I think we want this. @spencerkimball? I doubt @d4l3k will finish it up, though. |
Cool UI, but I don't believe we need it right now. |
@piyush-singh and @vilterp for inspiration. |
Thanks for calling this out @BramGruneir. I see something like this fitting into an end-to-end zone config editing experience integrated into the data distribution page (some discussion of this in #6306 as well):
This prototype (video) was my idea of how such a UI would work. |
This builds on the rest of the allocator PRs (#8786). Only review the last commit in this PR.
cc @maxlang @BramGruneir
This change is