- Jan 09, 2025
-
-
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
-
- Dec 09, 2024
-
-
Antoine Lambert authored
When browsing an archived object without any context (a plain revision for instance), the javascript variable swhid_with_context_url is null so the code computing parameter for the Web API citation endpoint was raising an exception. Spotted thanks to the cypress tests execution on Jenkins.
-
- Dec 06, 2024
-
-
Antoine Lambert authored
Django unescapes percent encoded query parameters when parsing them so we need to ensure the % character a SWHID can contain is escaped to avoid parsing an invalid SWHID.
-
Antoine Lambert authored
The minify-html tool use to minify HTML through a django middleware strips the type="submit" attribute from button elements so use ids instead to get such elements in cypress tests.
-
Antoine Lambert authored
Use HTML minification as in production to catch possible issues.
-
Antoine Lambert authored
Our custom HtmlMinifyMiddleware was using htmlmin package under the hood but it is no longer maintained and does not support Python 3.13. Prefer to use the django-minify-html package instead which is maintained and offers better performances as it is using an HTML minifier written in rust in its implementation.
-
Antoine Lambert authored
-
- Dec 05, 2024
-
-
Antoine Lambert authored
Canonicalise only forge URLs identified by pabs and not the whole set in database. Really fixes swh/infra/sysadm-environment#5504.
-
- Dec 04, 2024
-
-
Antoine Lambert authored
Fixes swh/infra/sysadm-environment#5504.
-
Paul Wise authored
-
Paul Wise authored
-
Paul Wise authored
Some tests were using canonical Bitbucket/Gitea/GitLab domains that should be blocked from being submitted to Add Forge Now. Other tests were using domains that have been parked.
-
- Dec 03, 2024
-
-
Paul Wise authored
Otherwise it could match URLs containing GitHub in the path/search/anchor, or with domains similar to GitHub ones but without the periods.
-
Check AFN creation form is rejecting new types of invalid forge URLs according to newly introduced forge URL validation rules.
-
-
As URL input in AFN form is validated at each typed character, the javascript URL constructor can raise an exception so it needs to be handled.
-
-