Skip to content

feat(#527): link queued TF pipeline IDs to API requests endpoint - #552

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/527-tf-queued-pipeline-link
Open

fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/527-tf-queued-pipeline-link

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown

Summary

  • When Testing Farm jobs are queued (before packit receives a webhook update), web_url is empty and the pipeline ID had no functional link
  • Now, when web_url is empty, the pipeline ID links to the Testing Farm API requests endpoint so users can check the current state
  • Both the list view (TestingFarmRunsTable) and detail view (TestingFarmRun) are updated with the fallback URL logic

Changes

  • TestingFarmRunsTable.tsx: Pipeline ID <a> tag now uses web_url || TF API URL instead of just web_url
  • TestingFarmRun.tsx: Pipeline ID ClipboardCopy is wrapped in a link that uses the same fallback logic, providing a clickable link in both queued and completed states

Testing

  • Verified TypeScript compilation passes for changed files (no new type errors)
  • Biome linter passes on both changed files
  • Existing test suite passes (pre-existing failure in BaseStatusLabel.test.tsx is unrelated)

Closes #527

Post-script verification

  • Branch is not main/master (agent/527-tf-queued-pipeline-link)
  • Secret scan passed (gitleaks — cea57ba2ebf6bdefc39028d1a9aace4f5427a2a4..HEAD)
  • PR body secret scan passed (gitleaks — no-git)

When a Testing Farm job is queued and web_url is not yet populated,
the pipeline ID was displayed without a functional link. Now, when
web_url is empty, the pipeline ID links to the Testing Farm API
requests endpoint so users can check the current state of queued
jobs.

In TestingFarmRunsTable, the pipeline ID link falls back to
the TF API URL when web_url is falsy. In TestingFarmRun, the
pipeline ID ClipboardCopy is wrapped in a link that uses the
same fallback logic.

Closes #527
@centosinfra-prod-github-app

Copy link
Copy Markdown

@betulependule betulependule left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on my review, I would lean towards the alternative implementation of this issue in #551

<a
href={
data.web_url ||
`https://api.testing-farm.io/v0.1/requests/${data.pipeline_id}`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This duplicates the data.web_url link. Previously, this link was only part of the status field (line 112), but now the Pipeline ID field also contains either the data.web_url link or https://api.testing-farm.io/v0.1/requests/${data.pipeline_id} in case of queued jobs.

I don't find this consistent, and could be a bit confusing for users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Triggers review agent dispatch

Projects

Development

Successfully merging this pull request may close these issues.

Point testing-farm jobs in queued state to api reporting the state

3 participants