Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Search engine] #1204831 Switch to OpenSearch 2 #578

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Conversation

PierreGauthier
Copy link
Contributor

  • Use openseach container
  • Use opensearch php client
  • Disable native api-platform elasticsearch bridge (not compatible with es8 or os)
Q A
Branch? master for features / current stable version branch for bug fixes
Tickets #...
License OSL-3.0

@github-actions github-actions bot added the backend PR targets backend application label Nov 6, 2023
@PierreGauthier PierreGauthier force-pushed the feat-opensearch branch 3 times, most recently from e683704 to a3cf053 Compare November 6, 2023 13:53
@PierreGauthier PierreGauthier force-pushed the feat-opensearch branch 2 times, most recently from 35a585c to 45bfd8c Compare January 11, 2024 10:04
@botisSmile botisSmile force-pushed the feat-opensearch branch 5 times, most recently from a41cb1c to 2cc9cb1 Compare January 17, 2024 14:15
- Use openseach container
- Use opensearch php client
- Disable native api-platform elasticsearch bridge (not compatible with es8 or os)
Copy link

Coverage report for commit: 829cbf6
File: api/coverage/coverage.xml

Summary - Lines: 87.59% ⏹️ | Methods: 87.02% ⏹️
FilesLinesMethodsBranches
/api/vendor/gally/gally-premium
   .php-cs-fixer.dist.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Boost/src/DataPersister
   BoostDataPersister.php92.86%80.00%100.00%
/api/vendor/gally/gally-premium/Boost/src/DataProvider
   BoostDataProvider.php94.12%80.00%100.00%
   ModelOptionDataProvider.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Boost/src/DataProvider/Source
   LimitationTypeOptionDataProvider.php100.00%100.00%100.00%
   QueryTextOperatorOptionDataProvider.php100.00%100.00%100.00%
   RequestTypeOptionDataProvider.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Boost/src/Decoration/Search/Elasticsearch/Builder/Request/Query
   QueryBuilder.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Boost/src/DependencyInjection
   Configuration.php100.00%100.00%100.00%
   GallyBoostExtension.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Boost/src
   GallyBoostBundle.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Boost/src/Migrations
   Version20230308134429_Add_Initial_Boost_Tables.php--100.00%
/api/vendor/gally/gally-premium/Boost/src/Model
   Boost.php100.00%100.00%100.00%
   BoostPreview.php62.50%57.14%100.00%
/api/vendor/gally/gally-premium/Boost/src/Model/Boost
   CategoryLimitation.php100.00%100.00%100.00%
   RequestType.php100.00%100.00%100.00%
   SearchLimitation.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Boost/src/Repository/Boost
   CategoryLimitationRepository.php100.00%100.00%100.00%
   RequestTypeRepository.php100.00%100.00%100.00%
   SearchLimitationRepository.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Boost/src/Repository
   BoostRepository.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Boost/src/Resolver
   BoostPreviewResolver.php98.63%80.00%100.00%
/api/vendor/gally/gally-premium/Boost/src/Service
   BoostApplier.php95.65%66.67%100.00%
   LimitationTypeProvider.php100.00%100.00%100.00%
   ModelProvider.php100.00%100.00%100.00%
   QueryTextOperatorProvider.php100.00%100.00%100.00%
   RequestTypeProvider.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Boost/src/Service/Function/Provider
   DefaultProvider.php100.00%100.00%100.00%
   Exclude.php83.33%-100.00%
   FunctionProviderInterface.php100.00%100.00%100.00%
   Replace.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Boost/src/Service/Limitation
   CategoryLimitation.php100.00%100.00%100.00%
   LimitationInterface.php100.00%100.00%100.00%
   QueryTextLimitation.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Boost/src/Service/Model
   ConstantScore.php81.82%75.00%100.00%
