- Apr 30, 2020
-
-
Antoine Lambert authored
Related to T2330
-
Antoine Lambert authored
Related to T2330
-
Antoine Lambert authored
Related to T2330
-
Antoine Lambert authored
Enable to get SWHIDs context from JavaScript for the currently browsed object. Related to T2330
-
- Apr 29, 2020
-
-
Stefano Zacchiroli authored
-
Antoine Lambert authored
Fix a small regression introduced in 6da9fade and add tests.
-
Antoine Lambert authored
-
Antoine Lambert authored
Literal date strings must be in ISO 8601 format.
-
- Apr 24, 2020
-
-
Antoine Lambert authored
For consistency with other browse views, deprecate the /browse/directory/(sha1_git)/(path)/ endpoint and add a new one taking path as query parameter.
-
Antoine Lambert authored
Some browse views different from origin context ones can take an optional 'origin' query parameter name. For consistency whith origin context views, rename that parameter to 'origin_url'. Backward compatibility is already ensured in current implementation.
-
Antoine Lambert authored
Deprecate all origin context views taking an origin as url argument and add new views taking the origin url as query parameter. This change should mitigate double-slash issue that can happen on some clients or under certain apache2 configuration.
-
Antoine Lambert authored
Fix a regression inroduced in 09e18940: when a revision id is null (for instance when browsing an empty snapshot), do not attempt to lookup revision data to avoid an error 500.
-
- Apr 23, 2020
-
-
Antoine Lambert authored
pytest-django and pytest-flask both declare a fixture named client and the wrong one is picked when running swh-web tests. So avoid the loading of pytest flask plugin to prevent errors when running tests.
-
Antoine Lambert authored
Disambiguate and/or deprecate the following browse URLs: - GET /browse/origin/(origin_url)/content/(path)/ - GET /browse/origin/(origin_url)/directory/(path)/ - GET /browse/origin/(origin_url)/visit/(timestamp)/branches/ - GET /browse/origin/(origin_url)/visit/(timestamp)/content/(path)/ - GET /browse/origin/(origin_url)/visit/(timestamp)/directory/(path)/ - GET /browse/origin/(origin_url)/visit/(timestamp)/log/ - GET /browse/origin/(origin_url)/visit/(timestamp)/releases/ - GET /browse/snapshot/(snapshot_id)/content/(path)/ - GET /browse/snapshot/(snapshot_id)/directory/(path)/ Replace their use by providing timestamp and path as query parameters to these endpoints for consistency: - GET /browse/origin/(origin_url)/content/ - GET /browse/origin/(origin_url)/directory/ - GET /browse/origin/(origin_url)/log/ - GET /browse/origin/(origin_url)/branches/ - GET /browse/origin/(origin_url)/releases/ - GET /browse/snapshot/(snapshot_id)/content/ - GET /browse/snapshot/(snapshot_id)/directory/ Update endpoints documentation to reflect these changes. Closes T2115 Closes T2135
-
- Apr 22, 2020
-
-
Antoine Lambert authored
That message can only be displayed when browsing a directory in a snapshot context, for instance when browsing a branch whith a non resolvable revision. Related to T2353
- Apr 21, 2020
-
-
Antoine Lambert authored
Slightly refactor and improve the swh.web.browse.snapshot_context module: - merge _process_snapshot_request function into get_snapshot_context one - rename some dict keys and add snapshot / origin related type annotations - cleanup and simplify get_snapshot_context implementation - update some docstrings - add new exhaustive tests for get_snapshot_context function Closes T2360
-
Antoine Lambert authored
When no timestamp or visit id is provided to the get_origin_visit function, return the first visit with a non null snapshot instead of the first full visit. Indeed, a partial visit can have a valid snapshot and should be not filtered out.
-
- Apr 20, 2020
-
-
Antoine Lambert authored
Fix the numerous "'WSGIRequest' object has no attribute 'user'" error reported in production.
-
Antoine R. Dumont authored
Related to T2367
-
- Apr 17, 2020
-
-
Antoine Lambert authored
Notably upgrade jQuery to 3.5 and use recommended dompurify option.
-
Antoine Lambert authored
-
Antoine Lambert authored
-
Stefano Zacchiroli authored
-
- Apr 15, 2020
-
-
Antoine Lambert authored
-
Antoine Lambert authored
Split the test_origin_request_errors pita test into multiple smaller ones, use hypothesis and remove some no more needed mocks.
-
Antoine Lambert authored
Related to T2360
-
- Apr 10, 2020
-
-
Antoine Lambert authored
-
Antoine Lambert authored
A new major version of MathJax typesetter has been recently released which now enables to properly bundle the library with webpack. So remove previous CDN use to get MathJax and use a self hosted version from now on. Closes T1680
-
- Apr 08, 2020
-
-
Antoine Lambert authored
- reformat the whole swh-web Python codebase using black tool - add pre-commit hook to run black on all changed files - update flake8 configuration to match black code style - remove a lot of useless '# noqa' comments after new formatting - add black processing in tox
-
Antoine Lambert authored
-
- Apr 07, 2020
-
-
Antoine Lambert authored
Django 2.2 is now the version used in production so let's gain some tests execution time by removing the django 1.11 build when using tox.
-
Antoine Lambert authored
When an access token has expired, try to perform a silent OIDC session refresh through the use of a Django middleware. Closes T2267
-
- Apr 02, 2020
-
-
Antoine Lambert authored
Related to T2342
-
Antoine Lambert authored
Related to T2342
-
Antoine Lambert authored
Related to T2342
-
- Apr 01, 2020
-
-
Antoine Lambert authored
-
Antoine Lambert authored
When browsing a release targetting a revision, also add a link to associated directory view.
-
- Mar 31, 2020
-
-
Antoine Lambert authored
Since version 5.6, hypothesis warns on `@given` + function-scoped fixtures. So turns concerned swh-web fixtures from function-scoped to session-scoped (there is strictly no difference in tests execution result after that change) and ignore some warnings related to external function-scoped fixtures that are safe to use with @given (client from pytest-django and mocker from pytest-mock).
-