Skip to content
Permalink
Browse files

Clean up fixtures and disable report builder

  • Loading branch information...
Maffooch Maffooch
Maffooch authored and Maffooch committed Jul 1, 2019
1 parent 44724d0 commit d8370b9f37404a47e8aec638ba43933347435145

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -1 +1,26 @@
[{"model": "dojo.benchmark_type", "pk": 1, "fields": {"name": "OWASP ASVS", "version": "v. 3.1", "benchmark_source": "OWASP ASVS", "created": "2018-04-03T20:05:56.066Z", "updated": "2018-04-03T20:10:06.519Z", "enabled": true}}, {"model": "dojo.benchmark_type", "pk": 2, "fields": {"name": "OWASP ASVS", "version": "v. 4.0.1", "benchmark_source": "OWASP ASVS", "created": "2019-03-27T10:44:17.930Z", "updated": "2019-03-27T10:44:17.930Z", "enabled": true}}]
[
{
"model": "dojo.benchmark_type",
"pk": 1,
"fields": {
"name": "OWASP ASVS",
"version": "v. 3.1",
"benchmark_source": "OWASP ASVS",
"created": "2018-04-03T20:05:56.066Z",
"updated": "2018-04-03T20:10:06.519Z",
"enabled": true
}
},
{
"model": "dojo.benchmark_type",
"pk": 2,
"fields": {
"name": "OWASP ASVS",
"version": "v. 4.0.1",
"benchmark_source": "OWASP ASVS",
"created": "2019-03-27T10:44:17.930Z",
"updated": "2019-03-27T10:44:17.930Z",
"enabled": true
}
}
]

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -1 +1,26 @@
[{"model": "dojo.objects_review", "pk": 1, "fields": {"name": "Untracked", "created": "2018-03-16T15:21:36.057Z"}}, {"model": "dojo.objects_review", "pk": 2, "fields": {"name": "Manual Code Review Required", "created": "2018-03-17T14:21:58.541Z"}}, {"model": "dojo.objects_review", "pk": 3, "fields": {"name": "Manual Code Review and Create Test", "created": "2018-03-20T20:50:31.509Z"}}]
[
{
"model": "dojo.objects_review",
"pk": 1,
"fields": {
"name": "Untracked",
"created": "2018-03-16T15:21:36.057Z"
}
},
{
"model": "dojo.objects_review",
"pk": 2,
"fields": {
"name": "Manual Code Review Required",
"created": "2018-03-17T14:21:58.541Z"
}
},
{
"model": "dojo.objects_review",
"pk": 3,
"fields": {
"name": "Manual Code Review and Create Test",
"created": "2018-03-20T20:50:31.509Z"
}
}
]

Large diffs are not rendered by default.

@@ -4,8 +4,8 @@

urlpatterns = [
# reports
url(r'^reports$',
views.reports, name='reports'),
# url(r'^reports$',
# views.reports, name='reports'),
url(r'^product/type/(?P<ptid>\d+)/report$',
views.product_type_report, name='product_type_report'),
url(r'^product/(?P<pid>\d+)/report$',
@@ -20,25 +20,53 @@
name='endpoint_report'),
url(r'^product/report$',
views.product_findings_report, name='product_findings_report'),
url(r'^reports/(?P<rid>\d+)/download$', views.download_report,
# url(r'^reports/(?P<rid>\d+)/download$', views.download_report,
# name='download_report'),
# url(r'^reports/(?P<rid>\d+)/delete', views.delete_report,
# name='delete_report'),
# url(r'^reports/(?P<rid>\d+)/status', views.report_status,
# name='report_status'),
# url(r'^reports/(?P<rid>\d+)/regen', views.regen_report,
# name='regen_report'),
# url(r'^reports/(?P<rid>\d+)/revoke', views.revoke_report,
# name='revoke_report'),
# url(r'^reports/cover$',
# views.report_cover_page, name='report_cover_page'),
# url(r'^reports/builder$',
# views.report_builder, name='report_builder'),
# url(r'^reports/findings$',
# views.report_findings, name='report_findings'),
# url(r'^reports/endpoints$',
# views.report_endpoints, name='report_endpoints'),
# url(r'^reports/custom$',
# views.custom_report, name='custom_report'),


# Temporary removal of reports
url(r'^reports$',
views.down, name='reports'),
url(r'^reports/(?P<rid>\d+)/download$', views.down,
name='download_report'),
url(r'^reports/(?P<rid>\d+)/delete', views.delete_report,
url(r'^reports/(?P<rid>\d+)/delete', views.down,
name='delete_report'),
url(r'^reports/(?P<rid>\d+)/status', views.report_status,
url(r'^reports/(?P<rid>\d+)/status', views.down,
name='report_status'),
url(r'^reports/(?P<rid>\d+)/regen', views.regen_report,
url(r'^reports/(?P<rid>\d+)/regen', views.down,
name='regen_report'),
url(r'^reports/(?P<rid>\d+)/revoke', views.revoke_report,
url(r'^reports/(?P<rid>\d+)/revoke', views.down,
name='revoke_report'),
url(r'^reports/cover$',
views.report_cover_page, name='report_cover_page'),
views.down, name='report_cover_page'),
url(r'^reports/builder$',
views.report_builder, name='report_builder'),
views.down, name='report_builder'),
url(r'^reports/findings$',
views.report_findings, name='report_findings'),
views.down, name='report_findings'),
url(r'^reports/endpoints$',
views.report_endpoints, name='report_endpoints'),
views.down, name='report_endpoints'),
url(r'^reports/custom$',
views.custom_report, name='custom_report'),

views.down, name='custom_report'),
url(r'^reports/findings$',
views.down, name='report_findings'),
url(r'^reports/endpoints$',
views.down, name='report_endpoints'),
]
@@ -30,6 +30,10 @@
logger = logging.getLogger(__name__)


def down(request):
return render(request, 'disabled.html')


def report_url_resolver(request):
try:
url_resolver = request.META['HTTP_X_FORWARDED_PROTO'] + "://" + request.META['HTTP_X_FORWARDED_FOR']
@@ -0,0 +1,8 @@
{% extends "base.html" %}
{% block content %}
<h1>Feature Disabled</h1>
<hr/>
<h2>
This feature is currently down for maintenance and evaluation. We apologize for the inconvenience.
</h2>
{% endblock %}

0 comments on commit d8370b9

Please sign in to comment.
You can’t perform that action at this time.