- Sep 08, 2021
-
-
vlorentz authored
It's always allowed with the API; but still restricted on the UI for now, while we make sure that are no major issues.
-
- Sep 07, 2021
-
-
Antoine Lambert authored
While pull request branches are hidden by default in Web UI, they should remain browsable. That commit fixes the error that was previously raised when attempting to browse such a branch.
-
vlorentz authored
When working from home, I run swh-web remotely, so it's not on localhost. Allow any host makes this simpler.
-
Vincent Sellier authored
this property is only used for the metadata search. Naming it search_config.backend is confusing as it lets suppose it's the global search configuration
-
Antoine Lambert authored
Web API links generated by the urlize_links_and_mails template filter are removed by highlight.js when highlighting JSON response. So ensure to restore them once JSON highlighting has been performed.
-
Antoine Lambert authored
-
Antoine Lambert authored
Those were missed by continous integration because the httpdomain warnings were disabled on Jenkins (see D6193).
-
- Sep 06, 2021
-
-
Antoine Lambert authored
It will simplify the adding of new visit types for Save code now. Related to D5992
-
- Sep 03, 2021
- Sep 02, 2021
-
-
Antoine Lambert authored
Add new origins types that we now archived. Update source code provider logos to png only in order to ease the integration of future ones Split origins in multiple categories: listed, legacy and deposited. Add global origins counts per origin type. Add detailed origins counts for each listed forge, those details are hidden by default and can be displayed on demand through collapsible elements. Remove dead code. Related to T3127
-
Antoine Lambert authored
-
Antoine Lambert authored
In order to ease the integration of new visit types for the "Save code now" service, filter out those with no associated task type in scheduler db. It means that a new visit type can be added to "Save code now" implementation but it will not be available until the associated scheduler load task type gets created. It enables to test the new visit type in dev environments and deploy safely to production if the associated scheduler load task type did not get created yet. Also remove the internal endpoint to get savable visit types, those can be simply added in Django template. As that change broke a lot of tests due to scheduler being previously mocked, most of the tests related to "Save code now" got improved by removing the mocks and using the swh_scheduler pytest fixture. Related to D5992
-
- Aug 30, 2021
-
-
Antoine Lambert authored
When a content cannot be displayed (for instance due to a too large size), remove script tag from template to prevent execution errors. Closes T3454
-
- Aug 27, 2021
- Aug 26, 2021
- Aug 25, 2021
-
-
vlorentz authored
It's brittle, and not the right place.
-
vlorentz authored
This is to match changes in the vault interface, see D6112 for the rationale. All existing queries still work, through "fallback" views. There are some minor changes in returned fields (removed obj_type, and replace obj_id with swhid), but I don't think anyone used them (since that info is already available to them before they send the request).
-
vlorentz authored
-
vlorentz authored
So tests don't have side-effects
-
- Aug 23, 2021
-
-
Antoine Lambert authored
It should be imported from hypothesis.strategies instead from the internal private module. This fixes Python tests when building debian buster package.
-
- Aug 20, 2021
-
-
Antoine Lambert authored
Running metadata tests with multiple hyothesis examples uncovered those issues in api-1-raw-extrinsic-metadata-swhid Web API view: - RawExtrinsincMetaData only targetting core SWHIds must be provided as test inputs. - link-next URL for pagination was invalid. - next_page_token must be encoded before providing it to urlsafe_b64encode.
-
- Aug 19, 2021
-
-
Antoine Lambert authored
-
Antoine Lambert authored
When running swh-web tests using 'make test-full', multiple hypothesis examples are provided as test inputs instead of a single one when running 'make test'. In that case some tests were failing mostly due to the fact they were not stateless between test runs. That commit fixes those tests execution and ensures stateless test runs by: - turning some hypothesis strategies into stateless ones - turning the archive_data fixture into a function scope one - using subtest fixture from pytest-subtesthack when it is required to reset the archive_data fixture for a test between hypothesis example runs As a consequence, tests will be longer to execute as global state will be reseted between each test. Nevertheless, metadata related tests are still failing when running with multiple hypothesis examples, fix will be handled in next commit. Related to T1695
-
- Aug 18, 2021
-
-
Antoine Lambert authored
-
Antoine Lambert authored
-
- Aug 17, 2021
-
-
Antoine Lambert authored
Contents with mimetype starting with application/ but with no detected programming language were not processed for display but they can be regular text files. Closes T3486
-
- Aug 16, 2021
-
-
Vincent Sellier authored
Useful for the dev environments (a connection to the vpn is needed)
-
- Aug 13, 2021
-
-
Kumar Shivendu authored
This diff introduces a new config parameter "enable_ql" If it's set to yes/True, the swh-search query language can be used for the archive search While using the /origin/search API endpoint, "use_ql=true" can be passed to use the url_pattern as the search query language input
-
- Aug 11, 2021
- Jul 21, 2021
-
-
Antoine Lambert authored
Reword some sentences and add step showing SWHID with lines qualifer. Fix redirection at end of tour when started from homepage. Related to T3437
-
- Jul 20, 2021
-
-
Antoine Lambert authored
D5982 did not fix the flaky cypress test. Removing cy.intercept hack required some times ago seems to do the trick.
-
- Jul 19, 2021
-
-
Antoine Lambert authored
It will enable to exploit those data in the archive coverage widget implementation to get deposit counts by origins type. Related to T3127
-