- Oct 29, 2021
-
-
Jayesh authored
This fix deprecates and redirects /origin/branches?origin_url=<url> and /origin/<url>/branches to /snapshot/branches/ - test fixes - documentation changes Related to T3608 Fixes T3687
-
- Oct 28, 2021
-
-
vlorentz authored
Deposits come from other sources than HAL now.
-
- Oct 26, 2021
-
-
Antoine Lambert authored
Build cache feature is now available in webpack 5.x, no need to use an extra loader.
-
Antoine Lambert authored
-
Antoine Lambert authored
docutils 0.18 just got released but it breaks the _HTTPDomainDocVisitor due to a missing visit_system_message method, so add it to fix the new errors that appeared.
-
Antoine Lambert authored
At the time there were some specific processings for github, sourceforge, bitbucket and gitlab repo URLs validation but not anymore so some code can be simplified now.
-
Antoine Lambert authored
The assumption that URL paths to git repos for the git.code.sf.net netloc are necessarily prefixed by /p/ is wrong. Related to T3690
-
- Oct 25, 2021
-
-
Antoine Lambert authored
When setting an unsupported value for the request Accept header when querying the /api/1/graph/ endpoint, an error was raised as the Django DRF response does not have the accepted_media_type attribute set in that case, leading to a 500 HTTP status code. So ensure a proper JSON error response will be generated with the 406 HTTP status code when submitting such requests.
-
Antoine R. Dumont authored
The origin visit type were mistyped which rendered those actually not visited. This is now properly fixed upstream. Related to T3675
-
- Oct 22, 2021
-
-
Jayesh authored
This fix deprecates and redirects /origin/log?origin_url=<url> and /origin/<url>/log to /snapshot/log/ - Generic function to redirect to a new route. - Generic logic to forward url args and query params. - Initial tests for snapshot view. - Documentation updates Related to T3608
-
- Oct 21, 2021
-
-
Antoine Lambert authored
-
- Oct 20, 2021
-
-
Antoine Lambert authored
Users with the "swh.web.admin.list_deposits" permission (deposit clients) will be able to access the deposits administration interface. Only their own deposits will be displayed. Related to T3174
-
- Oct 19, 2021
-
-
Antoine Lambert authored
Recent changes in swh-web tests broke the debian package builds. When building debian packages, the pytest command is not available in build environment and must be executed through "python3 -m pytest" instead. Debian buster packages a quite old version of pytest (3.10.1) and some pytest hooks parameters and CLI options are missing compared to upstream version so workaround these issues. Also silent non critical warnings related to the use of hypothesis and pytest function scoped fixtures as they add a lot of noise in pytest reports.
-
Antoine Lambert authored
When a save request has been rejected, the rejection note can be displayed by clicking on the info icon in the save request tables. Related to T3256
-
Antoine Lambert authored
In the save code now administation page, display a new modal when rejecting a save request enabling to add a rejection note through the use of a text area. Default behavior is to enter a custom note but a couple of prefilled rejection notes can be selected for the following cases: - the origin URL is not a repository link - the visit type for the origin URL is not valid - the origin URL cannot be found Related to T3256 Related to T3257
-
Antoine Lambert authored
File has been renamed in a recent commit.
-
Antoine Lambert authored
An error 500 was returned instead of a 404 status code.
-
- Oct 15, 2021
-
-
Antoine Lambert authored
Some tests input data returned by swh-web fixtures are sampled from filtered objects stored in a static test archive. In order to reproduce any failing test with the same fixture data: - add a new autouse function scope fixture setting the random seed to current time before each test execution and putting that seed in cache - implement custom pytest reporting which adds a new section detailing the random seeds used for each failing test and the pytests commands to reproduce the failures - add a new pytest option --swh-web-random-seed enabling to explicitly specify the random seed that will be used to run the tests
-
Antoine Lambert authored
Some tests input data returned by fixtures are sampled from filtered objects stored in a static test archive. In order to avoid repeating the same filtering operations multiple times, put these filtered data in cache.
-
- Oct 14, 2021
-
-
Antoine R. Dumont authored
Related to T3658
-
Antoine Lambert authored
As this is done through a decorator to replace a variable in a docstring, it has the side effect to call swh-scheduler API when importing the module. This is not required when running tests so do not fetch that list of visit types in that case.
-
Antoine Lambert authored
-
- Oct 13, 2021
-
-
Antoine Lambert authored
Apart a couple strategies who are still used in some swh-web test inputs, turn the remaining ones into pytest fixtures. Closes T3603
-
Antoine Lambert authored
Related to T3603
-
- Oct 12, 2021
-
-
Antoine Lambert authored
Related to T3603
-
Antoine Lambert authored
Related to T3603
-
Antoine Lambert authored
Related to T3603
-
Antoine Lambert authored
Related to T3603
-
Antoine Lambert authored
Using such hypothesis strategies have several drawbacks so let's turn them into pytest fixtures as it feels a better way to do so. Related to T3603
-
- Oct 11, 2021
-
-
Jayesh authored
Add an extra parameter called directory_url in the snapshot_context. To fix the missing URL to the code (directory) view in case the snapshot is missing an origin context. Fixes T3644
-
- Oct 08, 2021
-
-
vlorentz authored
-
- Oct 07, 2021
-
-
Antoine Lambert authored
swh.model.swhids module should be used instead from now on. Also remove references to *_identifier functions in documentation.
-
- Oct 06, 2021
-
-
Antoine Lambert authored
Users with the "swh.web.api.save_origin" permission: - will not be rate limited on the /api/1/origin/save/ endpoint - will have their save requests immediately accepted
-
Antoine Lambert authored
-
Antoine Lambert authored
It ensures it will be ignored by git and will not be committed accidentally.
-
Antoine Lambert authored
-
Antoine Lambert authored
Ensure to restore origin visits visualization state (aka visits filtering) when reloading page.
-
Antoine Lambert authored
Handle "created" and "not_found" statuses in origin visits visualization. Put visit statuses colors in a dedicated file in order to share them between modules.
-