- Jan 15, 2025
-
-
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.
-
-
- Jan 03, 2025
-
-
-
Renaud Boyer authored
-
- Dec 19, 2024
-
- Dec 18, 2024
-
-
Antoine Lambert authored
The filesystem of a revision is browsable from the associated view but the display of the languages selection dropdown was missing when browsing a content.
-
Antoine Lambert authored
Ensure languages selection dropdown is displayed for content whose mime type starts with application/ if the content encoding is not binary, for instance application/json.
-
Antoine Lambert authored
-
- Dec 13, 2024
-
-
Antoine Lambert authored
The forcing of visit type introduced in 937a9609 should only be done when no snapshot related info have been passed as parameters to the get_snapshot_context function.
-
Antoine Lambert authored
- Dec 11, 2024
-
-
Antoine Lambert authored
Scheduler temporary backend has been removed in favor of a more efficient memory backend.
-
When no visit type for an origin is explicitly provided as query parameter, ensure a full VCS visit type (git, svn or hg) is selected by default when an origin has multiple visit types. Related to #4786.
-
Antoine Lambert authored
Previously, the length query parameter value sent to datatables list views implemented backend side was not restrained to a maximum value, making a potential DoS vector attack. Set that maximum value to 1000 which is the max page length offered by datatables Web UIs in swh-web. This maximum value can also be modified through configuration. Fixes #4820.
-
- Dec 10, 2024
-
-
Antoine Lambert authored
When the path query parameter targets a content in the root directory and has a leading slash, a 404 error was previously raised so ensure to handle that special case.
-
Antoine Lambert authored
-