remove "latest" redirector views as the menu now links directly to the latest test run
This commit is contained in:
parent
033ed0e6d0
commit
1baf2642ea
|
@ -14,14 +14,3 @@ class ResultsView(TemplateView):
|
|||
|
||||
return context
|
||||
|
||||
|
||||
class LatestResultsView(RedirectView):
|
||||
def get_redirect_url(self):
|
||||
repos = get_repositories()
|
||||
if not repos:
|
||||
raise Http404("No testr repositories could be loaded")
|
||||
|
||||
return reverse('tempest_results', kwargs={
|
||||
'run_id': repos[0].get_latest_run().get_id()
|
||||
})
|
||||
|
||||
|
|
|
@ -14,14 +14,3 @@ class TimelineView(TemplateView):
|
|||
|
||||
return context
|
||||
|
||||
|
||||
class TimelineLatestView(RedirectView):
|
||||
def get_redirect_url(self):
|
||||
repos = get_repositories()
|
||||
if not repos:
|
||||
raise Http404("No testr repositories could be loaded")
|
||||
|
||||
return reverse('tempest_timeline', kwargs={
|
||||
'run_id': repos[0].get_latest_run().get_id()
|
||||
})
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from django.conf.urls import patterns, include, url
|
||||
|
||||
from .results import ResultsView,LatestResultsView
|
||||
from .timeline import TimelineView, TimelineLatestView
|
||||
from .results import ResultsView
|
||||
from .timeline import TimelineView
|
||||
from .aggregate import AggregateResultsView
|
||||
from .summary import SummaryView
|
||||
|
||||
|
@ -14,10 +14,6 @@ urlpatterns = patterns('',
|
|||
url(r'^results_(?P<run_id>\d+).html$',
|
||||
ResultsView.as_view(),
|
||||
name='tempest_results'),
|
||||
url(r'^results.html$',
|
||||
LatestResultsView.as_view(),
|
||||
name='tempest_results_latest'),
|
||||
|
||||
url(r'^timeline_(?P<run_id>\d+).html$',
|
||||
TimelineView.as_view(),
|
||||
name='tempest_timeline'),
|
||||
|
@ -36,7 +32,6 @@ urlpatterns = patterns('',
|
|||
url(r'^aggregate.html$',
|
||||
AggregateResultsView.as_view(),
|
||||
name='tempest_aggregate_results'),
|
||||
|
||||
url(r'^summary.html$',
|
||||
SummaryView.as_view(),
|
||||
name='tempest_summary_results')
|
||||
|
|
Loading…
Reference in New Issue