jinja: job view uses `phabricator_revision_url` for revisions not linked to phabricator
Categories
(Conduit :: Lando, defect)
Tracking
(Not tracked)
People
(Reporter: shtrom, Assigned: shtrom)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
(Keywords: leave-open)
Attachments
(3 files)
| Assignee | ||
Comment 1•7 months ago
|
||
Note: the admin page shows them better
| Assignee | ||
Updated•7 months ago
|
| Assignee | ||
Comment 2•7 months ago
|
||
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.
| Assignee | ||
Comment 3•6 months ago
|
||
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?)
| Assignee | ||
Comment 4•6 months ago
|
||
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
| Assignee | ||
Updated•1 month ago
|
Comment 6•1 month ago
|
||
| Assignee | ||
Comment 7•1 month ago
|
||
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
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
Description
•