- Feb 12, 2025
-
-
Antoine Lambert authored
When searching for an origin URL, the search interface redirects to its browse interface if the origin URL exists in SWH database. Nevertheless, it the origin could not be archived, the redirection was still done leading to a 404 error so ensure to check the origin has a snapshot before redirecting. Fixes #4828.
-
Antoine Lambert authored
-
- Feb 11, 2025
-
-
Antoine Lambert authored
-
Antoine Lambert authored
-
- Feb 05, 2025
-
-
Renaud Boyer authored
-
- Jan 27, 2025
-
-
Sort releases according to their version numbers instead of their names.
-
- Jan 22, 2025
-
-
Antoine Lambert authored
nodejs 18 is close to EOL and some swh-web dependencies (pdfjs for instance) bump minimal required nodejs version to 20 so time to upgrade.
-
Renaud Boyer authored
-
Renaud Boyer authored
-
- Jan 20, 2025
-
-
Guillaume Samson authored
Related to swh/infra/sysadm-environment#5534
-
- Jan 17, 2025
-
-
Renaud Boyer authored
-
- Jan 16, 2025
-
-
Antoine Lambert authored
The swh.web.settings.tests settings are now dedicated to run Python tests. The swh.web.settings.cypress settings should be used instead in that Makefile as they do not use postgres but sqlite3 instead.
-
David Douard authored
-
- Jan 15, 2025
-
-
David Douard authored
- django rename_app is no longer needed, - mypy execution is now properly configured (in pyproject.toml).
-
David Douard authored
-
- Jan 14, 2025
-
-
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.
-
David Douard authored
There is a discrepancy between the config entry and the module name, so deal with it...
-
Renaud Boyer authored
-
- Jan 10, 2025
-
-
David Douard authored
This is a dict which will automatically raise a ConfigurationError when trying to access a non-existent key.
-
David Douard authored
-
David Douard authored
-
David Douard authored
But keep it activate for development mode (aka when using the swh.web.settings.development config file).
-
David Douard authored
Prevent from having the logic of computing this boolean value (from the configuration) replicated in several places.
-
David Douard authored
-
David Douard authored
Prevent polluting the logs, especially in cypress tests.
-
David Douard authored
In some test scenarios, task types may not be registered.
-
David Douard authored
-
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).
-
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.
-
- Jan 09, 2025
-
-
David Douard authored
remove SWH_WEB_XXX_NAMES constants as well as 'xxx_server_names' config entries. These are not used any more.
-
David Douard authored
-
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).
-
David Douard authored
It makes tests a bit easier to read and maintain.
-
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.
-
- Jan 08, 2025
-
-
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.
-
Renaud Boyer authored
-
- Jan 07, 2025
-
-
Renaud Boyer authored
-
- Jan 06, 2025
-
-
Antoine Lambert authored
-
Antoine Lambert authored
Some subversion repositories use these credentials for anonymous access so allow to submit origin URLs with such credentials in Save Code Now form and Web API endpoint.
-
-