This commit is contained in:
Armen Zambrano 2020-01-14 09:09:21 -05:00 коммит произвёл GitHub
Родитель b4463cc9c1
Коммит b45566399f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 26 добавлений и 27 удалений

Просмотреть файл

@ -102,9 +102,8 @@ jsonschema==3.0.1 \
--hash=sha256:a5f6559964a3851f59040d3b961de5e68e70971afb88ba519d27e6a039efff1a \
--hash=sha256:0c0a81564f181de3212efa2d17de1910f8732fa1b71c42266d983cd74304e20d
djangorestframework==3.9.4 \
--hash=sha256:376f4b50340a46c15ae15ddd0c853085f4e66058f97e4dbe7d43ed62f5e60651 \
--hash=sha256:c12869cfd83c33d579b17b3cb28a2ae7322a53c3ce85580c2a2ebe4e3f56c4fb
djangorestframework==3.11.0 \
--hash=sha256:05809fc66e1c997fd9a32ea5730d9f4ba28b109b9da71fccfa5ff241201fd0a4
django-cors-headers==3.2.0 \
--hash=sha256:a8b2772582e8025412f4d4b54b617d8b707076ffd53a2b961bd24f10ec207a7c \

Просмотреть файл

@ -30,53 +30,53 @@ project_bound_router = routers.SimpleRouter()
project_bound_router.register(
r'jobs',
jobs.JobsProjectViewSet,
base_name='jobs',
basename='jobs',
)
project_bound_router.register(
r'seta/job-priorities',
seta.SetaJobPriorityViewSet,
base_name='seta-job-priorities'
basename='seta-job-priorities'
)
project_bound_router.register(
r'push',
push.PushViewSet,
base_name='push',
basename='push',
)
project_bound_router.register(
r'note',
note.NoteViewSet,
base_name='note',
basename='note',
)
project_bound_router.register(
r'bug-job-map',
bug.BugJobMapViewSet,
base_name='bug-job-map',
basename='bug-job-map',
)
project_bound_router.register(
r'job-log-url',
job_log_url.JobLogUrlViewSet,
base_name='job-log-url',
basename='job-log-url',
)
project_bound_router.register(
r'performance/data',
performance_data.PerformanceDatumViewSet,
base_name='performance-data')
basename='performance-data')
project_bound_router.register(
r'performance/signatures',
performance_data.PerformanceSignatureViewSet,
base_name='performance-signatures')
basename='performance-signatures')
project_bound_router.register(
r'performance/platforms',
performance_data.PerformancePlatformViewSet,
base_name='performance-signatures-platforms')
basename='performance-signatures-platforms')
class TextLogErrorRouter(routers.DefaultRouter):
@ -94,45 +94,45 @@ class TextLogErrorRouter(routers.DefaultRouter):
tle_router = TextLogErrorRouter()
tle_router.register(r'text-log-error',
text_log_error.TextLogErrorViewSet,
base_name='text-log-error')
basename='text-log-error')
# refdata endpoints:
default_router = routers.DefaultRouter()
default_router.register(r'jobs', jobs.JobsViewSet, base_name='jobs')
default_router.register(r'jobs', jobs.JobsViewSet, basename='jobs')
default_router.register(r'repository', refdata.RepositoryViewSet)
default_router.register(r'taskclustermetadata', refdata.TaskclusterMetadataViewSet,
base_name='taskclustermetadata')
basename='taskclustermetadata')
default_router.register(r'optioncollectionhash', refdata.OptionCollectionHashViewSet,
base_name='optioncollectionhash')
basename='optioncollectionhash')
default_router.register(r'failureclassification', refdata.FailureClassificationViewSet)
default_router.register(r'user', refdata.UserViewSet, base_name='user')
default_router.register(r'user', refdata.UserViewSet, basename='user')
default_router.register(r'machineplatforms', machine_platforms.MachinePlatformsViewSet,
base_name='machineplatforms')
basename='machineplatforms')
default_router.register(r'performance/alertsummary',
performance_data.PerformanceAlertSummaryViewSet,
base_name='performance-alert-summaries')
basename='performance-alert-summaries')
default_router.register(r'performance/alert',
performance_data.PerformanceAlertViewSet,
base_name='performance-alerts')
basename='performance-alerts')
default_router.register(r'performance/framework',
performance_data.PerformanceFrameworkViewSet,
base_name='performance-frameworks')
basename='performance-frameworks')
default_router.register(r'performance/bug-template',
performance_data.PerformanceBugTemplateViewSet,
base_name='performance-bug-template')
basename='performance-bug-template')
default_router.register(r'performance/issue-tracker',
performance_data.PerformanceIssueTrackerViewSet,
base_name='performance-issue-tracker')
basename='performance-issue-tracker')
default_router.register(r'performance/validity-dashboard',
performance_data.TestSuiteHealthViewSet,
base_name='validity-dashboard')
basename='validity-dashboard')
default_router.register(r'bugzilla', bugzilla.BugzillaViewSet,
base_name='bugzilla')
basename='bugzilla')
default_router.register(r'jobdetail', jobs.JobDetailViewSet,
base_name='jobdetail')
basename='jobdetail')
default_router.register(r'auth', auth.AuthViewSet,
base_name='auth')
basename='auth')
urlpatterns = [
url(r'^project/(?P<project>[\w-]{0,50})/', include(project_bound_router.urls)),