-
Notifications
You must be signed in to change notification settings - Fork 205
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
Show job dependency on the Test overview page #3287
Show job dependency on the Test overview page #3287
Conversation
This comment has been minimized.
This comment has been minimized.
bdc01b8
to
19757ee
Compare
Codecov Report
@@ Coverage Diff @@
## master #3287 +/- ##
==========================================
- Coverage 91.50% 91.49% -0.01%
==========================================
Files 215 215
Lines 13064 13066 +2
==========================================
+ Hits 11954 11955 +1
- Misses 1110 1111 +1
Continue to review full report at Codecov.
|
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.
You reuse and refactor existing code. That is good. But I am not sure why you want to add both the branch and the chain icons at the same time. We should keep the UI well organized and only add distinct elements when they add specific information. Is the branch icon telling me anything more than the chain icon?
Because on the tests page, there are two icons related to job's dependency. The branch icon shows that one job has how many children jobs and parents jobs, the chain icon shows parent job's result. I add two icons in order to keep the same with the tests page. |
Well, on /tests we have separate columns for the job status and job details status. We don't need to replicate all of this on the overview page. I am just worried that this becomes a bit cluttered. We can rethink the design on /tests as well. Let's give others the opportunity to comment as well |
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.
This makes it at least consistent with the 'All tests' page but I agree with @okurz that it looks a bit cluttered. Maybe you can decrease the opacity and/or size of the buttons to improve that. Some UIs also hide certain elements for a row completely until one hovers above the row. But I'm also not sure whether that makes sense here and what would work best.
19757ee
to
2874814
Compare
@okurz @Martchus Thanks for your suggestions. I modified the code to only show one icon. I use the color of branch icon to tell the state of dependency job. Here is the example: |
This comment has been minimized.
This comment has been minimized.
2874814
to
4eb5722
Compare
This comment has been minimized.
This comment has been minimized.
That's a good idea for later which I have recorded in https://progress.opensuse.org/issues/15850#note-10 now |
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.
@Amrysliu please put a bit more details in the git commit message describing your changes in a bit more detail.
This is a very nice improvement! Just a question: I'm assuming from the code that just like in the Thanks! |
I don't think the hovering is included in this PR. (@Amrysliu Correct me if I'm wrong.) |
@Martchus is right. The hovering is not included in this PR. |
4eb5722
to
0326a0e
Compare
@schlad @alvarocarvajald Thanks for your comments. We have added those ideas to the related ticket and will re-evaluate what need to do next step. Your feedback is appreciated. Thanks again. |
1. use a little branch icon to show the related jobs 2. different color of the branch icon means different status: a. when the icon is blue, it means the job has no parent job b. when the icon is red, it means the job's parent job failed c. when the icon is green, it means the job's parent job success See: https://progress.opensuse.org/issues/15850
0326a0e
to
3722ef4
Compare
highlightJobsHtml(childrenToHighlight, parentsToHighlight) + | ||
var dependencyResult = showJobDependency(deps); | ||
var dependencyHtml = ''; | ||
if (dependencyResult['title'] !== undefined) { |
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.
I think this should also be dependencyResult.title
, isn't it?
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.
I guess it isn't that important.
This is a followup for os-autoinst#3287. 1. when putting the mouse over the branch icon: a. highlight parent jobs with red color b. highlight child jobs with blue color 2. Fix a javascript issue Related: os-autoinst#3287 (comment)
This is a followup for os-autoinst#3287. 1. when putting the mouse over the branch icon: a. highlight parent jobs with red color b. highlight child jobs with blue color 2. Fix a javascript issue Related: os-autoinst#3287 (comment)
This is a followup for os-autoinst#3287. 1. when putting the mouse over the branch icon: a. highlight parent jobs with red color b. highlight child jobs with blue color 2. Fix a javascript issue Related: os-autoinst#3287 (comment)
Following the way that used in tests page:
a. when the icon is blue, it means the job has no parent job
b. when the icon is red, it means the job's parent job failed
c. when the icon is green, it means the job's parent job success
See: https://progress.opensuse.org/issues/15850