- Feb 04, 2022
-
-
Antoine Lambert authored
Related to T3908
-
Antoine Lambert authored
pytest v7.0.0 removed _pytest.tmpdir.TempdirFactory, which is used by some of the pytest plugins we use.
-
Antoine R. Dumont authored
This clarifies the current code and optimizes the re-fetching of all origin visits / origin visit statuses when new visits happen. It's an optimization providing previous visits are in the cache already. The second part serves also as a workaround of some problematic origins (the ones with a high number of visits). It's only a workaround though because when voiding the cache (e.g. restart the cache service), the initial error (e.g. crash 500 or 502, ...) will still happen. Another change is on its way to try and fix that specific problem. Related to T3905
-
- Feb 03, 2022
-
-
Antoine Lambert authored
-
Antoine R. Dumont authored
-
Antoine Lambert authored
Add a new database table to store mailmap settings that will be used to add display names for an authors that can be found in the archive. Add endpoints to add or update these mailmap settings restricted to staff users or users with special permission. They will be used in the upcoming Web UI to manage mailmaps.
-
Antoine Lambert authored
Signature of storage.revision_log has changed in 4544d7ca8e9e and the limit parameter is not at the same position as before, so better passing it as keyword parameter to avoid future errors of this type.
-
- Feb 02, 2022
-
-
Antoine Lambert authored
- Jan 31, 2022
-
-
Antoine Lambert authored
The campaign is now over.
-
Antoine Lambert authored
This reverts commit 615ef02e.
-
- Jan 26, 2022
-
-
Antoine Lambert authored
In the Save Code Now Web UI, add the link to browse a saved origin only if the visit status is valid. This prevents to browse the saved origin when loading data are not yet available in storage database (replication lag for instance). Related to T3848
-
Antoine Lambert authored
Simulate HTML form behavior by adding a keyup event listener on the vault modals dedicated to tasks creation. Related to T3845
-
Antoine Lambert authored
Some fields returned in the elasticsearch document got renamed since so fix their extraction.
-
Antoine Lambert authored
-
Antoine Lambert authored
-
- Jan 25, 2022
-
-
Antoine Lambert authored
Add support for new programming languages to highlight in the webapp by integrating highlight.js language plugins in the highlightjs chunk generated by webpack. Fix issue in Python code that was preventing to map a mimetype to a language through its aliases.
-
Antoine Lambert authored
Some module folders do not have package.json file in it but licenses can still be overridden using the licenseOverride option of the plugin. Previously, package.json file was attempted to be read regardless of possible license override, which was causing error.
-
- Jan 21, 2022
-
-
vlorentz authored
-
- Jan 13, 2022
-
-
Antoine Lambert authored
Fix regression introduced in 835a8601: History link was no longer displayed for all origins in snapshot directory view.
-
Antoine Lambert authored
The elasticsearch request used to get detailed info about a save code now request was not returning any result anymore as some fields in the swh-workers-* index got renamed.
- Jan 12, 2022
-
-
vlorentz authored
The next release of swh-model will remove this attribute, because it was only a special case, and we will replace it with the generalized 'offset_bytes'.
-
vlorentz authored
A future release of swh-model will change its constructor's signature (replace 'offset' and 'negative_utc_offset' with 'offset_bytes).
-
Antoine Lambert authored
In order to allow public access to the graph API, we need to prevent users to DoS the graph service with resource intensive queries. Fortunately, the graph API supports a max_edges parameter to limit the number of edges traversed by the graph. According to the type of user querying the graph service through the Web API proxy, a maximum value for the max_edges will be set before sending a request to the graph API. Three type of users are considered: anonymous, standard and staff. The maximum values for the max_edges query parameter according to user types are retrieved from the webapp configuration. Related to T3836
-
Antoine Lambert authored
It is possible to pass query parameters in the graph_query URL argument of the Web API graph endpoint if the ? character is quoted. So add extra processing in the endpoint implementation to merge the query parameters extracted from the graph_query value and those coming from the django request. The purpose is to avoid some query parameters to be silently ignored when requesting the graph API.
-
- Jan 11, 2022
-
-
Antoine Lambert authored
If the request sent to the graph API returns an error, forward the raw error response as the Web API response instead of trying to parse a JSON response that usually fails.
-
Antoine Lambert authored
-
- Jan 10, 2022
-
-
Antoine Lambert authored
A filename must be provided as parameter to the get_hljs_language_from_filename function and not a path. This fixes some code highlighting issue when a filename who has a language associated is not in the root directory of the browsed filesystem.
-
Antoine Lambert authored
That variable was set in an incorrect way. As revision_id can be None, it should be initialized to False and set to True after checking the revision can be found in the archive. This fixes the non display of the "History" button in the snapshot directory view when a snapshot contains no revisions. Related to T3840
-
Antoine Lambert authored
It now exists in the archive snapshot containing only releases targeting directories (typically those generated by the package loaders). Thus these snapshots do not contain any revisions, this was leading to a server error when trying to browse their history view. Now a 404 error will be returned when trying to browse the revisions history of such snapshots. Related to T3840
-
- Jan 05, 2022
-
-
Antoine Lambert authored
-
- Jan 04, 2022
-
-
Antoine Lambert authored
This reverts commit 725fd12c. For some reason, the webpack build fails on Jenkins. This needs further investigation so revert package upgrades until then.
-
Antoine Lambert authored
In production, login related URLs should be the OpendID Connect ones.
-
Antoine Lambert authored
-
Antoine Lambert authored
Fundraising campain will continue until the end of January. Related to T3822
-
- Dec 16, 2021
-
-
Antoine R. Dumont authored
Related to T3811
-
Antoine R. Dumont authored
Related to T3812
-
- Dec 14, 2021
-
-
Antoine Lambert authored
Let's promote the fundraising campaign instead.
-
- Dec 13, 2021
-
-
Antoine Lambert authored
Use yarn-deduplicate utility to cleanup lock file.
-