/api/vendor/gally/gally-premium/Boost/src/Validator/ModelConfig
   ConstantScoreValidator.php100.00%100.00%100.00%
   ModelConfigValidatorInterface.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Boost/src/Validator
   ModelConfigConstraint.php100.00%100.00%100.00%
   ModelConfigConstraintValidator.php100.00%100.00%100.00%
   ModelConstraintValidator.php100.00%100.00%100.00%
   QueryTextOperatorConstraintValidator.php100.00%100.00%100.00%
   RequestTypeConstraintValidator.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Thesaurus/src/DataPersister/Thesaurus
   ExpansionDataPersister.php89.66%80.00%100.00%
   SynonymDataPersister.php89.66%80.00%100.00%
/api/vendor/gally/gally-premium/Thesaurus/src/DataPersister
   ThesaurusDataPersister.php96.51%83.33%100.00%
/api/vendor/gally/gally-premium/Thesaurus/src/Decoration/Index/Service
   IndexSettings.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Thesaurus/src/Decoration/Search/Elasticsearch/Builder/Request/Query/Fulltext
   FulltextQueryBuilder.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Thesaurus/src/DependencyInjection
   Configuration.php100.00%100.00%100.00%
   GallyThesaurusExtension.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Thesaurus/src/EventSubscriber
   ReindexThesaurus.php100.00%100.00%100.00%
   SetThesaurusIndexerContext.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Thesaurus/src
   GallyThesaurusBundle.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Thesaurus/src/Migrations
   Version20230407155058_Add_Initial_Thesaurus_Tables.php--100.00%
/api/vendor/gally/gally-premium/Thesaurus/src/Model
   Thesaurus.php94.44%92.86%100.00%
/api/vendor/gally/gally-premium/Thesaurus/src/Model/Thesaurus
   Expansion.php80.95%90.00%100.00%
   Locale.php100.00%100.00%100.00%
   Synonym.php77.78%87.50%100.00%
/api/vendor/gally/gally-premium/Thesaurus/src/Model/Thesaurus/Expansion
   Term.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Thesaurus/src/Model/Thesaurus/Synonym
   Term.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Thesaurus/src/Repository/Thesaurus/Expansion
   TermRepository.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Thesaurus/src/Repository/Thesaurus
   ExpansionRepository.php100.00%100.00%100.00%
   LocaleRepository.php100.00%100.00%100.00%
   SynonymRepository.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Thesaurus/src/Repository/Thesaurus/Synonym
   TermRepository.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Thesaurus/src/Repository
   ThesaurusRepository.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Thesaurus/src/Service
   Indexer.php100.00%100.00%100.00%
   ThesaurusManager.php95.56%83.33%100.00%
/api/vendor/gally/gally-premium/Thesaurus/src/Service/Indexer
   ThesaurusIndexerContext.php87.50%66.67%100.00%
/api/vendor/gally/gally-premium/Thesaurus/src/Service/ThesaurusConfiguration
   ThesaurusConfiguration.php100.00%100.00%100.00%
   ThesaurusConfigurationFactory.php100.00%100.00%100.00%
   ThesaurusConfigurationInterface.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/Thesaurus/src/Validator
   ThesaurusScopeConstraint.php100.00%100.00%100.00%
   ThesaurusScopeConstraintValidator.php100.00%100.00%100.00%
   ThesaurusTypeConstraint.php100.00%100.00%100.00%
   ThesaurusTypeConstraintValidator.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/VirtualCategory/src/Decoration/Entity/GraphQl/Type/Definition/Filter
   CategoryTypeDefaultFilterInputType.php83.33%50.00%100.00%
/api/vendor/gally/gally-premium/VirtualCategory/src/Decoration/Repository/CategoryProductPositionIndexer
   CategoryProductPositionIndexerRepository.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/VirtualCategory/src/DependencyInjection
   GallyVirtualCategoryExtension.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/VirtualCategory/src/Elasticsearch/Request/Aggregation/ConfigResolver
   CategoryAggregationConfigResolver.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/VirtualCategory/src/EventSubscriber
   ClearRuleCache.php94.59%85.71%100.00%
/api/vendor/gally/gally-premium/VirtualCategory/src
   GallyVirtualCategoryBundle.php100.00%100.00%100.00%
/api/vendor/gally/gally-premium/VirtualCategory/src/Service
   CategoryQueryProvider.php100.00%100.00%100.00%
/api/vendor/gally/gally-standard
   .php-cs-fixer.dist.php100.00%100.00%100.00%
/api/vendor/gally/gally-standard/src/Analysis/Service
   Config.php100.00%100.00%100.00%
/api/vendor/gally/gally-standard/src/Bundle/DataProvider
   ExtraBundleDataProvider.php100.00%100.00%100.00%
/api/vendor/gally/gally-standard/src/Cache/Command
   ClearAllCommand.php100.00%100.00%100.00%
   ClearTagsCommand.php100.00%100.00%100.00%
   CreateCacheObjectCommand.php100.00%100.00%100.00%
/api/vendor/gally/gally-standard/src/Cache/EventSubscriber
   AddProxyCacheTagsSubscriber.php87.50%66.67%100.00%
   ResponseSubscriber.php83.33%50.00%100.00%
/api/vendor/gally/gally-standard/src/Cache/Service
   CacheManager.php69.57%50.00%100.00%
   ProxyCacheManager.php93.33%66.67%100.00%
/api/vendor/gally/gally-standard/src/Catalog/DataPersister
   LocalizedCatalogDataPersister.php100.00%100.00%100.00%
/api/vendor/gally/gally-standard/src/Catalog/DataProvider/Source
   LocalizedCatalogGroupOptionDataProvider.php100.00%100.00%100.00%
/api/vendor/gally/gally-standard/src/Catalog/Exception
   NoCatalogException.php100.00%100.00%100.00%
/api/vendor/gally/gally-standard/src/Catalog/Filter
   LocalizedCatalogLocaleFilter.php29.27%-100.00%
/api/vendor/gally/gally-standard/src/Catalog/Model
   Catalog.php55.56%77.78%100.00%
   LocalizedCatalog.php91.30%92.86%100.00%
/api/vendor/gally/gally-standard/src/Catalog/Repository
   CatalogRepository.php100.00%100.00%100.00%
   LocalizedCatalogRepository.php77.27%75.00%100.00%
/api/vendor/gally/gally-standard/src/Catalog/Service
   DefaultCatalogProvider.php100.00%100.00%100.00%
/api/vendor/gally/gally-standard/src/Category/Controller
   CategoryConfigurationGet.php82.35%50.00%100.00%
   CategoryProductPositionGet.php100.00%100.00%100.00%
   CategoryProductPositionSave.php100.00%100.00%100.00%
   GetCategoryTree.php100.00%100.00%100.00%
/api/vendor/gally/gally-standard/src/Category/Decoration
   SyncCategoryDataAfterBulk.php100.00%100.00%100.00%
   SyncCategoryDataAfterBulkDelete.php100.00%100.00%100.00%
   SyncCategoryDataAfterBulkDeleteRest.php100.00%100.00%100.00%
   SyncCategoryDataAfterBulkRest.php100.00%100.00%100.00%
   SyncCategoryDataAfterInstall.php100.00%100.00%100.00%
   SyncCategoryDataAfterInstallRest.php100.00%100.00%100.00%
/api/vendor/gally/gally-standard/src/Category/EventSubscriber
   ReindexPosition.php100.00%100.00%100.00%
/api/vendor/gally/gally-standard/src/Category/Exception
   SyncCategoryException.php100.00%100.00%100.00%
/api/vendor/gally/gally-standard/src/Category/Model
   Category.php100.00%100.00%100.00%
   CategoryTree.php100.00%100.00%100.00%
/api/vendor/gally/gally-standard/src/Category/Model/Category
   Configuration.php100.00%100.00%100.00%
   ProductMerchandising.php100.00%100.00%100.00%
/api/vendor/gally/gally-standard/src/Category/OpenApi
   CategoryDecorator.php22.22%50.00%100.00%
