Skip to content

Conversation

@jlahovnik
Copy link
Collaborator

@jlahovnik jlahovnik commented Nov 24, 2025

  • In eodag a collection is now an object and there is also a CollectionsList and CollectionsDict class. This PR updates the collections initialisation and search to the new objects.
  • For providers there is a Provider and ProvidersDict class. The method available_providers for the EODataAccessGateway is deprecated and the providers property is used instead.

@jlahovnik jlahovnik self-assigned this Nov 24, 2025
@github-actions
Copy link

github-actions bot commented Nov 24, 2025

Test Results

  4 files  +  2    4 suites  +2   39s ⏱️ +17s
111 tests ±  0  111 ✅ + 99  0 💤 ±0  0 ❌ ±0 
444 runs  +222  444 ✅ +420  0 💤 ±0  0 ❌ ±0 

Results for commit 86d54c4. ± Comparison against base commit 1157af8.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Nov 24, 2025

badge

Code Coverage

Details
Filename                                 Stmts    Miss  Cover    Missing
-------------------------------------  -------  ------  -------  -----------------------------------------------------------------------------------------------------------------------------------------------
eodag/__init__.py                            0       0  100.00%
eodag/api.py                                 8       8  0.00%    20-37
eodag/app.py                                75      15  80.00%   152, 166-173, 184-186, 235-247, 251
eodag/client.py                             25       0  100.00%
eodag/config.py                             19       0  100.00%
eodag/constants.py                           5       0  100.00%
eodag/core.py                              303      41  86.47%   140-141, 151, 198, 286-287, 367, 496, 506-507, 528, 543-561, 649, 665-669, 683-687, 689-693, 698, 711, 721-723, 726-727, 737, 740, 756, 772-774
eodag/cql_evaluate.py                       48      18  62.50%   48, 53, 58, 75, 78, 81, 86-99, 105
eodag/dag.py                                57       0  100.00%
eodag/errors.py                             94      12  87.23%   143, 160-163, 179, 202-212
eodag/logs.py                               62       9  85.48%   40-49, 105
eodag/middlewares.py                        32       2  93.75%   20, 24
eodag/telemetry.py                          44       0  100.00%
eodag/utils.py                              41      10  75.61%   44, 69, 72-73, 86, 90-98, 134
eodag/eodag_types/__init__.py                0       0  100.00%
eodag/eodag_types/queryables.py             42      12  71.43%   45-51, 61, 77-81
eodag/eodag_types/search.py                 25      25  0.00%    20-69
eodag/extensions/collection_order.py        72       1  98.61%   108
eodag/extensions/data_download.py          121      42  65.29%   61-73, 94, 112-113, 120, 135-142, 147-148, 155-187, 195-198
eodag/extensions/ecmwf.py                   69       0  100.00%
eodag/extensions/filter.py                  55       2  96.36%   196-197
eodag/extensions/offset_pagination.py       12       0  100.00%
eodag/extensions/stac.py                   159       0  100.00%
eodag/models/__init__.py                     0       0  100.00%
eodag/models/links.py                      143      13  90.91%   39, 93-95, 200, 218, 250, 297, 346-357
eodag/models/stac_metadata.py              195      12  93.85%   94, 162, 175-182, 240-243, 245, 259
TOTAL                                     1706     222  86.99%

Diff against main

Filename                                Stmts    Miss  Cover
------------------------------------  -------  ------  -------
eodag/client.py                             0     -17  +68.00%
eodag/core.py                              +6    -203  +68.62%
eodag/cql_evaluate.py                       0      -9  +18.75%
eodag/dag.py                               +6      -1  +1.96%
eodag/errors.py                             0     -42  +44.68%
eodag/logs.py                               0      -5  +8.06%
eodag/middlewares.py                        0     -23  +71.87%
eodag/utils.py                              0     -17  +41.46%
eodag/eodag_types/queryables.py             0     -10  +23.81%
eodag/extensions/collection_order.py        0     -32  +44.44%
eodag/extensions/data_download.py           0     -41  +33.89%
eodag/extensions/filter.py                  0     -37  +67.27%
eodag/extensions/stac.py                    0      -1  +0.63%
eodag/models/links.py                      +2     -71  +50.48%
eodag/models/stac_metadata.py              +1    -105  +54.16%
TOTAL                                     +15    -614  +36.43%

Results for commit: 86d54c4

Minimum allowed coverage is 70%

♻️ This comment has been updated with latest results

@jlahovnik jlahovnik marked this pull request as draft November 24, 2025 17:43
@jlahovnik
Copy link
Collaborator Author

jlahovnik commented Nov 25, 2025

changes need branch stac-collection-property in eodag to work correctly

@jlahovnik jlahovnik changed the title refactor: adapt code to collection object refactor: adapt code to collection and provider object Dec 5, 2025
@jlahovnik jlahovnik marked this pull request as ready for review December 5, 2025 10:41
@jlahovnik jlahovnik requested a review from sbrunato December 5, 2025 10:46
@sbrunato sbrunato marked this pull request as draft December 5, 2025 17:51
@jlahovnik jlahovnik force-pushed the adapt-to-collection-object branch from 37098c1 to b9a727f Compare December 8, 2025 10:52
@jlahovnik jlahovnik force-pushed the adapt-to-collection-object branch from b9a727f to d2aeb88 Compare December 8, 2025 10:54
@jlahovnik
Copy link
Collaborator Author

changes need branch stac-collection-property in eodag to work correctly

branch is merged to develop now

@jlahovnik jlahovnik requested a review from sbrunato December 8, 2025 11:14
@jlahovnik jlahovnik marked this pull request as ready for review December 8, 2025 13:30
@sbrunato sbrunato marked this pull request as draft December 9, 2025 08:28
@jlahovnik jlahovnik marked this pull request as ready for review December 9, 2025 15:22
@sbrunato sbrunato merged commit d69369b into main Dec 12, 2025
9 checks passed
@sbrunato sbrunato deleted the adapt-to-collection-object branch December 12, 2025 08:50
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.

3 participants