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: create 'downloadLink' asset #1270

Closed
wants to merge 1 commit into from

Conversation

anesson-cs
Copy link
Collaborator

@anesson-cs anesson-cs commented Jul 24, 2024

Fixes #1042

Create a downloadLink asset:

  • if the downloadLink property is got with a json path, it is kept to use it as downloadLink asset href
  • if the downloadLink property is given with a link, we can remove it and place this link directly in the downloadLink asset href

For now, it works in library mode for 'get' download method with HTTPDownload plugin with provider that can contains single assets and the downloadLink asset at the same time".

  • Update providers conf to create assets for all
  • Update docs
  • Create and/or update tests

it works in library mode for 'get' download method with 'HTTPDownload' plugin with provider that can contains single assets and the 'downloadLink' asset at the same time
Copy link
Contributor

github-actions bot commented Jul 24, 2024

Test Results

    4 files  ±  0      4 suites  ±0   5m 44s ⏱️ -33s
  553 tests ±  0    272 ✅  -   278   2 💤  - 1  141 ❌ +141  138 🔥 +138 
2 109 runs   - 103  1 085 ✅  - 1 025  96 💤  - 6  503 ❌ +503  425 🔥 +425 

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

Results for commit 221f846. ± Comparison against base commit a456422.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Jul 24, 2024

badge

Code Coverage (Ubuntu)

Filename                                     Stmts    Miss  Cover    Missing
-----------------------------------------  -------  ------  -------  -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
__init__.py                                      8       0  100.00%
cli.py                                         303      66  78.22%   550-570, 575-579, 654-700, 802-853, 857
config.py                                      356      27  92.42%   81-83, 92, 100, 104-106, 183, 195, 468-470, 534-537, 584-585, 594-595, 674, 743-748, 750
crunch.py                                        5       5  0.00%    20-24
api/__init__.py                                  0       0  100.00%
api/core.py                                    752     226  69.95%   354-358, 368, 373, 377-388, 598, 642-645, 683, 720, 750, 798, 802-807, 833, 888, 901-905, 929, 941, 952-955, 1012, 1036, 1047, 1149, 1229-1251, 1273-1368, 1433-1501, 1528-1600, 1614-1621, 1682-1692, 1700, 1714, 1723, 1769, 1842, 1862, 1871, 1907-1908, 1917-1918, 1947, 1959, 1980-1986, 1999-2008, 2053-2071, 2086-2088, 2112-2120, 2245-2253, 2256-2260, 2274-2276, 2311
api/search_result.py                            51      12  76.47%   75, 84, 91, 105, 124, 131, 151, 158, 167, 175, 178-179
api/product/__init__.py                          6       0  100.00%
api/product/_assets.py                          48      20  58.33%   61, 71-86, 89-98, 157, 167, 170-174
api/product/_product.py                        187     105  43.85%   70-72, 148, 152, 167-174, 187-208, 227-231, 243, 267-274, 281-284, 324-366, 372-383, 410-509, 515-521, 525-536
api/product/metadata_mapping.py                675      82  87.85%   131-133, 234, 266-267, 313-314, 324-336, 338, 349, 355-367, 412-413, 450, 471-474, 497, 505-506, 582-583, 607-608, 614-617, 632-633, 782, 828, 1002-1007, 1138, 1152-1172, 1192, 1197, 1201, 1307, 1329, 1343, 1356-1375, 1414, 1466, 1504-1508, 1527
api/product/drivers/__init__.py                  6       0  100.00%
api/product/drivers/base.py                      6       1  83.33%   41
plugins/__init__.py                              0       0  100.00%
plugins/base.py                                 21       3  85.71%   48, 55, 68
plugins/manager.py                             130      21  83.85%   105-110, 128-132, 160, 201, 223, 227, 248-253, 292-293, 321-322
plugins/apis/__init__.py                         0       0  100.00%
plugins/apis/base.py                             4       0  100.00%
plugins/apis/ecmwf.py                           91      44  51.65%   107, 115, 150-152, 166-243, 258
plugins/apis/usgs.py                           180      91  49.44%   128, 132, 233, 254-269, 282-438, 453
plugins/authentication/__init__.py               6       1  83.33%   31
plugins/authentication/aws_auth.py              19       0  100.00%
plugins/authentication/base.py                  17       3  82.35%   34, 47, 57
plugins/authentication/generic.py               14       7  50.00%   36-50
plugins/authentication/header.py                19       0  100.00%
plugins/authentication/keycloak.py              46       4  91.30%   132, 156-161
plugins/authentication/oauth.py                 13       7  46.15%   32-34, 38-41
plugins/authentication/openid_connect.py       183      17  90.71%   119, 133-158, 166, 320-323, 347
plugins/authentication/qsauth.py                34      10  70.59%   82-85, 98-104
plugins/authentication/sas_auth.py              47       1  97.87%   76
plugins/authentication/token.py                 88      16  81.82%   79, 107, 109, 131-143, 198-202
plugins/authentication/token_exchange.py        35      19  45.71%   74-80, 92-120
plugins/crunch/__init__.py                       0       0  100.00%
plugins/crunch/base.py                          10       1  90.00%   40
plugins/crunch/filter_date.py                   59      14  76.27%   51-56, 70, 79, 88, 91, 103-105, 114-116, 123
plugins/crunch/filter_latest_intersect.py       47      33  29.79%   48-53, 69-114
plugins/crunch/filter_latest_tpl_name.py        31       2  93.55%   51, 87
plugins/crunch/filter_overlap.py                66      18  72.73%   28-30, 72-75, 82-85, 91, 99, 110-126
plugins/crunch/filter_property.py               30       7  76.67%   58-63, 66-67, 83-87
plugins/download/__init__.py                     0       0  100.00%
plugins/download/aws.py                        489     418  14.52%   270-394, 416-430, 440-471, 493-521, 538-593, 618-641, 645-647, 688-762, 780-841, 852-857, 873-886, 905-935, 945-953, 960-976, 984-1015, 1022-1034, 1048-1064, 1068-1088, 1092-1148, 1158-1353, 1368
plugins/download/base.py                       253     224  11.46%   145, 180, 199-286, 300-301, 316-321, 339-467, 515-623, 645-731
plugins/download/creodias_s3.py                 17      10  41.18%   34, 44-58
plugins/download/http.py                       534     492  7.87%    159-218, 232-258, 284-551, 568-706, 709-723, 726-751, 785-851, 858-869, 881-911, 937-1033, 1043-1149, 1167-1269, 1275-1291, 1300-1365, 1380
plugins/download/s3rest.py                     116      97  16.38%   88-89, 120-344
plugins/search/__init__.py                      22       0  100.00%
plugins/search/base.py                         128      22  82.81%   104, 108, 121, 190, 241, 256-261, 271, 290-291, 305, 350-351, 371, 374-382, 384
plugins/search/build_search_result.py          181      31  82.87%   97, 141-142, 148, 159, 236, 295-298, 327, 384-401, 463, 466, 476, 493, 513-528
plugins/search/cop_marine.py                   197      54  72.59%   55, 63-65, 71-72, 88, 90, 93, 128-130, 142-143, 183-192, 196, 199, 203, 221, 230-231, 251, 270, 274, 278, 282, 286-290, 296-299, 302-316, 333, 347, 356, 359, 361, 365, 374-378
plugins/search/creodias_s3.py                   55      33  40.00%   51-56, 60-111, 129-137
plugins/search/csw.py                          105      81  22.86%   58-59, 63-64, 72-120, 126-139, 147-179, 197-238
plugins/search/data_request_search.py          200      80  60.00%   90-93, 109, 121, 125-126, 137, 142, 147, 154, 167-170, 210-211, 224-225, 229, 239-245, 250, 276-279, 287-298, 315, 317, 324-325, 327-328, 346-350, 377-410, 417, 423-438, 443
plugins/search/qssearch.py                     663     127  80.84%   391, 395-401, 409-410, 516-522, 572, 575, 588, 598, 617-632, 670-673, 747-748, 796, 815, 830, 888, 909, 912-913, 922-923, 932-933, 942-943, 970, 1039-1044, 1048-1057, 1091, 1113, 1168-1180, 1207-1234, 1240, 1296-1300, 1360, 1363, 1377, 1391, 1418-1430, 1437, 1469-1471, 1481-1487, 1517, 1540, 1555, 1577, 1645-1716
plugins/search/static_stac_search.py            72      10  86.11%   101-128, 144, 157
rest/__init__.py                                 4       2  50.00%   21-22
rest/cache.py                                   33       7  78.79%   35-37, 53-55, 59, 68
rest/config.py                                  26       1  96.15%   36
rest/constants.py                                7       0  100.00%
rest/core.py                                   234     142  39.32%   112-117, 130-133, 169, 171, 178-179, 200-209, 218-248, 272-326, 339-375, 386, 464-480, 528-559, 569, 578, 591-606, 628-656, 674, 681-704, 709-757
rest/server.py                                 283     129  54.42%   108, 131-133, 147-184, 245-250, 304-305, 317-333, 372-375, 385-388, 401-406, 425-430, 449-463, 488, 538, 551-559, 600-607, 626-633, 653-667, 688-714, 727-742, 771, 803-805, 822-827, 840, 851-876
rest/stac.py                                   464     276  40.52%   186-194, 235, 255-378, 388-457, 475-514, 530-583, 593-616, 626-666, 694-710, 737, 789-802, 809, 865-866, 933, 1001-1003, 1020-1022, 1030-1032, 1045-1047, 1061-1078, 1088-1109, 1119-1141, 1149-1166, 1189-1212, 1222, 1232-1244, 1257-1279, 1293-1338, 1494-1520
rest/types/__init__.py                           0       0  100.00%
rest/types/collections_search.py                13      13  0.00%    18-44
rest/types/eodag_search.py                     179      15  91.62%   122, 232-236, 269-271, 289, 292, 298, 302, 360, 372-375
rest/types/queryables.py                        56       7  87.50%   97-102, 111-112, 174
rest/types/stac_search.py                      126      10  92.06%   128-130, 176, 191-193, 201, 205, 256
rest/utils/__init__.py                          93      42  54.84%   106-109, 128-130, 140-168, 175-183, 190-211
rest/utils/cql_evaluate.py                      48       5  89.58%   69, 76, 90, 97, 105
rest/utils/rfc3339.py                           23       5  78.26%   44-45, 49, 61, 63
types/__init__.py                              114      39  65.79%   53, 66-70, 81-93, 120-122, 129-132, 172, 199, 209-225, 230, 232, 253, 258, 266, 276
types/bbox.py                                   43      19  55.81%   46-61, 72-74, 85-87, 99-101, 113-115, 123
types/download_args.py                           9       0  100.00%
types/queryables.py                             81       0  100.00%
types/search_args.py                            70      18  74.29%   60-64, 71-88, 104
types/whoosh.py                                 15       0  100.00%
utils/__init__.py                              500      60  88.00%   85, 90, 194-195, 204-231, 234, 248, 330-334, 410-414, 435-437, 492, 519, 534, 572-573, 969-972, 980-981, 1022-1023, 1132, 1145-1146, 1153-1164, 1205, 1381, 1447-1450, 1455-1457
utils/constraints.py                           119      37  68.91%   94-103, 144, 149, 153, 164, 190-192, 202, 216-232, 241-252
utils/exceptions.py                             35       1  97.14%   93
utils/import_system.py                          28      19  32.14%   67-81, 93-103
utils/logging.py                                29       1  96.55%   123
utils/notebook.py                               44      32  27.27%   25-29, 34-43, 55-64, 69-78, 83-87
utils/repr.py                                   30      22  26.67%   27-30, 35-42, 51-76, 94-101
utils/requests.py                               55      11  80.00%   69, 96, 98, 100, 102, 104, 123, 131-133, 141
utils/rest.py                                   36      20  44.44%   46-65, 71-82
utils/stac_reader.py                           111      45  59.46%   56-57, 63-85, 95-97, 101, 143, 159-162, 215-224, 234-264
TOTAL                                         9533    3520  63.08%

Diff against develop

Filename                                     Stmts    Miss  Cover
-----------------------------------------  -------  ------  -------
cli.py                                           0     +16  -5.28%
api/core.py                                      0    +151  -20.08%
api/search_result.py                             0      +8  -15.69%
api/product/_assets.py                           0     +15  -31.25%
api/product/_product.py                          0     +85  -45.45%
api/product/metadata_mapping.py                  0      +1  -0.15%
plugins/base.py                                  0      +1  -4.77%
plugins/manager.py                               0      +9  -6.92%
plugins/apis/ecmwf.py                            0     +36  -39.56%
plugins/apis/usgs.py                             0     +60  -33.34%
plugins/authentication/base.py                   0      +1  -5.89%
plugins/authentication/generic.py                0      +5  -35.71%
plugins/authentication/qsauth.py                 0      +9  -26.47%
plugins/crunch/filter_latest_intersect.py        0     +25  -53.19%
plugins/crunch/filter_latest_tpl_name.py         0      +1  -3.22%
plugins/download/aws.py                          0    +255  -52.15%
plugins/download/base.py                         0    +173  -68.38%
plugins/download/creodias_s3.py                  0      +1  -5.88%
plugins/download/http.py                         0    +363  -67.97%
plugins/download/s3rest.py                       0     +73  -62.93%
plugins/search/base.py                           0     +13  -10.16%
plugins/search/build_search_result.py            0      +8  -4.42%
plugins/search/cop_marine.py                     0      +7  -3.55%
plugins/search/creodias_s3.py                    0     +30  -54.55%
plugins/search/data_request_search.py            0     +13  -6.50%
plugins/search/qssearch.py                      -1     +47  -7.11%
rest/config.py                                   0      +1  -3.85%
rest/core.py                                     0    +116  -49.57%
rest/server.py                                   0     +76  -26.85%
rest/stac.py                                     0    +156  -33.62%
rest/types/eodag_search.py                       0     +10  -5.59%
rest/types/queryables.py                         0      +6  -10.71%
rest/types/stac_search.py                        0      +3  -2.38%
rest/utils/__init__.py                           0     +30  -32.26%
rest/utils/rfc3339.py                            0      +2  -8.70%
types/__init__.py                                0     +25  -21.93%
utils/__init__.py                                0     +23  -4.60%
utils/notebook.py                                0      +9  -20.46%
utils/repr.py                                    0     +14  -46.66%
utils/rest.py                                    0     +19  -52.78%
TOTAL                                           -1   +1896  -19.89%

