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

GBIF throws 404 (not 410) for deleted resources #156

Merged
merged 3 commits into from
Feb 18, 2023

Conversation

tpoisot
Copy link
Member

@tpoisot tpoisot commented Feb 18, 2023

  • Update the tests with a failing occurrence
  • Add a way to handle 404 when querying deleted occurrences

@github-actions
Copy link
Contributor

@codecov-commenter
Copy link

Codecov Report

Base: 47.49% // Head: 40.53% // Decreases project coverage by -6.96% ⚠️

Coverage data is based on head (dd8e638) compared to base (a0970e1).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #156      +/-   ##
==========================================
- Coverage   47.49%   40.53%   -6.96%     
==========================================
  Files          36       28       -8     
  Lines        1196     1014     -182     
==========================================
- Hits          568      411     -157     
+ Misses        628      603      -25     
Flag Coverage Δ
unittests 40.53% <ø> (-6.96%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
GBIF/src/occurrence.jl
GBIF/src/types/iterators.jl
GBIF/src/types/GBIFRecords.jl
GBIF/src/paging.jl
GBIF/src/types/show.jl
GBIF/src/types/GBIFTaxon.jl
GBIF/src/taxon.jl
GBIF/src/query.jl

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@tpoisot tpoisot marked this pull request as ready for review February 18, 2023 16:17
@tpoisot tpoisot merged commit f5e475e into main Feb 18, 2023
@tpoisot tpoisot deleted the hotfix/gbif_invalid_record branch February 18, 2023 16:20
tpoisot added a commit that referenced this pull request Feb 18, 2023
* 🤢 GBIF throws 404 (not 410) for deleted resources

* 🐛 throws an error when the occurrence is not available

* ✅ 404 error on single occurrence is handled
tpoisot added a commit that referenced this pull request Feb 21, 2023
#153)

* 🩹 SimpleSDMLayers version bump

* ✅ test for clipping with natural coordinates (#152)

* 🐛 no use of stride in clip / expand keyword

* 🐛 Update the stitching code to get the right bounding box (#155)

* 🐛 Stitch returns the wrong bounding box in the end
Fixes #154

* 🟩 test the stitch patch

* 🟩 some more tests for the right coordinate

* 🟩 removed a test where the layer type changes

* ➖ drop dependencies for SimpleSDMLayers test

* 🟩 tests with the expand keyword

* GBIF throws 404 (not 410) for deleted resources (#156)

* 🤢 GBIF throws 404 (not 410) for deleted resources

* 🐛 throws an error when the occurrence is not available

* ✅ 404 error on single occurrence is handled

* 🟥 remove the subsetting test (handled by clip)

* 🐛 fix clipping with natural coordinates

* 🐛 fix approximation in displayed coordinate

* 🐛 tests when clipping exactly on the limit

* ✅ add test comparing clip with gdalwarp

* 🐛 missing end for test module

---------

Co-authored-by: Gabriel Dansereau <gabriel.dansereau@umontreal.ca>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants