-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the GBIF issue for single argument queries (#166)
* 🐛add tests to capture #165 * update README * ✅ fix a bug due to GBIF re-adding a formerly missing occurrence *⚠️ add error when the value is not part of the enum key * 🐛 update the imported modules for edgecase test * ℹ️ add a temporary log to see the query string * ✅ the tests are passing Closes #165
- Loading branch information
Showing
7 changed files
with
28 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
# GBIF wrapper for Julia | ||
|
||
This is project offers an interface to the [GBIF] search API from | ||
This is project offers an interface to the GBIF search API from | ||
Julia. Current efforts focus on querying and exporting occurrences through the | ||
`occurrence/search` endpoint. There is partial support for the taxonomic API. | ||
|
||
The recommended way to use this package is through the | ||
`SpeciesDistributionToolkit` package. | ||
`SpeciesDistributionToolkit` package, which will transparently export all of the | ||
`GBIF` types and methods. |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module GBIFEdgeCasesTest | ||
using Test | ||
using GBIF | ||
|
||
# When there is a single argument used for a query, sometimes the second position gets | ||
# converted to not text | ||
queryset = ["hasCoordinate" => true] | ||
@test length(occurrences(queryset...)) > 0 | ||
|
||
queryset = ["hasCoordinate" => true] | ||
@test length(occurrences(taxon("Alces alces"), queryset...)) > 0 | ||
|
||
end |
This file contains 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
This file contains 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
ce74a0a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register subdir="GBIF"
ce74a0a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/81693
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: