- Jul 02, 2024
-
-
Antoine Lambert authored
Synchronize it with the one used to render code elements in all pages of the webapp as it enables to better highlight them.
-
Nicolas Dandrimont authored
-
Hélène Jonin authored
-
- Jun 20, 2024
-
-
This should help avoiding implementation mistakes as mypy will now check typing when a client code use these interfaces. Fix some typing issues that were uncovered by this change.
-
Antoine Lambert authored
Instead of defining our own django assertion wrappers, prefer to use those from pytest-django.
-
- Jun 17, 2024
-
-
Hélène Jonin authored
-
Hélène Jonin authored
-
- Jun 06, 2024
-
-
Antoine Lambert authored
-
Antoine Lambert authored
OptimizeCSSAssetsPlugin is no longer maintained and must be replaced by CssMinimizerPlugin.
-
Antoine Lambert authored
It implied the migration of the eslint configuration files to the new flat format (thanks to the eslint-migrate-config CLI tool).
-
- May 27, 2024
-
-
Antoine Lambert authored
-
Antoine Lambert authored
-
- May 23, 2024
-
-
Hélène Jonin authored
-
Hélène Jonin authored
-
Hélène Jonin authored
-
Hélène Jonin authored
-
-
-
-
-
-
-
-
Hélène Jonin authored
-
Hélène Jonin authored
- Create new route with origin url as query param - Redirect old route
-
- May 22, 2024
-
-
Antoine Lambert authored
The oldest part of the scheduler API was updated to use model classes (based on attr package) instead of dictionaries in order to improve typing.
-
- May 16, 2024
-
-
Pierre-Yves David authored
-
Pierre-Yves David authored
-
Antoine Lambert authored
swh-model was updated to fix deserializing of origin qualifier in a QualifiedSWHID instance which breaks a test of the webapp. Align test with changes in swh-model and improve it to check that a qualified SWHID containing special characters that must be escaped can be successfully resolved to a browse URL but also that the latter can be successfully browsed.
-
- May 02, 2024
-
-
David Douard authored
Improve the main template to use better rules to show the "Administration" section of the left menu. Add a "Users & groups" entry if the swh.web.admin app is enabled. This later opens the users admin page (either keycloak or the django admin page) in a new tab.
-
Antoine Lambert authored
Set hypothesis max_examples to 1 and remove subtest fixture use.
-
Antoine Lambert authored
-
- Apr 30, 2024
-
-
Antoine Lambert authored
It fixes issues with autodoc processing as this django application is disabled by default.
-
-
Enable to use django administration site in swh-web by including "swh.web.admin" application in swh_extra_django_apps list from swh-web configuration. When enabled, the admin site is available through the new /manage/ endpoint. It allows an user to modify some django models of interest (adding, deleting or modifying rows) if he/she has adequate permissions to do so. Currently, only the add forge now request and save code now request models can be managed with the admin site through the use of the following permissions: - swh_web_add_forge_now.add_request - swh_web_add_forge_now.change_request - swh_web_add_forge_now.delete_request - swh_web_add_forge_now.view_request - swh_web_save_code_now.add_saveoriginrequest - swh_web_save_code_now.change_saveoriginrequest - swh_web_save_code_now.delete_saveoriginrequest - swh_web_save_code_now.view_saveoriginrequest When swh-web is using the default django authentication backend, the admin site also enables and administrator to manage user accounts and their permissions. When swh-web is using Keycloak as the authentication backend, the permissions listed above must be added as swh-web client roles and these roles can then be set for an user through the Keycloak admin console in order to use the features offered by the admin site.
-
Antoine Lambert authored
It messes up with django permissions creation when using pytest-xdist.
-
- Apr 29, 2024
-
-
Add a new migration file for the swh.web.auth django application enabling to persist webapp special permissions to database in order to be able to use them when the webapp relies of the default django authentication backend for login operations (mirror version of swh-web for instance that does not use Keycloak for authentication). The permissions can then be set for a particular user using the django admin views by a django user having the adequate permissions to modify user accounts. Some tests were modified as the reset_sequences parameter of django_db pytest mark cannot be used as it breaks persisted permissions.
-
- Apr 26, 2024
-
-
Antoine Lambert authored
Python uses symlinks for editable installs which was messing up with the code adding contents in the test archive from tests resources folder.
-
Antoine Lambert authored