-
Notifications
You must be signed in to change notification settings - Fork 43
Display Log Detective jobs/runs triggered by the same action on the same line #544
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,9 +33,8 @@ export const LogDetectiveResultsTable = () => { | |
| const columnNames = { | ||
| forge: "Forge", | ||
| trigger: "Trigger", | ||
| packit_id: "Packit ID", | ||
| analysisId: "Analysis ID", | ||
| target: "Target", | ||
| packitId: "Packit ID", | ||
| targets: "Targets", | ||
| commitSha: "Commit SHA", | ||
| timeSubmitted: "Time Submitted", | ||
| }; | ||
|
|
@@ -45,25 +44,22 @@ export const LogDetectiveResultsTable = () => { | |
| ); | ||
|
|
||
| const TableHeads = [ | ||
| <Th key={columnNames.forge} width={10}> | ||
| <Th key={columnNames.forge} width={5}> | ||
| {columnNames.forge} | ||
| </Th>, | ||
| <Th key={columnNames.trigger} width={15}> | ||
| {columnNames.trigger} | ||
| </Th>, | ||
| <Th key={columnNames.packit_id} width={10}> | ||
| {columnNames.packit_id} | ||
| <Th key={columnNames.packitId} width={5}> | ||
| {columnNames.packitId} | ||
| </Th>, | ||
| <Th key={columnNames.analysisId} width={15}> | ||
| {columnNames.analysisId} | ||
| <Th key={columnNames.targets} width={50}> | ||
| {columnNames.targets} | ||
| </Th>, | ||
| <Th key={columnNames.target} width={15}> | ||
| {columnNames.target} | ||
| </Th>, | ||
| <Th key={columnNames.commitSha} width={15}> | ||
| <Th key={columnNames.commitSha} width={10}> | ||
| {columnNames.commitSha} | ||
| </Th>, | ||
| <Th key={columnNames.timeSubmitted} width={15}> | ||
| <Th key={columnNames.timeSubmitted} width={10}> | ||
| {columnNames.timeSubmitted} | ||
| </Th>, | ||
| ]; | ||
|
|
@@ -90,36 +86,35 @@ export const LogDetectiveResultsTable = () => { | |
| <Tr>{TableHeads}</Tr> | ||
| </Thead> | ||
| <Tbody> | ||
| {data?.map((log_detective_result) => ( | ||
| <Tr key={log_detective_result.packit_id}> | ||
| {data?.map((group) => ( | ||
| <Tr key={group.packit_id}> | ||
| <Td dataLabel={columnNames.forge}> | ||
| <ForgeIcon url={log_detective_result.project_url} /> | ||
| <ForgeIcon url={group.project_url} /> | ||
| </Td> | ||
| <Td dataLabel={columnNames.trigger}> | ||
| <strong> | ||
| <TriggerLink trigger={log_detective_result}> | ||
| <TriggerSuffix trigger={log_detective_result} /> | ||
| <TriggerLink trigger={group}> | ||
| <TriggerSuffix trigger={group} /> | ||
| </TriggerLink> | ||
| </strong> | ||
| </Td> | ||
| <Td dataLabel={columnNames.packit_id}> | ||
| {log_detective_result.packit_id} | ||
| </Td> | ||
| <Td dataLabel={columnNames.analysisId}> | ||
| {log_detective_result.analysis_id} | ||
| </Td> | ||
| <Td dataLabel={columnNames.target}> | ||
| <StatusLabel | ||
| status={log_detective_result.status} | ||
| target={log_detective_result.chroot} | ||
| link={`/jobs/log-detective/${log_detective_result.packit_id}`} | ||
| /> | ||
| <Td dataLabel={columnNames.packitId}>{group.packit_id}</Td> | ||
| <Td dataLabel={columnNames.targets}> | ||
| {group.log_detective_targets.map((target) => ( | ||
| <span key={target.id}> | ||
| <StatusLabel | ||
| status={target.status} | ||
| target={target.target_arch} | ||
| link={`/jobs/log-detective/${target.id}`} | ||
| /> | ||
| </span> | ||
| ))} | ||
| </Td> | ||
| <Td dataLabel={columnNames.commitSha}> | ||
| {log_detective_result.commit_sha} | ||
| {group.commit_sha?.slice(0, 7)} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm wondering whether we could use the It is used for example here (both the trigger and commit SHA are below the "Koji Build Results" title) It might be nice to do this similarly for the "Log Detective Results" (to display both the trigger and commit SHA below the title), but I'm fine with keeping it the way it is if that's the visual look that what you prefer.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. agreed |
||
| </Td> | ||
| <Td dataLabel={columnNames.timeSubmitted}> | ||
| <Timestamp stamp={log_detective_result.submitted_time} /> | ||
| <Timestamp stamp={group.submitted_time} /> | ||
| </Td> | ||
| </Tr> | ||
| ))} | ||
|
|
||
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
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.
Unless I'm mistaken, I think that you also need to replace
log_detective_target_idswithlog_detective_targetsinLogDetectiveGroup.tsx. VS Code is complaining thatlog_detective_target_idsdoes not exist on typeLogDetectiveGroupin that file.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.
yeah forgot to fix this, but I feel like the group view is now redundant anyway, so I'll remove it completely. thx