- Aug 24, 2022
-
-
Antoine Lambert authored
-
- Aug 23, 2022
-
-
Antoine Lambert authored
Display info about the number of add forge now requests (filtered or not) below the table on the left. Set default ordering to descending submission date.
-
Antoine Lambert authored
It heavily depends on browse templates so better moving it here. Also changes view URL from /embed/<swhid>/ to /browse/embed/<swhid>/ but keeps backward compatibility by adding a redirection from the old URL to the new one.
-
Antoine Lambert authored
Related to T4398
-
vlorentz authored
It makes it easier to find related endpoints than alphabetically sorting URLs. This removes datatables enhancements on this page, as they are longer relevant for a split table.
-
Antoine Lambert authored
Fix "cannot import name 'ADD_FORGE_MODERATOR_PERMISSION' from 'swh.web.auth.utils'" when autodoc processes the admin_views module from swh.web.add_forge_now.
-
- Aug 22, 2022
-
-
Antoine Lambert authored
-
- Aug 19, 2022
-
-
Antoine Lambert authored
This is such a better naming. Related to T4398
-
Antoine Lambert authored
Related to T4398
-
Antoine Lambert authored
Related to T4398
-
Antoine Lambert authored
Related to T4398
-
Antoine Lambert authored
Related to T4398
-
Antoine Lambert authored
Centralize all templates, views and urls related to add forge now into the add_forge_now django application. Related to T4398
-
Antoine Lambert authored
Move all templates, views, urls and commands related to the save code now feature into its dedicated django application. Also introduce a new django command rename_app to easily rename a django application when developing or deploying. Previously the save code now models were located in the swh.web.common application that will be removed so that is why that application renaming to swh.web.save_code_now is mandatory to avoid errors when running migrations. Related to T4398
-
Antoine Lambert authored
Move all templates, views, urls and commands related to the mailmap feature into its dedicated django application. Please note that the initial migration will not perform any database operations as the tables have already been created by the swh.web.auth django application the mailmap feature was previously located at. Related to T4398
-
Antoine Lambert authored
Towards reorganizing swh-web features into multiple django applications, introduce the following changes regarding their settings: - Declare a fixed set of base django apps and enable to add extra ones through configuration - Add application templates directory to django templates search paths - Automatically register URLs of selected django applications - Inject swh-web django app names in templates to check a feature is enabled Related to T4398
-
- Aug 18, 2022
-
-
Antoine Lambert authored
Inject transitions dict into Django template instead and pass it to js.
-
Antoine Lambert authored
-
- Aug 17, 2022
-
-
Antoine Lambert authored
This will prevent submission of add forge now requests with invalid forge URLs from the Web UI and the Web API.
-
Benoit Chauvet authored
-
- Aug 12, 2022
-
-
Antoine Lambert authored
Previously, the last moderator and modification date for an Add Forge Now request were retrieved by the model serializer. While it is enough for display, it prevents to sort the requests by last modification date when using datatables. So prefer to add the last_moderator and last_modified_date to the Request model instead and update their values when a new RequestHistory model is created. When running migrations, existing requests stored in production database will have the values of these new fields set according to their history.
-
- Aug 10, 2022
-
-
Antoine Lambert authored
It enables to help debugging swh-web JavaScript errors in Sentry Web UI by demangling transpiled, minified and bundled JavaScript in order to view source code context obtained from stack traces in its original, untransformed form.
-
Antoine Lambert authored
-
Benoit Chauvet authored
-
vlorentz authored
It looks weird when email clients soft-wrap on smaller number of columns; eg. Thunderbird defaults to 72 when editing in plain text.
-
- Aug 04, 2022
-
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
The ctags indexer has been stopped a long time ago and recently got dropped from the indexer base code. As the api exposing this in the webapp is hidden, we can safely remove them. This also fixes build [1]. Related to T4273 [1] https://jenkins.softwareheritage.org/view/swh%20master%20(draft)/job/DWAPPS/job/tests/3265/console
-
- Jul 21, 2022
-
-
Antoine Lambert authored
Menu items for those features should be highlighted when browsing associated pages for consistency in the Web UI.
-
Antoine Lambert authored
When sidebar is in collpased mode, it was previously flashing from expanded to collapsed when loading a page as its state was changed using javascript. So prefer to use a cookie describing sidebar state that can be read server side from django and injected in templates, this way the sidebar is ensured to be in correct state in HTML code on page load.
-
vlorentz authored
eg. https://sentry.softwareheritage.org/share/issue/12730ae3258d4868a087863e7fe1c94a/ is '406 Not Acceptable'
-
- Jul 20, 2022
-
-
Antoine Lambert authored
-
Antoine Lambert authored
The error output was filtered out due to the high amount of urllib3 debug logs but those logs are now longer enabled. So remove error output filtering to help debugging failed migrations.
-
Antoine Lambert authored
It generates a lof of noise and clutters terminal a lot.
-
vlorentz authored
-
- Jul 13, 2022
-
-
Antoine Lambert authored
-
vlorentz authored
The target and root directory differ in this test, causing this assertion to fail when the test actually runs
-
vlorentz authored
For staff users only, like other extrinsic metadata
-
vlorentz authored
which redirects to the 'proper' one based on extended SWHIDs. It is more convenient for debugging than computing URL hashes; and it will also be used in a template (which cannot really compute SWHID, and would need non-trivial refactoring to get access to it)
-
vlorentz authored
It is purposefully discouraged to query the api-1-raw-extrinsic-metadata-swhid endpoint directly, as extended SWHIDs should not be part of the public API. Instead, clients should query api-1-origin first, and rely on the link in its response to fetch metadata.
-