/api/vendor/gally/gally-standard/src/Category/Repository
   CategoryConfigurationRepository.php100.00%100.00%100.00%
   CategoryProductMerchandisingRepository.php100.00%100.00%100.00%
   CategoryRepository.php100.00%100.00%100.00%
/api/vendor/gally/gally-standard/src/Category/Repository/CategoryProductPositionIndexer
   CategoryProductPositionIndexerRepository.php71.43%33.33%100.00%
/api/vendor/gally/gally-standard/src/Category/Resolver
   CategoryTreeResolver.php100.00%100.00%100.00%
   ConfigurationResolver.php94.44%50.00%100.00%
   PositionGetResolver.php100.00%100.00%100.00%
   PositionSaveResolver.php100.00%100.00%100.00%
/api/vendor/gally/gally-standard/src/Category/Service
   CategoryProductPositionManager.php95.54%85.71%100.00%
   CategorySynchronizer.php100.00%100.00%100.00%
Table truncated to fit comment

Backend Coverage compared to target branch

Copy link

Frontend Coverage of this branch

File Coverage
All files 23%
src/components/App/App.tsx 0%
src/components/Cms/Pages.tsx 0%
src/components/Facets/Facet.styled.ts 0%
src/components/Facets/Facet.tsx 0%
src/components/Facets/FacetBoolean.tsx 0%
src/components/Facets/FacetCategory.tsx 0%
src/components/Facets/FacetChoice.tsx 0%
src/components/Facets/FacetLoadMore.tsx 0%
src/components/Facets/FacetSlider.tsx 0%
src/components/Facets/Facets.tsx 0%
src/components/Header/Header.tsx 58%
src/components/Layout/Layout.tsx 0%
src/components/Menu/Menu.tsx 0%
src/components/Menu/MenuItem.tsx 0%
src/components/Menu/MenuList.tsx 0%
src/components/PageLayout/PageLayout.tsx 0%
src/components/PageTitle/PageTitle.tsx 0%
src/components/Products/ProductCard.tsx 0%
src/components/Products/Products.tsx 0%
src/components/Providers/AppProvider/AppProvider.tsx 0%
src/components/Providers/CatalogProvider/CatalogProvider.tsx 0%
src/components/Providers/CategoryProvider/CategoryProvider.tsx 0%
src/components/Providers/ConfigurationsProvider/ConfigurationsProvider.tsx 0%
src/components/Providers/SchemaProvider/SchemaProvider.tsx 0%
src/components/Providers/SchemaProvider/RequestedPathProvider/RequestedPathProvider.tsx 0%
src/components/Providers/SearchProvider/SearchProvider.tsx 0%
src/components/Providers/UserProvider/UserProvider.tsx 0%
src/components/Search/Search.styled.tsx 0%
src/components/SearchBar/SearchBar.tsx 5%
src/components/Tabs/TabPanel.tsx 0%
src/components/Tabs/Tabs.tsx 0%
src/components/Tabs/a11yProps.tsx 0%
src/components/Title/Title.tsx 0%
src/components/TwoColsLayout/TwoColsLayout.tsx 0%
src/hooks/index.ts 0%
src/hooks/useApi.ts 84%
src/hooks/useDocuments.ts 57%
src/hooks/useGraphql.ts 89%
src/hooks/useProducts.ts 53%
src/hooks/useUser.ts 95%
src/pages/Category/Category.tsx 0%
src/pages/Homepage/Homepage.tsx 0%
src/pages/Login/Login.tsx 0%
src/pages/Search/CmsSearch.tsx 0%
src/pages/Search/ProductSearch.tsx 0%
src/pages/Search/Search.tsx 0%

Minimum allowed coverage is 1%

Generated by 🐒 cobertura-action against 829cbf6

@botisSmile botisSmile merged commit c3c2388 into master Jan 17, 2024
4 checks passed
@botisSmile botisSmile deleted the feat-opensearch branch January 17, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend PR targets backend application
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants