- Apr 07, 2022
-
-
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
-
Antoine R. Dumont authored
-
Jayesh authored
Maintain selected tab in add-forge-now create view. Add URL hash for the help tab. Improve cypress tests for the tab change. Related to T4050
-
Jayesh authored
Related to T4087
-
Antoine R. Dumont authored
This will allow to reuse that part inside the add-forge-now form as well. Related to T4011
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
This makes sure we use the right keycloak login link when deployed on staging and production webapps. This does not change anything for docker and dev makefile targets. Related to T4075
-
- Mar 24, 2022
-
-
Antoine Lambert authored
Use dedicated functions in archive module to get an origin visit by id or by date. Only get all visits as a fallback when one needs to get an origin visit by snapshot.
-
Antoine R. Dumont authored
Related to T4075
-
Antoine R. Dumont authored
Implementation wise, this extracts and reuses an already defined function to compute such date. Related to T4074
-
Antoine Lambert authored
-