-
Notifications
You must be signed in to change notification settings - Fork 319
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: Change color for selected node and edges on graph #2458
Conversation
Signed-off-by: tito12 <[email protected]>
@howardyoo please take a look and approve if it's what you expect :) |
Tested it and verified! Nice work - the UI now looks more helpful in terms of understanding upstream and downstream dependencies of the job/dataset that was selected. Thank you, @tito12 ! |
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.
LGTM, Approved.
@tito12, great work! What will the lineage path color be for failed jobs? That is, will the path be red for jobs with a failed state? |
According to this PR, there is no color based on the job's status. However, I think that may be a good idea, to distinguish status based on the color. @tito12 , how difficult would it be to include what Willy described within this PR? |
First idea was about to make green and red color due state, but it wasn't possible with current api. That's why I used neutral color with bold style previously and due proposition added green color for selected node and edges. Currently it's not possible to highlight all nodes on graph with state colors to include it here. @wslulciuc @howardyoo |
Hi @tito12 , In these calls, notice the 'runs' api call, which retrieves the 'run' information of the currently selected job (https://marquezproject.github.io/marquez/openapi.html#operation/getRun) The run json object has an attribute called 'STATE' which is
which are: NEW, So, I guess we might be able to use this state to indicate whether the job in question can be colored, so I believe the API does exist to extract that. I guess we should color NEW, RUNNING, COMPLETED normally, or if we really want to be fancy, maybe have 'running' state color a little differently (like bright green? or fade-blinking in green?), but as for 'ABORTED' and 'FAILED', I guess we should color them as As for the datasets (not jobs), the data available might be different. I guess the dataset keeps the 'createdByRun' to show information of the run (job)'s result - so the idea might be that
What do you think? |
I've investigated a little bit into this, but for now, it seems like the way the data is coming from the API, and how the lineage graph does NOT have anything related to 'status' suggests that it is not possible for it to render any |
Signed-off-by: tito12 <[email protected]> Signed-off-by: Xavier-Cliquennois <[email protected]>
Problem
Currently selected node and edges are not stand out from others too much.
Due to proposition from last comment from this PR #2384
Solution
Selected node and edges highligthed with primary (green) color which more visible than previous.
Checklist
CHANGELOG.md
(Depending on the change, this may not be necessary)..sql
database schema migration according to Flyway's naming convention (if relevant)