Open Bug 2012875 Opened 7 months ago Updated 1 month ago

jinja: job view uses `phabricator_revision_url` for revisions not linked to phabricator

Categories

(Conduit :: Lando, defect)

defect

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: shtrom, Assigned: shtrom)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Keywords: leave-open)

Attachments

(3 files)

Note: the admin page shows them better

Assignee: nobody → omehani

We should probably bite the bullet, and have a generic filter that stringifies / linkifies any revision, and makes the correct choice based on what the revision metadata contains, rather than pushing this logic to the templates.

Depends on: 2002161
Attached image image.png

This is a problem for Try pushes as well, which makes up links to invalid Phabricator links. In this case, it would be better to have either no link, or links to the commits (when they exist?)

This is also a problem for PRs. We could redirect them to the pull-request page, but we'll need to add a pull_repo to the Revision model, to allow full information when resolving the pull_number

See Also: → 2044181
Duplicate of this bug: 2050084
Status: NEW → ASSIGNED
Depends on: 1941245

This is partially blocked by bug 2012875 because the error-breakdown Jinja template heavily assumes that a (Phab) revision_id will be provided https://github.com/mozilla-conduit/lando/blob/cc19927647809a11edf1af643b74dcca8a8b47be/src/lando/ui/jinja2/partials/error-breakdown.html#L14-L17, which is not always the case (e.g. Try or PRs).

This is the last user of phabricator_revision_url

Keywords: leave-open
Summary: jinja: job view uses `phabricator_revision_url` for try tasks not linked to phabricator → jinja: job view uses `phabricator_revision_url` for revisions not linked to phabricator
See Also: → 2059108
Blocks: lando-qol
No longer blocks: try-new-lando
Duplicate of this bug: 2060585
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: