- Apr 12, 2022
- Apr 11, 2022
-
-
https://schema.org/http://schema.org/vlorentz authored
It was always meant to be the latter, and it's also the only one that was implemented in a release (as https://forge.softwareheritage.org/D7212 fixed the typo in the code before it was released)
-
Antoine Lambert authored
Those are not really of interest and generate a lof of noise when executing django development server.
-
Antoine Lambert authored
Add new private API endpoint /1/private/deposits/datatables/ to list and filter deposits whose responses are intended to be consumed by datatables javascript framework used in deposits admin Web UI. Originally that view was implemented in swh-web but for performance reasons it has been decided to move it in swh-deposit, swh-web will then simply forward the HTTP request to swh-deposit. Related to T3128
-
- Apr 08, 2022
-
-
Antoine Lambert authored
-
Antoine Lambert authored
Related to T3922
-
Antoine Lambert authored
black is considered stable since release 22.1.0 and the version we are currently using is quite outdated and not compatible with click 8.1.0, so it is time to bump it to its latest stable release. Please note that E501 pycodestyle warning related to line length is replaced by B950 one from flake8-bugbear as recommended by black. https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length Related to T3922
-
- Apr 07, 2022
-
-
vlorentz authored
Resolves SWH-DEPOSIT-2P <https://sentry.softwareheritage.org/share/issue/b8509b67972f425a8f5c06805f8cf2fe/>
-
vlorentz authored
'metadata_raw' made sense, to discriminate from 'metadata_dict'; but no longer does, now that the latter was removed. Additionally, swh-web expects it to be named 'raw_metadata', so it could never actually get the metadata.
- Apr 06, 2022
-
-
vlorentz authored
-
Antoine Lambert authored
pytest-postgresql 3.1.3 and pytest-redis 2.4.0 added support for pytest >= 7 so we can now drop the pytest pinning.
-
- Mar 28, 2022
-
-
vlorentz authored
-
vlorentz authored
Manually validate <codemeta:affiliation>. Unfortunately, this cannot be validated by codemeta.xsd, because Codemeta has conflicting requirements: 1. https://codemeta.github.io/terms/ requires it to be Text (represented by simple content), but 2. https://doi.org/10.5063/SCHEMA/CODEMETA-2.0 requires it to be an Organization (represented by complex content) See https://github.com/codemeta/codemeta/pull/239 for a discussion about this issue.
-
- Mar 22, 2022
-
-
Antoine Lambert authored
Due to test modules being copied in subdirectories of the build directory by setuptools, it makes pytest fail by raising ImportPathMismatchError exceptions when invoked from root directory of the module. So ignore the build folder to discover tests.
-
- Mar 21, 2022
- Mar 16, 2022
-
-
Antoine R. Dumont authored
Related to T4013#80910
-
- Mar 15, 2022
-
-
vlorentz authored
Broken by swh-core 0.12.0 (777ea186fa8d31a972ccc15abb7c42297e0a399f)
-
- Mar 08, 2022
-
-
vlorentz authored
-
vlorentz authored
-
vlorentz authored
It makes it easier to identify tests when failing + helps git to make readable diffs.
-
Antoine R. Dumont authored
Prior to this, this was fetching all deposits and then for each deposit, query further information. Then return results and let the pagination happen. This now keeps the queryset lazy, the pagination happens and when a page is requested, this fetches further information on the subset required. Related to T4020
-
Antoine R. Dumont authored
-
- Mar 04, 2022
-
-
vlorentz authored
And Make it non-empty in 'GET Cont-IRI'. And remove the legacy <atom:deposit_date> from the 'GET Cont-IRI'. As it was always empty, there is no need to keep it for backward compatibility.
-
- Mar 02, 2022
-
-
This function is only used by server-side API checks. Having it defined in the main utils module makes the deposit client transitively depend on Django (via swh.deposit.errors), which does not seem necessary.
- Feb 28, 2022
-
-
Nicolas Dandrimont authored
This function is only used by server-side API checks. Having it defined in the main utils module makes the deposit client transitively depend on Django (via swh.deposit.errors), which does not seem necessary.
-
vlorentz authored
-
vlorentz authored
-
vlorentz authored
For now, this only checks they aren't just a string
-
vlorentz authored
This only checks the name is a string.
-
vlorentz authored
-
vlorentz authored
For now this increases code complexity, but this will allow addition of other check more easily.
-
vlorentz authored
-
vlorentz authored
-