Results for commit: 221f846

Minimum allowed coverage is 70%

♻️ This comment has been updated with latest results

Copy link
Contributor

github-actions bot commented Jul 24, 2024

badge

Code Coverage (Windows)

Filename                                     Stmts    Miss  Cover    Missing
-----------------------------------------  -------  ------  -------  -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
__init__.py                                      8       0  100.00%
cli.py                                         303      66  78.22%   550-570, 575-579, 654-700, 802-853, 857
config.py                                      356      45  87.36%   81-83, 92, 100, 104-106, 177, 179, 183, 195, 211, 422, 468-470, 534-537, 584-585, 594-595, 656-678, 708, 743-748, 750
crunch.py                                        5       5  0.00%    20-24
api/__init__.py                                  0       0  100.00%
api/core.py                                    752     362  51.86%   134-147, 353-358, 368, 373, 377-388, 598, 642-645, 683, 720, 750, 753-772, 798, 802-807, 833, 888, 901-905, 929, 941, 952-955, 1009, 1012, 1036, 1047, 1148-1183, 1229-1251, 1273-1368, 1433-1501, 1528-1600, 1603-1626, 1676-1700, 1710, 1712, 1714, 1719, 1723, 1728-1812, 1835-1970, 1980-1986, 1999-2008, 2053-2071, 2086-2088, 2111-2120, 2162-2191, 2245-2253, 2256-2260, 2274-2276, 2311
api/search_result.py                            51      14  72.55%   65-66, 75, 84, 91, 105, 124, 131, 151, 158, 167, 175, 178-179
api/product/__init__.py                          6       0  100.00%
api/product/_assets.py                          48      26  45.83%   48-49, 52, 61, 71-86, 89-98, 146-148, 157, 167, 170-174
api/product/_product.py                        187     128  31.55%   70-72, 134-177, 187-208, 227-231, 243, 260-284, 324-366, 372-383, 410-509, 513-522, 525-536
api/product/metadata_mapping.py                675     148  78.07%   131-133, 234, 266-267, 284-285, 313-314, 324-336, 338, 349, 355-367, 410-413, 450, 471-474, 497, 505-506, 547, 582-583, 607-608, 614-617, 632-633, 782, 828, 958-959, 986, 1002-1007, 1094-1218, 1262, 1307, 1329, 1342-1345, 1356-1375, 1385-1417, 1450-1466, 1504-1508, 1527, 1535-1537
api/product/drivers/__init__.py                  6       0  100.00%
api/product/drivers/base.py                      6       1  83.33%   41
plugins/__init__.py                              0       0  100.00%
plugins/base.py                                 21       3  85.71%   48, 55, 68
plugins/manager.py                             130      31  76.15%   106-110, 128-132, 151-156, 160, 201, 210-213, 223, 227, 241-256, 272, 292-293, 321-322
plugins/apis/__init__.py                         0       0  100.00%
plugins/apis/base.py                             4       0  100.00%
plugins/apis/ecmwf.py                           91      63  30.77%   88, 99-125, 135-154, 166-243, 258, 270
plugins/apis/usgs.py                           180     152  15.56%   94-112, 120-269, 282-438, 453
plugins/authentication/__init__.py               6       1  83.33%   31
plugins/authentication/aws_auth.py              19       7  63.16%   58-76
plugins/authentication/base.py                  17       3  82.35%   34, 47, 57
plugins/authentication/generic.py               14       7  50.00%   36-50
plugins/authentication/header.py                19       9  52.63%   79-91, 102, 106-107
plugins/authentication/keycloak.py              46      29  36.96%   86, 90-94, 103-106, 113-135, 138-162
plugins/authentication/oauth.py                 13       7  46.15%   32-34, 38-41
plugins/authentication/openid_connect.py       183      31  83.06%   119, 125-158, 166, 320-323, 347, 514-532
plugins/authentication/qsauth.py                34      20  41.18%   65-87, 94, 98-104
plugins/authentication/sas_auth.py              47      31  34.04%   48-52, 58-84, 93, 97-108
plugins/authentication/token.py                 88      16  81.82%   79, 107, 109, 131-143, 198-202
plugins/authentication/token_exchange.py        35      19  45.71%   74-80, 92-120
plugins/crunch/__init__.py                       0       0  100.00%
plugins/crunch/base.py                          10       3  70.00%   33-34, 40
plugins/crunch/filter_date.py                   59      45  23.73%   51-56, 68-127
plugins/crunch/filter_latest_intersect.py       47      33  29.79%   48-53, 69-114
plugins/crunch/filter_latest_tpl_name.py        31      20  35.48%   48-56, 68-99
plugins/crunch/filter_overlap.py                66      56  15.15%   28-30, 66-173
plugins/crunch/filter_property.py               30      22  26.67%   55-92
plugins/download/__init__.py                     0       0  100.00%
plugins/download/aws.py                        489     421  13.91%   231-233, 270-394, 416-430, 440-471, 493-521, 538-593, 618-641, 645-647, 688-762, 780-841, 852-857, 873-886, 905-935, 945-953, 960-976, 984-1015, 1022-1034, 1048-1064, 1068-1088, 1092-1148, 1158-1353, 1368
plugins/download/base.py                       253     224  11.46%   145, 180, 199-286, 300-301, 316-321, 339-467, 515-623, 645-731
plugins/download/creodias_s3.py                 17      10  41.18%   34, 44-58
plugins/download/http.py                       534     492  7.87%    159-218, 232-258, 284-551, 568-706, 709-723, 726-751, 785-851, 858-869, 881-911, 937-1033, 1043-1149, 1167-1269, 1275-1291, 1300-1365, 1380
plugins/download/s3rest.py                     116      97  16.38%   88-89, 120-344
plugins/search/__init__.py                      22       0  100.00%
plugins/search/base.py                         128      50  60.94%   91, 104, 108, 121, 155, 190, 223, 240-323, 350-351, 371, 374-382, 384
plugins/search/build_search_result.py          181      39  78.45%   97, 112-120, 141-142, 148, 159, 194, 213, 220, 236, 295-298, 327, 384-401, 463, 466, 476, 493, 513-528
plugins/search/cop_marine.py                   197     164  16.75%   50-67, 71-72, 85-93, 110-145, 156-161, 173-231, 246-378
plugins/search/creodias_s3.py                   55      34  38.18%   51-56, 60-111, 127-137
plugins/search/csw.py                          105      81  22.86%   58-59, 63-64, 72-120, 126-139, 147-179, 197-238
plugins/search/data_request_search.py          200     128  36.00%   90-93, 109, 121, 125-126, 136-253, 276-279, 287-298, 315, 317, 324-325, 327-328, 346-350, 360-410, 413-418, 423-438, 442-445
plugins/search/qssearch.py                     663     234  64.71%   356-362, 382, 391, 395-401, 409-410, 516-522, 572, 575, 588, 598, 617-632, 670-673, 715, 747-748, 796, 807-820, 830, 876-913, 919-927, 929-937, 939-947, 956, 970, 1020-1024, 1029-1062, 1075-1092, 1101, 1113, 1128, 1134-1152, 1168-1180, 1206-1236, 1240, 1252-1273, 1296-1300, 1360, 1363, 1377, 1391, 1415-1437, 1469-1471, 1481-1487, 1517, 1533, 1540, 1555, 1577, 1612-1629, 1645-1716
plugins/search/static_stac_search.py            72      39  45.83%   93, 101-128, 138-222
rest/__init__.py                                 4       2  50.00%   21-22
rest/cache.py                                   33      22  33.33%   35-37, 44-70
rest/config.py                                  26       4  84.62%   34-36, 68
rest/constants.py                                7       0  100.00%
rest/core.py                                   234     177  24.36%   112-117, 130-133, 167-248, 272-326, 339-375, 386, 412-444, 464-480, 503-514, 523-559, 569, 578, 591-606, 624-663, 674, 681-704, 709-757
rest/server.py                                 283     283  0.00%    18-879
rest/stac.py                                   464     397  14.44%   128-134, 142-167, 186-194, 198-203, 235, 255-378, 388-457, 475-514, 530-583, 593-616, 626-666, 694-710, 720, 736-739, 758-828, 846-882, 911-936, 944-960, 968-973, 983-1010, 1020-1022, 1030-1032, 1045-1047, 1061-1078, 1088-1109, 1119-1141, 1149-1166, 1189-1212, 1222, 1232-1244, 1257-1279, 1293-1338, 1346-1363, 1373-1531
rest/types/__init__.py                           0       0  100.00%
rest/types/collections_search.py                13      13  0.00%    18-44
rest/types/eodag_search.py                     179      15  91.62%   122, 232-236, 269-271, 289, 292, 298, 302, 360, 372-375
rest/types/queryables.py                        56      13  76.79%   51-52, 59-60, 67-68, 97-102, 111-112, 174
rest/types/stac_search.py                      126      27  78.57%   128-130, 154-155, 160-161, 176, 191-193, 201, 205, 252-257, 266-274
rest/utils/__init__.py                          93      50  46.24%   79-85, 97-99, 104-109, 128-130, 140-168, 175-183, 190-211
rest/utils/cql_evaluate.py                      48       5  89.58%   69, 76, 90, 97, 105
rest/utils/rfc3339.py                           23      19  17.39%   40-65
types/__init__.py                              114      77  32.46%   53, 66-70, 81-93, 109-132, 172, 198-278
types/bbox.py                                   43      19  55.81%   46-61, 72-74, 85-87, 99-101, 113-115, 123
types/download_args.py                           9       0  100.00%
types/queryables.py                             81       0  100.00%
types/search_args.py                            70      33  52.86%   60-64, 71-88, 103-134
types/whoosh.py                                 15       0  100.00%
utils/__init__.py                              500      76  84.80%   85, 90, 170-177, 194-195, 204-231, 234, 248, 330-334, 372, 410-414, 435-437, 492, 519, 534, 572-573, 908, 969-972, 980-981, 1009, 1022-1023, 1056, 1076-1077, 1103, 1106, 1127-1132, 1145-1146, 1153-1164, 1205, 1381, 1447-1450, 1455-1457
utils/constraints.py                           119      45  62.18%   67, 94-103, 110, 112, 119, 144, 148-164, 190-192, 202, 216-232, 241-252
utils/exceptions.py                             35       4  88.57%   91-94
utils/import_system.py                          28      19  32.14%   67-81, 93-103
utils/logging.py                                29      18  37.93%   58-123, 148-163
utils/notebook.py                               44      32  27.27%   25-29, 34-43, 55-64, 69-78, 83-87
utils/repr.py                                   30      22  26.67%   27-30, 35-42, 51-76, 94-101
utils/requests.py                               55      11  80.00%   69, 96, 98, 100, 102, 104, 123, 131-133, 141
utils/rest.py                                   36      20  44.44%   46-65, 71-82
utils/stac_reader.py                           111      45  59.46%   56-57, 63-85, 95-97, 101, 143, 159-162, 215-224, 234-264
TOTAL                                         9533    4864  48.98%

