Commits on Source (21)
-
Renaud Boyer authored2d348c5e
-
Network issues might happen that can slow down the loading of README byes so display a spinner by default in the card holding README content. Fixes #4827.
8738a04d -
David Douard authored
Replace usage of the hardcoded and swh specific SWH_WEB_INTERNAL_SERVER_NAMES by a more generic UNAUTHENTICATED_HOSTS config option to bypass authentication for the graph public APIs. This uses the same validation logic as django's ALLOWED_HOSTS one.
3f4ac7cb -
David Douard authored
It makes tests a bit easier to read and maintain.
7652d269 -
David Douard authored
Add a new 'corner_ribbon_text' config entry to specify the text displayed in said corner ribbon. It should allow to remove some very swh deployment specific hardcoded constants (especially urls).
2569d641 -
David Douard authored46a3271c
-
David Douard authored
remove SWH_WEB_XXX_NAMES constants as well as 'xxx_server_names' config entries. These are not used any more.
00577d73 -
David Douard authored
These default config values are mostly irrelevant for any kind of deployment. Removing the default values make it clear and mandatory these need to be explicitly configured. This also prevent the swh.web.utils.archive module from executing (backend instantiation) code at module loading time. Introduces a new patch_backend fixture to help mocking a specific method of a known configured backend (storage, vault, search etc.) to try to provide a standard and unified process to mock these in all tests.
e0afc520 -
David Douard authored
The correct behavior was depending on the order in which swh.web django apps are registered. This should allow to have less entries in the SWH_BASE_DJANGO_APPS so we can have an instance only serving /api for example (which is currently not possible).
c6c9a4d1 -
David Douard authored4a19c921
-
David Douard authored
In some test scenarios, task types may not be registered.
5cb4219c -
David Douard authored
Prevent polluting the logs, especially in cypress tests.
eca9a096 -
David Douard authored5ad83972
-
David Douard authored
Prevent from having the logic of computing this boolean value (from the configuration) replicated in several places.
3c39c8af -
David Douard authored
But keep it activate for development mode (aka when using the swh.web.settings.development config file).
8241f61f -
David Douard authored8c9ac698
-
David Douard authored26339e9c
-
David Douard authored
This is a dict which will automatically raise a ConfigurationError when trying to access a non-existent key.
b2735c62 -
Renaud Boyer authored61ab821e
-
David Douard authored
There is a discrepancy between the config entry and the module name, so deal with it...
0a834df7 -
django-stubs package requires mypy >= 1.12 and its latest release pins mypy to >= 1.14.0 which fails to validate some valid typings related to the standard Python module email. So bump and pin mypy to 1.13.0 to avoid typing errors in Jenkins CI.
2d49d142
Showing
- Makefile.local 3 additions, 2 deletionsMakefile.local
- cypress/e2e/add-forge-now-request-create.cy.js 2 additions, 2 deletionscypress/e2e/add-forge-now-request-create.cy.js
- cypress/e2e/layout.cy.js 2 additions, 1 deletioncypress/e2e/layout.cy.js
- cypress/plugins/index.js 1 addition, 1 deletioncypress/plugins/index.js
- requirements-swh.txt 1 addition, 1 deletionrequirements-swh.txt
- swh/web/add_forge_now/templates/add-forge-creation-form.html 3 additions, 2 deletionsswh/web/add_forge_now/templates/add-forge-creation-form.html
- swh/web/admin/urls.py 2 additions, 4 deletionsswh/web/admin/urls.py
- swh/web/api/tests/views/test_graph.py 28 additions, 5 deletionsswh/web/api/tests/views/test_graph.py
- swh/web/api/tests/views/test_origin.py 55 additions, 55 deletionsswh/web/api/tests/views/test_origin.py
- swh/web/api/views/graph.py 8 additions, 2 deletionsswh/web/api/views/graph.py
- swh/web/api/views/metadata.py 4 additions, 3 deletionsswh/web/api/views/metadata.py
- swh/web/api/views/raw.py 9 additions, 7 deletionsswh/web/api/views/raw.py
- swh/web/archive_coverage/tests/test_coverage.py 2 additions, 5 deletionsswh/web/archive_coverage/tests/test_coverage.py
- swh/web/archive_coverage/views.py 8 additions, 17 deletionsswh/web/archive_coverage/views.py
- swh/web/auth/urls.py 3 additions, 6 deletionsswh/web/auth/urls.py
- swh/web/banners/tests/test_app.py 2 additions, 1 deletionswh/web/banners/tests/test_app.py
- swh/web/browse/browseurls.py 3 additions, 0 deletionsswh/web/browse/browseurls.py
- swh/web/browse/templates/includes/readme-display.html 7 additions, 1 deletionswh/web/browse/templates/includes/readme-display.html
- swh/web/browse/urls.py 2 additions, 5 deletionsswh/web/browse/urls.py
- swh/web/config.py 39 additions, 111 deletionsswh/web/config.py