.+)/$',
get_content_code_data_by_filename,
name='tests-content-code-filename'))
urlpatterns.append(url(r'^tests/data/content/code/filenames/$',
get_content_code_data_all_filenames,
name='tests-content-code-filenames'))
diff --git a/swh/web/settings/tests.py b/swh/web/settings/tests.py
index ced666b3..a91d22a9 100644
--- a/swh/web/settings/tests.py
+++ b/swh/web/settings/tests.py
@@ -1,102 +1,103 @@
# Copyright (C) 2017-2019 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU Affero General Public License version 3, or any later version
# See top-level LICENSE file for more information
"""
Django tests settings for swh-web.
"""
import sys
from swh.web.config import get_config
scope1_limiter_rate = 3
scope1_limiter_rate_post = 1
scope2_limiter_rate = 5
scope2_limiter_rate_post = 2
scope3_limiter_rate = 1
scope3_limiter_rate_post = 1
save_origin_rate_post = 10
swh_web_config = get_config()
swh_web_config.update({
'debug': False,
'secret_key': 'test',
+ 'history_counters_url': '',
'throttling': {
'cache_uri': None,
'scopes': {
'swh_api': {
'limiter_rate': {
'default': '60/min'
},
'exempted_networks': ['127.0.0.0/8']
},
'swh_api_origin_visit_latest': {
'limiter_rate': {
'default': '6000/min'
},
'exempted_networks': ['127.0.0.0/8']
},
'swh_vault_cooking': {
'limiter_rate': {
'default': '120/h',
'GET': '60/m'
},
'exempted_networks': ['127.0.0.0/8']
},
'swh_save_origin': {
'limiter_rate': {
'default': '120/h',
'POST': '%s/h' % save_origin_rate_post,
}
},
'scope1': {
'limiter_rate': {
'default': '%s/min' % scope1_limiter_rate,
'POST': '%s/min' % scope1_limiter_rate_post,
}
},
'scope2': {
'limiter_rate': {
'default': '%s/min' % scope2_limiter_rate,
'POST': '%s/min' % scope2_limiter_rate_post
}
},
'scope3': {
'limiter_rate': {
'default': '%s/min' % scope3_limiter_rate,
'POST': '%s/min' % scope3_limiter_rate_post
},
'exempted_networks': ['127.0.0.0/8']
}
}
}
})
from .common import * # noqa
from .common import ALLOWED_HOSTS, LOGGING # noqa
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': swh_web_config['test_db'],
}
}
# when not running unit tests, make the webapp fetch data from memory storages
if 'pytest' not in sys.argv[0]:
swh_web_config.update({
'debug': True,
'e2e_tests_mode': True
})
from swh.web.tests.data import get_tests_data, override_storages # noqa
test_data = get_tests_data()
override_storages(test_data['storage'], test_data['idx_storage'])
else:
ALLOWED_HOSTS += ['testserver']
# Silent DEBUG output when running unit tests
LOGGING['handlers']['console']['level'] = 'INFO'
diff --git a/swh/web/templates/homepage.html b/swh/web/templates/homepage.html
index 4bd35348..c3ca9e07 100644
--- a/swh/web/templates/homepage.html
+++ b/swh/web/templates/homepage.html
@@ -1,121 +1,102 @@
{% extends "layout.html" %}
{% comment %}
Copyright (C) 2017-2019 The Software Heritage developers
See the AUTHORS file at the top-level directory of this distribution
License: GNU Affero General Public License version 3, or any later version
See top-level LICENSE file for more information
{% endcomment %}
{% load static %}
{% block title %}Welcome to the Software Heritage archive{% endblock %}
{% block navbar-content %}
Welcome to the Software Heritage archive
{% endblock %}
{% block content %}
Overview
The long term goal of the Software Heritage initiative is to collect
all publicly available software in source code form together with its
development history, replicate it massively to ensure its preservation,
and share it with everyone who needs it.
The Software Heritage archive is growing over time as we crawl new source code from software
projects and development forges. We will incrementally release archive search
and browse functionalities — as of now you can check whether source code you care
about is already present in the archive or not.
Content
A significant amount of source code has already been ingested in the Software Heritage
archive. It currently includes:
Size
As of today the archive already contains and keeps safe for you the following amount
of objects:
-
+
-
-
Directories
-
-
-
+
-
-
Authors
-
-
-
+
+
+ Note: the counters and graphs above are based on heuristics that might not reflect the exact
+ size of the archive. While the long-term trends shown and ballpark figures are reliable,
+ individual point-in-time values might not be.
+
+
Access
{% endblock %}