- Apr 12, 2022
-
-
Antoine Lambert authored
Render at most 8 ticks for the vertical axis and compute step from yMax instead of using a hardcoded value. Filter out the 2014 label rendering on the horizontal axis.
-
Antoine Lambert authored
Use new method origin_visit_get_with_statuses from storage interface returning all visits and their statuses instead of querying latest status for each visit. Also bump the maximum number of visits per page from 50 to 1000. Related to T4090
-
- Apr 11, 2022
-
-
Antoine Lambert authored
Previously, the admin-deposit-list view was retrieving all deposits data using the /1/private/deposits/ swh-deposit endpoint and was filtering those client side. That approach was not efficient at all as the number of deposits increased. So from now on, swh-web will simply forward the listing requests to the new /1/private/deposits/datatables/ endpoint of swh-deposit which will perform the same filtering and pagination operations as before in an efficient way. Also remove code that is now dead and ensure deposit private API base URL can be set in configuration with or without trailing slash. 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
-
Antoine R. Dumont authored
Related to T4125
-
Antoine Lambert authored
Updating origin type counters in coverage widget every hour seems more reasonable that doing it every 5 minutes as the underlying database requests are pretty costly.
-
- Apr 07, 2022
-
-
Antoine Lambert authored
That function is used to dynamically retrieve the list of origin visit types (git, svn, npm, ...) currently supported by Software Heritage. That list of visit types is then used to populate the visit type dropdown in the search form available in the home and search pages of the web application. However getting that visit types list is costly as it involves sending an elasticsearch query through the use of swh-search. So instead of sending that costly query each time a search form must be rendered, prefer to cache the visit types list and update it every 24 hours. That change significantly speedup the homepage rendering of the web application.
-
Antoine Lambert authored
Add a decorator enabling to put the result of a function call in Django cache, subsequent calls will then directly return the cached value. Use that decorator whenever it is possible in swh-web codebase to simplify the handling of cached values and improve code readability.
-
vlorentz authored
The next version of swh-deposit will do this renaming, for consistency with _admin_deposit_list and the rest of the codebase.
-
- Apr 06, 2022
-
-
Nicolas Dandrimont authored
This function uses the html part if no text part is available. If multiple plain text or html parts are available, it uses the largest one.
-
Nicolas Dandrimont authored
These utilities allow us to generate addresses of the form `<localpart>+<integer>.<signature>@<domain>`, where the integer is the primary key of a given object for which we want to track email exchanges. The signature prevents the addresses from being forged, that is, the addresses have to be explicitly generated and displayed by the web app to be discovered. The counterpart function retrieves all relevant email addresses from the list of recipients of an email message, and validates the signatures to recover the integer values that won't have been tampered with. These new utilities are expected to be used in the views and signal handlers pertaining to processing of inbound email messages.
-
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.
-
Antoine Lambert authored
This reverts commit ea683ca5. djangorestframework-stubs 1.5.0 has been released, fixing the observed issue.
-
- Apr 05, 2022
-
-
Antoine Lambert authored
-
Antoine Lambert authored
It prevents infinite reload of web application in browser when overriding swh-web sources in docker-compose environment and modifying js sources.
-
Nicolas Dandrimont authored
This allows calling the function on a single recipient rather than on a whole message, when one isn't available.
-
Nicolas Dandrimont authored
Other modules still need psycopg2 and pytest-postgresql 4 introduced a hard dependency on psycopg3. This restriction has only been needed since a recent dependency upgrade (or maybe a pip upgrade); pip has stopped being able to solve it itself for some reason.
-
vlorentz authored
-
vlorentz authored
as a modal
-
- Apr 04, 2022
-
-
anirudhlakhotia authored
Related to T4078
-
- Apr 01, 2022
-
-
Antoine R. Dumont authored
Prior to this commit, this was done for all deposits but it's only a good fallback for typed deposit 'code'. Related to T4123
-
Nicolas Dandrimont authored
Some database tests depend on the text returned by the SQL client, which is localized. Forcing the C locale ensures the text gets output in English.
-
Nicolas Dandrimont authored
-
- Mar 30, 2022
-
-
Jayesh authored
Remove mock fixture from load tests. Add tests for status update and API failure. Add tests for mailto email contact.
-
Antoine Lambert authored
pybadges v3.0 has recently been released so we can now remove those workarounds to fix pytest execution as they are no longer needed.
-
- Mar 29, 2022
-
-
Antoine R. Dumont authored
This should alleviate problems in documentation build. Also, it turns out the add_forge_now apps was misconfigured. This commit fixes that.
-
vlorentz authored
In particular, this preserves the tab when refreshing the page or going through browser history
-
vlorentz authored
-
Antoine R. Dumont authored
My hypothesis is that those missing files are making the swh-docs build fail. That's the only difference i see between those swh.web folders and the rest.
-
vlorentz authored
Origin URLs were printed unsanitized
-
vlorentz authored
-
vlorentz authored
This is more manageable than handling it manually with URL fragments (which repeatedly breaks when adding new tabs).
-
vlorentz authored
This is IMO more manageable than handling it manually with URL fragments (which repeatedly breaks when adding new tabs). A future commit will do this for Add Forge Now, too.
-
- Mar 28, 2022
-
-
Antoine Lambert authored
The Alegreya font we are using ships some ligatures producing confusing text rendering, for instance the ligatures for `~` and some characters. So disable font common ligatures with CSS.
-
Antoine Lambert authored
The use of nodemon is no longer needed as source files are already watched by django and webpack development servers automatically reloading backend and frontend parts of the web application.
-
Antoine Lambert authored
There is an incompatibility between latest django-stubs release (1.10.0) and current release of djangorestframework-stubs. So temporarily pin django-stubs to < 1.10.0 until the issue is fixed.
-
- Mar 25, 2022
-
-
Antoine R. Dumont authored
This introduces a checkbox to allow users to filter their own requests. It's turned on by default. The checkbox is not shown when connected anonymously. Either browsing anonymously or unchecking the box (when connected) allows to browse all requests. This also unifies the rendering with the save code now view: - same datatable layout - the spinner logo during computation Related to T4011
-