- Aug 19, 2022
-
-
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.
-
- Jul 12, 2022
-
-
Antoine Lambert authored
Prefer to use a div instead of an iframe to avoid blinking banner on page load. Nevertheless, keep the iframe view to ease embedding in external WordPress website.
-
Antoine Lambert authored
-
Antoine Lambert authored
Replace use of django.conf.urls.url by django.urls.re_path. Fix inbound_email appplication name. Add a small hack to ensure django-js-reverse compatibility with django 4.x (issue fixed upstream but not released).
-
vlorentz authored
Black reforms `word2vec.ipynb` otherwise (or complains the ipynb is not installed)
-
vlorentz authored
It now allows setting custom strategies as 'target'
-
- Jul 11, 2022
-
-
vlorentz authored
without either RFC5987/6266-encoding of the filename or RFC2231-encoding of the header, gunicorn crashes when trying to decode the header as ASCII.
-
Antoine Lambert authored
The banner will be displayed on archive.softwareheritage.org and softwareheritage.org.
-
- Jul 07, 2022
-
-
vlorentz authored
This imports the content of this PR to upstream: https://github.com/untitaker/pytest-subtesthack/pull/7
-
vlorentz authored
Using older versions works for passing tests, but assertion failures cause a very obscure traceback on teardown
-
vlorentz authored
For some reason it is not an issue within tox; but mypy has been bugging me about this for a while.
-
- Jul 06, 2022
-
-
Antoine Lambert authored
-
- Jun 30, 2022
-
-
Antoine Lambert authored
-
Antoine Lambert authored
Web API should be as dumb as possible and should not attempt to lookup an origin with and without trailing slash in its URL. rDWAPPS56fb869644ad45e0648f4ad45c07619d468019b4 introduced that regression but that process should only be performed in a Web UI context. Related to D7980
-