-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add warning color to DAG in UI #245
Add warning color to DAG in UI #245
Conversation
I think we can/should make the check artifact and the check operator both red, no? Alternately, we can make the check operator green (it executed successfully) and the check artifact red (it was bad). But my guess is that if a check fails, we should make the operator and artifact both red. @jegonzal @agiron123 any thoughts? |
Making both of them red is inconsistent with the way we currently do things - if an operator fails, then the artifact is never written and so stays in a pending state, where they can't see the data. Do we want to try and change this larger pattern? I have no idea how hard that would be. And I don't know if marking only the artifact as red makes sense, because the operator needs to fail on error-severity checks to mark the entire workflow as failed. It would require some custom logic in the UI just for checks in order to pretend like the check operator passed but the artifact failed. I feel like marking both the warning check operator and artifact as orange is both the easiest and most consistent (warning is equivalent to success for all intents and purposes, except for the fact that a warning will show on the sidebar). |
So if a check returns |
Only if the check has ERROR severity, yes. It gets written in the WARNING case. |
Sorry, I think I'm being vague. I was asking if the |
By attached to you mean the artifact that is the input of the check operator? I think I was interpreting the question correctly then - but I just checked the code and it looks like we do persist the |
except AqueductError as e: | ||
assert TIP_OP_EXECUTION in e.message | ||
client.publish_flow("hello", artifacts=[processed_artifact]) | ||
# try: |
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.
Is there a reason why you are leaving this code commented out?
@vsreekanti I think both of them being red makes more sense since the two nodes are related to one another. |
Left a few comments on the code, but should be good to go after you resolve them @kenxu95 |
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.
Good to go after comments are resolved.
Ok I just read a bit more of the frontend code and there's quite a bit of entanglement here due to how much we treat checks as a special case through out codebase. For me to implement the best solution I need to know:
|
@kenxu95, let me know if you have any more questions about our conversations on Friday or if you feel like you have enough direction to wrap this up! |
oh sry meant to update this @vsreekanti I think I have enough direction. Chatted with Wei about this today and decided that a lot of this is better implemented on the backend, since the UI logic was getting super confusing. The backend stuff was done today and I'm currently polishing this up. |
437acaa
to
cd83d21
Compare
d8240b3
to
46b90b9
Compare
34fd8f4
to
c6e3b4a
Compare
5da1a85
to
3db4785
Compare
46b90b9
to
22a0985
Compare
3db4785
to
51a2084
Compare
22a0985
to
5acc2d7
Compare
got all the executation info built everything except the reads lint context siwtch ready for review uncomment fixed enum annoyance done fixed unit tests made change ready to test and think about some more look ready for review package log lint added warning error message and fixed lint package lock it works, except warnings need to look like warnigns warnings works fix the status bar hold up lint and review
f756018
to
2a0bb2d
Compare
Describe your changes and why you are making these changes
When a warning check fails to pass, we mark the artifact it outputs in a new warning color: orange.
Also, changes the color palette to something with more contrast (cc: @agiron123 as color picker)
Examples below:I realize these are currently inconsistent as to whether the check operator or the check artifact are highlighted - curious as to what the right colors are in each case. The error check fails the entire workflow, so having the operator be red seems to make sense. I'm thinking I also make the warning operator orange? Or maybe in the future we should squash the check operator and artifact concepts into one. @vsreekanti
Related issue number (if any)
ENG-1265
Checklist before requesting a review
python3 scripts/run_linters.py -h
for usage).run_integration_test
: Runs integration testsskip_integration_test
: Skips integration tests (Should be used when changes are ONLY documentation/UI)