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

feat: fallback mechanism to search for products with other providers #753

Conversation

jlahovnik
Copy link
Collaborator

@jlahovnik jlahovnik commented Jun 30, 2023

Adds a fallback mechanism for the search of products. If the search request fails with the preferred providers, the provider with next highest priority will be used. The requests continue until a request is successful or until no more provider offering the desired product is found. In the latter case an error is raised.

fixes #213

@jlahovnik jlahovnik linked an issue Jun 30, 2023 that may be closed by this pull request
@github-actions
Copy link
Contributor

github-actions bot commented Jun 30, 2023

Test Results

       4 files  ±0         4 suites  ±0   5m 23s ⏱️ -23s
   402 tests +1     400 ✔️ +1    2 💤 ±0  0 ±0 
1 608 runs  +4  1 548 ✔️ +4  60 💤 ±0  0 ±0 

Results for commit 9f0cb82. ± Comparison against base commit f2ac36b.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 30, 2023

Code Coverage (Ubuntu)

File Coverage
All files 81%

Minimum allowed coverage is 70%

Generated by 🐒 cobertura-action against 9f0cb82

@github-actions
Copy link
Contributor

github-actions bot commented Jun 30, 2023

Code Coverage (Windows)

File Coverage
All files 76%

Minimum allowed coverage is 70%

Generated by 🐒 cobertura-action against 9f0cb82

@sbrunato sbrunato force-pushed the 213-fallback-mechanism-to-search-for-products-with-other-providers branch from 46d4992 to f3f886c Compare August 23, 2023 16:26
@sbrunato sbrunato changed the title 213 fallback mechanism to search for products with other providers feat: fallback mechanism to search for products with other providers Aug 23, 2023
eodag/rest/utils.py Outdated Show resolved Hide resolved
eodag/rest/utils.py Outdated Show resolved Hide resolved
@sbrunato sbrunato merged commit df440aa into develop Aug 23, 2023
@sbrunato sbrunato deleted the 213-fallback-mechanism-to-search-for-products-with-other-providers branch August 23, 2023 16:45
@sbrunato sbrunato added this to the 2.11.0 milestone Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fallback mechanism to search for products with other providers
2 participants