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

[Bug]: response of TaxonWorks web api https://sfg.taxonworks.org/api/v1 inconsistent #3940

Open
jhpoelen opened this issue May 8, 2024 · 0 comments
Labels
bug An existing function is broken.

Comments

@jhpoelen
Copy link

jhpoelen commented May 8, 2024

Steps to reproduce the bug

1. go back in time to 2023-08-16*
2. access https://sfg.taxonworks.org/api/v1
3. inspect results
4. time travel to 2024-05-07**
5. access https://sfg.taxonworks.org/api/v1
6. compare responses from 2. with 5.

Expected result: the structure of the responses to https://sfg.taxonworks.org/api/v1 is the same: the "v1" implies that the API is versioned and should be stable.

Actual result: the structure of the responses to https://sfg.taxonworks.org/api/v1 are different.

*/** If you don't have a time machine, you can use the following versioned archives to access the 2023-08-16 and 2024-05-07 results.

Poelen, J. H. (2023). A biodiversity dataset graph: Biological Associations in TaxonWorks hash://sha256/a4d651aac5220487835e6178511886e98b845b2d98cb7c5447fb2b042e0654d2 hash://md5/849edbe55e31e54ea5cdaba0188c5655 (0.2) [Data set]. Zenodo. https://doi.org/10.5281/zenodo.8253729

Poelen, J. H. (2024). A biodiversity dataset graph: Biological Associations in TaxonWorks hash://sha256/e4a47c067d6c125da60c9a1b92b5eecdea539cb8666cd3aed99db347ae5b8ed0 hash://md5/686007de79cc2a49ab23fd3debe56e3f (0.3) [Data set]. Zenodo. https://doi.org/10.5281/zenodo.11151783

2023-08-16 response was retrieved via

preston alias\
 --anchor\
 hash://sha256/a4d651aac5220487835e6178511886e98b845b2d98cb7c5447fb2b042e0654d2\
 https://sfg.taxonworks.org/api/v1\
 | head -n1\
 | preston cat\
 | jq .

to produce:

{
  "success": true,
  "open_projects": [
    {
      "UndtpSwdHsSRw8K3ddsTNQ": "Terrestrial Parasite Tracker (TPT)"
    },
    {
      "VVpT9aMPkqtnzmRVUx5jtg": "Opiliones of the World"
    },
    {
      "adhBi59dc13U7RxbgNE5HQ": "Universal Chalcidoidea Database (UCD)"
    },
    {
      "c5lh0vgnBGTOQDOSfRYC8g": "Global Lepidoptera Index"
    },
    {
      "BS2jGvMz1w4CDxZyQ1h1Qg": "UNH Insects"
    },
    {
      "JHfGs7VYEihc5QkqvKnvxw": "Ceraphronoids"
    },
    {
      "Rugp5rLnuhLu8qA3yzKTVw": "Cucujoidea World Catalog"
    },
    {
      "ekMTicbZWijqmdpHKqs_TA": "Purdue Entomological Research Collection"
    },
    {
      "iu4ty6tOdWg_-cceoQjhyQ": "Odonata"
    },
    {
      "X4DtgGPunYwPr9NEjH-SoQ": "Small Beetle Groups"
    },
    {
      "e-udR-5oT2THWfw9dLMJbw": "Dung_Beetles"
    },
    {
      "Ots0-yen4dVefn0Etyxvgw": "Curculionidae"
    },
    {
      "6IWD_06Pw-N2BRLtA20W8w": "Aphelinidae Workshop"
    },
    {
      "2GkoX1NjlZylDmr6dDpQ6g": "Frost Museum"
    },
    {
      "ZEJhFp9sq8kBfks15qAbAg": "3i World Auchenorrhyncha Database"
    },
    {
      "xQ9bKrhfQtHYfro9t6YY0A": "INHS Insect Collection"
    },
    {
      "FV3se0XDYEdAQH_2pojdGA": "Tenebrionidae"
    },
    {
      "DKwGc6rqkWHHUDwz9SM2Sw": "Ephedra Monograph"
    }
  ]
}

The 2024-05-07 response was retrieve via:

preston alias\
 --anchor\
 hash://sha256/e4a47c067d6c125da60c9a1b92b5eecdea539cb8666cd3aed99db347ae5b8ed0\
 https://sfg.taxonworks.org/api/v1\
 | head -n1\
 | preston cat\
 | jq .

to produce

{
  "success": true,
  "open_projects": [
    {
      "name": "Fireflies",
      "project_token": "A5vK_pGWO-as-gL8bTjQhg",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Terrestrial Parasite Tracker (TPT)",
      "project_token": "UndtpSwdHsSRw8K3ddsTNQ",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Opiliones of the World",
      "project_token": "VVpT9aMPkqtnzmRVUx5jtg",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Universal Chalcidoidea Database (UCD)",
      "project_token": "adhBi59dc13U7RxbgNE5HQ",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Global Lepidoptera Index",
      "project_token": "c5lh0vgnBGTOQDOSfRYC8g",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "UNH Insects",
      "project_token": "BS2jGvMz1w4CDxZyQ1h1Qg",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Cynipidae",
      "project_token": "XNQXg87H4cti7FAs-NhsHQ",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Cucujoidea World Catalog",
      "project_token": "Rugp5rLnuhLu8qA3yzKTVw",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Platygastroidea",
      "project_token": "JHfGs7VYEihc5QkqvKnvxw",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Isoptera Species File",
      "project_token": "CkxD15vOFrXd-kq2QchPig",
      "data_curation_issue_tracker_url": "https://www.github.com/sfg-taxonpages/isoptera/issues"
    },
    {
      "name": "Anthribidae",
      "project_token": "O9hB_UOpheOP26yyLk0t1A",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Purdue Entomological Research Collection",
      "project_token": "ekMTicbZWijqmdpHKqs_TA",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Odonata",
      "project_token": "iu4ty6tOdWg_-cceoQjhyQ",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Trilobites and Ammonites",
      "project_token": "NwDdMde5__27Q7McrZm7Ng",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Dung_Beetles",
      "project_token": "e-udR-5oT2THWfw9dLMJbw",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Curculionidae",
      "project_token": "Ots0-yen4dVefn0Etyxvgw",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Aphelinidae Workshop",
      "project_token": "6IWD_06Pw-N2BRLtA20W8w",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Frost Museum",
      "project_token": "2GkoX1NjlZylDmr6dDpQ6g",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Small Beetle Groups",
      "project_token": "GOYa5sp62ZYA1sCB_S3YFg",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "World Ichneumonidae Database (WID)",
      "project_token": "nOnhTWA3rt1Bs92dEAm7fw",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "INHS Insect Collection",
      "project_token": "xQ9bKrhfQtHYfro9t6YY0A",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Tenebrionidae",
      "project_token": "FV3se0XDYEdAQH_2pojdGA",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Ephedra Monograph",
      "project_token": "DKwGc6rqkWHHUDwz9SM2Sw",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "AntWeb",
      "project_token": "X2ldC5XeEgGtLlgxgmv6nQ",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Orthoptera Species File",
      "project_token": "3oerVKf82_196cIECvHYNg",
      "data_curation_issue_tracker_url": "https://github.com/sfg-taxonpages/orthoptera/issues/"
    },
    {
      "name": "Coleorrhyncha Species File",
      "project_token": "L0sAnBlkVb53ZBbfP-ljzQ",
      "data_curation_issue_tracker_url": "https://www.github.com/sfg-taxonpages/coleorrhyncha/issues"
    },
    {
      "name": "Coreoidea Species File",
      "project_token": "Tlferm5Ow1YUIc_Y1pxo7g",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Chrysididae Species File",
      "project_token": "CPs7hB7_HeYJd9EgQTWFmw",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Plecoptera Species File",
      "project_token": "7JgzFyTsllL_1WuwvcQ_Zw",
      "data_curation_issue_tracker_url": "https://github.com/sfg-taxonpages/plecoptera/issues"
    },
    {
      "name": "Phasmida Species File",
      "project_token": "RijJjUChacO20MdXjGvfcA",
      "data_curation_issue_tracker_url": "https://github.com/sfg-taxonpages/phasmida/issues/"
    },
    {
      "name": "Aphid Species File",
      "project_token": "2_njyXetAKy0N1nPmcxSbg",
      "data_curation_issue_tracker_url": "https://github.com/sfg-taxonpages/aphid/issues"
    },
    {
      "name": "Cockroach Species File",
      "project_token": "rABfQ7Q0gtV8m-Nb-BvajQ",
      "data_curation_issue_tracker_url": "https://www.github.com/sfg-taxonpages/cockroach/issues"
    },
    {
      "name": "Dermaptera Species File",
      "project_token": "_L4oel1yVzRUqC3OSzov1Q",
      "data_curation_issue_tracker_url": "https://www.github.com/sfg-taxonpages/dermaptera/issues"
    },
    {
      "name": "Embioptera Species File",
      "project_token": "Z1pSOTIIDhFLdgh5Sks00Q",
      "data_curation_issue_tracker_url": "https://www.github.com/sfg-taxonpages/embioptera/issues"
    },
    {
      "name": "Grylloblattodea Species File",
      "project_token": "V10xfSavJssB8tLg6wsxOw",
      "data_curation_issue_tracker_url": "https://www.github.com/sfg-taxonpages/grylloblattodea/issues"
    },
    {
      "name": "Mantophasmatodea Species File",
      "project_token": "mpAaAUmdCaka4rJhjlG9tQ",
      "data_curation_issue_tracker_url": "https://www.github.com/sfg-taxonpages/mantophasmatodea/issues"
    },
    {
      "name": "Psocodea Species File",
      "project_token": "ZRZHC_HBMB9o5ATZHlQpVg",
      "data_curation_issue_tracker_url": "https://www.github.com/sfg-taxonpages/psocodea/issues"
    },
    {
      "name": "Zoraptera Species File",
      "project_token": "qUe8F1_JHiOJXoGIw8D1JA",
      "data_curation_issue_tracker_url": "https://www.github.com/sfg-taxonpages/zoraptera/issues"
    },
    {
      "name": "Lygaeoidea Species File",
      "project_token": "SyvvahECCRfi7odomcpfBQ",
      "data_curation_issue_tracker_url": "https://github.com/sfg-taxonpages/lygaeoidea/issues"
    },
    {
      "name": "Mantodea Species File",
      "project_token": "GLC3KrdNiy7vCF0izU-L3w",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "Syrphidae of Italy",
      "project_token": "pfqGdynettFI9-mB48_oGQ",
      "data_curation_issue_tracker_url": null
    },
    {
      "name": "3i World Auchenorrhyncha Database",
      "project_token": "ZEJhFp9sq8kBfks15qAbAg",
      "data_curation_issue_tracker_url": "https://github.com/sfg-taxonpages/hoppers/issues/"
    },
    {
      "name": "Afrotropical Bees",
      "project_token": "w0ikO81bhEa4YbbM1P2Dwg",
      "data_curation_issue_tracker_url": null
    }
  ]
}

Note the different structure.

related to globalbioticinteractions/globalbioticinteractions#373 (comment)

Screenshot

No response

Expected behavior

No response

Additional Screenshots

No response

Environment

Production

Sandbox Used

NA

Version

(no version noted in API responses as far as I can tell)

Browser Used

N/A

@jhpoelen jhpoelen added the bug An existing function is broken. label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An existing function is broken.
Projects
None yet
Development

No branches or pull requests

1 participant