feat: allow to download results from all pages#787
Open
anesson-cs wants to merge 24 commits into
Open
Conversation
Contributor
Contributor
|
Code Coverage (Ubuntu)
Minimum allowed coverage is Generated by 🐒 cobertura-action against 480239a |
Contributor
|
Code Coverage (Windows)
Minimum allowed coverage is Generated by 🐒 cobertura-action against 480239a |
sbrunato
marked this pull request as draft
January 24, 2024 14:01
anesson-cs
force-pushed
the
search-results-pagination-generator
branch
from
July 11, 2024 15:52
480239a to
654017c
Compare
Contributor
Code Coverage (Ubuntu)DetailsDiff against developResults for commit: 555375b Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Contributor
Code Coverage (Windows)DetailsDiff against developResults for commit: 555375b Minimum allowed coverage is ♻️ This comment has been updated with latest results |
anesson-cs
force-pushed
the
search-results-pagination-generator
branch
2 times, most recently
from
July 16, 2024 08:46
9c58e01 to
e08e53c
Compare
anesson-cs
marked this pull request as ready for review
July 16, 2024 08:51
anesson-cs
force-pushed
the
search-results-pagination-generator
branch
from
July 24, 2024 15:51
e08e53c to
3f5d1a1
Compare
'SearchResult' class could not be imported before the rebase due to a circular import
…rom download_all() input products
anesson-cs
force-pushed
the
search-results-pagination-generator
branch
from
August 5, 2024 15:27
3f5d1a1 to
5bedf51
Compare
anesson-cs
force-pushed
the
search-results-pagination-generator
branch
from
August 6, 2024 08:31
5bedf51 to
555375b
Compare
Closed
Collaborator
|
Following #1745, this can now be updated to use |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #133
After searching some products, we can now download the ones from all pages of this search by setting
exhausttoTrueindownload_all()method parameters (Falseby default).It works by saving some elements in several objects:
SearchResultsobject to search next pages of the searchSearchResultsobject to apply them on next pages and to skip a crunch if it has already been applied on the objectEODataAccessGatewayobject to skip a page when it has already been requestedThen, the
search_iter_page()is called to search products from all pages by skipping the one already found.Finally, if there are other products, they are added to the initial
SearchResultsobject.