- Feb 11, 2020
-
-
vlorentz authored
Use a __getattr__ like storage proxies do. This will also be required when the validation proxy of swh-storage is merged, as this proxy uses __getattr__, so inspect.getmembers() does not return all method names that can be called.
-
- Feb 10, 2020
-
-
Antoine Lambert authored
- Feb 05, 2020
-
-
Shankhadeep Dey authored
When a search query does not look like a PID, do not try to resolve it by sending a request to the dedicated endpoint and directly search for origins. Closes T1850
-
- Feb 03, 2020
-
-
Antoine Lambert authored
Related to T2265
-
- Jan 30, 2020
-
-
Antoine Lambert authored
Current implementation of polyfill for document.elementsFromPoint is buggy, so fix it to avoid js errors in old browsers.
-
- Jan 29, 2020
-
-
Antoine Lambert authored
Stop leaking those ids in results from the /api/1/origins/ endpoint. Remove any reference to those ids in the doc and the code. Related to T1791
-
Antoine Lambert authored
Closes T2250
-
Stefano Zacchiroli authored
(and sort alphabetically)
-
- Jan 28, 2020
-
-
Daniele Serafini authored
-
- Jan 24, 2020
-
-
Daniele Serafini authored
-
Daniele Serafini authored
-
- Jan 23, 2020
-
-
Antoine Lambert authored
These tests were broken since rDCORE0aaab9cfdb3fc1059f601666b41851e45131db79.
-
- Jan 22, 2020
-
-
Antoine Lambert authored
-
Antoine Lambert authored
Since Django 2.2, the debug log is polluted by numerous useless messages coming from the 'django.utils.autoreload' module. So filter them out.
-
Antoine Lambert authored
-
- Jan 21, 2020
-
-
Antoine Lambert authored
-
- Jan 17, 2020
-
-
Antoine Lambert authored
Update sample response to reflect the format updated in elasticsearch 7.x.
-
Antoine Lambert authored
Since the upgrade to elasticsearch 7.x in production, the parsing of the total hits value was failing due to a breaking change in the JSON response format.
-
- Jan 16, 2020
-
- Jan 15, 2020
-
-
Antoine Lambert authored
-
Antoine Lambert authored
Origin persistent identifiers are not publicly resolvable as they are not intrinsic and for internal usage only. So raise an exception to get a 400 error code in concerned endpoints.
-
Antoine Lambert authored
This fixes the rendering of textual contents when using Django >= 2.x. The issue was spotted thanks to the cypress tests.
-
Antoine Lambert authored
Those tests were broken since rDCORE2255767b9763cefe0841a8d0231f568adcec87ff.
-
Antoine R. Dumont authored
Related to D2522
-
- Jan 14, 2020
-
-
Antoine Lambert authored
Fix swh-web execution when using Django >= 2 as some error handler signatures have changed since Django 1.x Add a new tox job to build swh-web with latest Django 2.x version.
-
Antoine Lambert authored
There is more version mismatch issues, also use djangorestframework-stubs.
-
- Jan 13, 2020
-
-
Antoine Lambert authored
-
Antoine Lambert authored
It does not contain Python files but rather Javascript and CSS source files generated by webpack but also fonts and image files. So it seems a better practice to move this folder at the root of the repository and package it as module data files when creating a distribution wheel. Closes T2155
-
- Jan 10, 2020
-
-
Antoine Lambert authored
The typing_extensions module from mypy is used since 76480202 so we need to add it as explicit dependency.
-
- Jan 07, 2020
-
-
vlorentz authored
For now, this keeps support for using swh-storage for search, in case we want to quickly revert to it with no code change. But in the future, we may want to remove this fallback.
-
Antoine Lambert authored
Ensure that all URIs returned in JSON responses of the Web API are absolute (prefixed with protocol and domains). That commit consists in: - adding a request parameter to our custom django reverse function in order to build an abolute URI before returning it - providing the input HTTP requests as parameter to reverse in API endpoints implementation - centralizing all enrich functions adding URIs in API responses in the swh.web.api.utils module - modifying tests implementation to check all returned URIs are absolute - adding some new and missing tests related to these improvements - modifying enrich function tests to remove hardcoded data in favor of hypothesis Closes T2154
-
vlorentz authored
This currently does not change much, but will be needed to support swh-search.
-
vlorentz authored
-
- Jan 06, 2020
-
-
Antoine Lambert authored
Stubbing XHR requests checking latest origin visits and waiting for them before continuing the tests seems to effectively reduce the long running times and the high memory usage.
-
Antoine Lambert authored
Cypress coverage plugin do not seem to generate the HTML report anymore so add a npm command to explicitely produce it in CI jobs
-
Antoine Lambert authored
Closes T2166
-
Antoine Lambert authored
-
- Dec 17, 2019
-
-
vlorentz authored
-
- Dec 16, 2019
-
-
vlorentz authored
-