Skip to content

feat: integrate eodag with database#101

Draft
anesson-cs wants to merge 14 commits intomainfrom
eodag-with-db
Draft

feat: integrate eodag with database#101
anesson-cs wants to merge 14 commits intomainfrom
eodag-with-db

Conversation

@anesson-cs
Copy link
Copy Markdown
Contributor

The significant change in eodag library to use a database to store collections is integrated in this PR.

To use it, collections are now fully-STAC compliant in the library, which allowed to lighten some parts of code.

@anesson-cs anesson-cs marked this pull request as draft April 1, 2026 09:50
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 1, 2026

Test Results

  4 files  ±  0   4 suites  ±0   19s ⏱️ - 1m 3s
111 tests  -   2   6 ✅  - 107  0 💤 ±0   4 ❌ + 4  101 🔥 +101 
333 runs   - 119  18 ✅  - 434  0 💤 ±0  12 ❌ +12  303 🔥 +303 

For more details on these failures and errors, see this check.

Results for commit 89383ee. ± Comparison against base commit 5a6dc68.

This pull request removes 2 tests.
tests.test_search ‑ test_invalid_post_search_request
tests.test_search ‑ test_valid_post_search_request

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 1, 2026

badge

Code Coverage

Details
Filename                                 Stmts    Miss  Cover    Missing
-------------------------------------  -------  ------  -------  ------------------------------------------------------------------------------------------------------------------------------------
eodag/__init__.py                            0       0  100.00%
eodag/app.py                                75      15  80.00%   158, 172-179, 190-192, 241-253, 257
eodag/client.py                             25      17  32.00%   35-58
eodag/config.py                             19       0  100.00%
eodag/constants.py                           5       0  100.00%
eodag/core.py                              270     220  18.52%   94-129, 132-195, 227-297, 316-323, 359-373, 386, 424-447, 461-466, 480-517, 527-570, 581-633, 643-675, 685-706
eodag/cql_evaluate.py                       48      27  43.75%   43, 48, 53, 58, 74-99, 104-106, 111
eodag/dag.py                                37      21  43.24%   57-68, 74-93
eodag/errors.py                             94      54  42.55%   73, 100-128, 132-137, 142-145, 150-165, 173-193, 202-212
eodag/logs.py                               62      14  77.42%   40-49, 57-63, 105
eodag/middlewares.py                        32      25  21.88%   17-49
eodag/telemetry.py                          44       0  100.00%
eodag/utils.py                              41      27  34.15%   42-44, 55, 68-73, 85-101, 114-122, 133-136
eodag/eodag_types/__init__.py                0       0  100.00%
eodag/eodag_types/queryables.py             42      22  47.62%   45-51, 60-66, 72-81
eodag/eodag_types/search.py                 25      25  0.00%    20-69
eodag/extensions/collection_order.py        73      33  54.79%   70, 80-138, 178
eodag/extensions/data_download.py          121      83  31.40%   59-78, 87-95, 107-216
eodag/extensions/ecmwf.py                   69       0  100.00%
eodag/extensions/filter.py                  96      78  18.75%   177-239, 252-331
eodag/extensions/offset_pagination.py       12       0  100.00%
eodag/extensions/stac.py                   167       6  96.41%   248, 347-351
eodag/models/__init__.py                     0       0  100.00%
eodag/models/item.py                        85      66  22.35%   43-57, 69-194
eodag/models/links.py                      147      90  38.78%   39, 44-57, 69, 74, 78, 82, 86-103, 117-138, 150-183, 196-210, 214-228, 232-251, 262, 276, 280, 289, 298, 313, 322, 334, 343, 347-358
eodag/models/stac_metadata.py              105      43  59.05%   69-70, 78-84, 93-95, 101-104, 112-113, 121, 129, 134, 142-156, 164-171, 209-214, 223-242
TOTAL                                     1694     866  48.88%

Diff against main

Filename                                Stmts    Miss  Cover
------------------------------------  -------  ------  -------
eodag/client.py                             0     +17  -68.00%
eodag/core.py                             -43    +193  -72.85%
eodag/cql_evaluate.py                       0      +9  -18.75%
eodag/dag.py                              -20     +21  -56.76%
eodag/errors.py                             0     +47  -50.00%
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     +14  -33.33%
eodag/extensions/collection_order.py        0     +32  -43.84%
eodag/extensions/data_download.py           0     +41  -33.89%
eodag/extensions/filter.py                  0     +69  -71.87%
eodag/extensions/stac.py                    0      +3  -1.79%
eodag/models/item.py                        0     +60  -70.59%
eodag/models/links.py                       0     +77  -52.38%
eodag/models/stac_metadata.py              +1     +37  -35.18%
TOTAL                                     -62    +665  -39.67%

Results for commit: 89383ee

Minimum allowed coverage is 70%

♻️ This comment has been updated with latest results

rename internal core method '_get_collection()' to '_format_collection()'

remove label:assets if null
@anesson-cs anesson-cs force-pushed the eodag-with-db branch 2 times, most recently from cebbbc1 to 47b687e Compare April 23, 2026 13:42
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.

4 participants