Closed Bug 1124357 Opened 9 years ago Closed 9 years ago

alertmanager - when we switch branch/revision, we should regenerate tbplurl

Categories

(Testing :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jmaher, Assigned: mishravikas)

References

Details

in alertmanager, we have the ability to change a revision.  Many times we need to switch both the branch and the revision at the same time.  In the case of switching a revision, we should regenerate the tbplurl.  We currently build the tbplurl while ingesting alerts from the newsgroup, here is the code:
https://github.com/jmaher/alert_manager/blob/master/parse_news.py#L247

Ideally we could refactor that out and use it in server.py and parse_news.py.  This type of generation is useful as we get a link to view history and/or retrigger jobs on treeherder- it is a big timesaving device.
Assignee: nobody → vikasmishra95
the only piece missing is when we change a revision (without a branch change) that we regenerate the tbplurl.

the pr from comment 1 is merged!
(In reply to Joel Maher (:jmaher) from comment #2)
> the only piece missing is when we change a revision (without a branch
> change) that we regenerate the tbplurl.
> 
> the pr from comment 1 is merged!

Here's the missing piece https://github.com/jmaher/alert_manager/pull/129
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.