Diff against develop

Filename                                    Stmts    Miss  Cover
----------------------------------------  -------  ------  -------
cli.py                                          0     +16  -5.28%
config.py                                       0     +17  -4.77%
api/core.py                                     0    +287  -38.17%
api/search_result.py                            0     +10  -19.61%
api/product/_assets.py                          0     +21  -43.75%
api/product/_product.py                         0    +108  -57.75%
api/product/metadata_mapping.py                 0     +67  -9.93%
plugins/manager.py                              0     +19  -14.62%
plugins/apis/ecmwf.py                           0     +55  -60.44%
plugins/apis/usgs.py                            0    +121  -67.22%
plugins/authentication/aws_auth.py              0      +7  -36.84%
plugins/authentication/base.py                  0      +1  -5.89%
plugins/authentication/generic.py               0      +5  -35.71%
plugins/authentication/header.py                0      +9  -47.37%
plugins/authentication/keycloak.py              0     +25  -54.34%
plugins/authentication/openid_connect.py        0     +14  -7.65%
plugins/authentication/qsauth.py                0     +19  -55.88%
plugins/authentication/sas_auth.py              0     +30  -63.83%
plugins/crunch/base.py                          0      +2  -20.00%
plugins/crunch/filter_date.py                   0     +31  -52.54%
plugins/crunch/filter_latest_tpl_name.py        0     +19  -61.29%
plugins/crunch/filter_overlap.py                0     +38  -57.58%
plugins/crunch/filter_property.py               0     +15  -50.00%
plugins/download/aws.py                         0    +258  -52.76%
plugins/download/base.py                        0    +171  -67.59%
plugins/download/creodias_s3.py                 0      +1  -5.88%
plugins/download/http.py                        0    +362  -67.80%
plugins/download/s3rest.py                      0     +73  -62.93%
plugins/search/base.py                          0     +36  -28.12%
plugins/search/build_search_result.py           0      +9  -4.98%
plugins/search/cop_marine.py                    0    +117  -59.39%
plugins/search/creodias_s3.py                   0     +31  -56.37%
plugins/search/data_request_search.py           0     +61  -30.50%
plugins/search/qssearch.py                     -1    +126  -19.02%
plugins/search/static_stac_search.py            0     +29  -40.28%
rest/core.py                                    0     +28  -11.96%
rest/stac.py                                    0      +4  -0.86%
rest/types/stac_search.py                       0      +9  -7.14%
rest/utils/__init__.py                          0     +20  -21.50%
rest/utils/rfc3339.py                           0     +13  -56.52%
types/__init__.py                               0     +38  -33.33%
types/search_args.py                            0     +15  -21.43%
utils/__init__.py                               0     +37  -7.40%
utils/constraints.py                            0      +8  -6.73%
utils/exceptions.py                             0      +3  -8.57%
utils/logging.py                                0     +17  -58.62%
utils/notebook.py                               0      +9  -20.46%
utils/repr.py                                   0     +14  -46.66%
utils/rest.py                                   0     +19  -52.78%
TOTAL                                          -1   +2444  -25.64%

Results for commit: 221f846

Minimum allowed coverage is 70%

♻️ This comment has been updated with latest results

@anesson-cs anesson-cs force-pushed the eoproduct-asset-improvements branch from 0fdac93 to 221f846 Compare July 24, 2024 09:28
@sbrunato sbrunato marked this pull request as draft July 26, 2024 06:50
@sbrunato
Copy link
Collaborator

not fan of this approach. In library mode, we'd better keep working with remote_location, and maybe remove properties["downloadLink"] during EOProduct construction

@sbrunato sbrunato closed this Oct 29, 2024
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.

EOProduct asset improvements
2 participants