Skip to content

ci: add downgrade script for algoliasearch v4 and steps (#6286)

Codacy Production / Codacy Static Code Analysis required action Aug 19, 2024 in 0s

1 new security issue (0 max.).

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 1
- Added 1
           

Complexity increasing per file
==============================
- scripts/legacy/downgrade-algoliasearch-v4.js  1
- packages/algoliasearch-helper/test/spec/hierarchical-facets/objects-with-multiple-categories.js  1
- tests/common/widgets/instantsearch/algolia-agent.ts  4
- packages/algoliasearch-helper/test/spec/hierarchical-facets/do-not-show-parent-level.js  1
- packages/algoliasearch-helper/test/spec/hierarchical-facets/with-a-disjunctive-facet.js  1
- packages/algoliasearch-helper/test/spec/hierarchical-facets/simple-usage.js  1
- packages/algoliasearch-helper/test/spec/hierarchical-facets/show-parent-level.js  1
- packages/algoliasearch-helper/test/spec/hierarchical-facets/parent-toggleRefine.js  1
- packages/algoliasearch-helper/test/spec/hierarchical-facets/attributes-order.js  1
- packages/algoliasearch-helper/test/spec/hierarchical-facets/two-facets.js  1
- packages/algoliasearch-helper/test/spec/hierarchical-facets/no-trim.js  1
- packages/instantsearch.js/src/lib/__tests__/InstantSearch-test.tsx  1
- tests/mocks/createAlgoliaSearchClient.ts  1
- packages/algoliasearch-helper/test/spec/hierarchical-facets/custom-separator.js  1
- packages/algoliasearch-helper/test/spec/hierarchical-facets/facet-value-length.js  1
- packages/algoliasearch-helper/test/spec/hierarchical-facets/breadcrumb.js  1
- packages/algoliasearch-helper/test/spec/hierarchical-facets/pagination.js  1
- packages/algoliasearch-helper/test/spec/hierarchical-facets/refined-no-result.js  1
- packages/algoliasearch-helper/test/spec/hierarchical-facets/sort-by.js  1
- packages/algoliasearch-helper/test/spec/hierarchical-facets/no-refinement.js  1
- packages/algoliasearch-helper/test/spec/hierarchical-facets/custom-prefix-path.js  1
- packages/algoliasearch-helper/test/spec/hierarchical-facets/one-level.js  1
         

Clones added
============
- packages/vue-instantsearch/.storybook/webpack.config.js  1
- tests/common/widgets/instantsearch/algolia-agent.ts  4
- packages/instantsearch.js/.storybook/webpack.config.js  1
- packages/algoliasearch-helper/test/spec/hierarchical-facets/simple-usage.js  2
- packages/algoliasearch-helper/test/spec/hierarchical-facets/parent-toggleRefine.js  3
- packages/algoliasearch-helper/test/spec/hierarchical-facets/attributes-order.js  1
- packages/algoliasearch-helper/test/datasets/SearchResults/getFacetValues.dataset.js  1
- packages/instantsearch.js/src/connectors/autocomplete/__tests__/connectAutocomplete-test.ts  2
- packages/algoliasearch-helper/test/spec/hierarchical-facets/pagination.js  1
- packages/algoliasearch-helper/test/spec/hierarchical-facets/refined-no-result.js  1
- packages/instantsearch.js/src/middlewares/__tests__/createMetadataMiddleware.ts  6
- packages/algoliasearch-helper/test/datasets/SearchResults/getRefinements.dataset.js  1
- tests/mocks/createAPIResponse.ts  2
         

Clones removed
==============
+ packages/instantsearch.js/src/connectors/related-products/connectRelatedProducts.ts  -1
+ packages/instantsearch.js/src/connectors/trending-items/connectTrendingItems.ts  -1
         

See the complete overview on Codacy

Annotations

Check warning on line 15 in scripts/legacy/downgrade-algoliasearch-v4.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

scripts/legacy/downgrade-algoliasearch-v4.js#L15

Detected possible user input going into a `path.join` or `path.resolve` function.