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

REST API data/JSON differences in values between diff environments #19

Closed
mbohun opened this issue Aug 31, 2018 · 3 comments
Closed

REST API data/JSON differences in values between diff environments #19

mbohun opened this issue Aug 31, 2018 · 3 comments

Comments

@mbohun
Copy link

mbohun commented Aug 31, 2018

An example showing diff in REST API return values (JSON) between:

  • "old" UAT env (installed/created 2018-05-11), AND
  • current SIT (installed 2018-08-15; SOLR being re-generated daily since the installation):

https://gist.github.com/mbohun/b2ec750a338535328e6f803e79b6806e/revisions

@mbohun
Copy link
Author

mbohun commented Aug 31, 2018

...another example (this time between DEV1 and SIT):

curl -s 'https://dev1-ag-bie.oztaxa.com/ws/search?q=Drosophila&rows=20' \
  | jq -c '[ .searchResults.results[]|{guid,id,scientificName} ] | sort_by(.guid)[]'

{"guid":"103403","id":"ab601b48-f28f-4e5e-bc1c-ae2f9c26b941","scientificName":"Drosophila ampelophila Loew, 1862"}
{"guid":"106004","id":"011b0d86-2c16-4155-9080-7c18f7d01161","scientificName":"Drosophila (Unplaced) buzzatii"}
{"guid":"108416","id":"475f7ab5-3683-4a20-b967-a8718e014c9c","scientificName":"Drosophila (Unplaced) hydei"}
{"guid":"108872","id":"5774fc86-ff38-44f3-b247-7d26b28a2d64","scientificName":"Drosophila (Unplaced) suzukii"}
{"guid":"110799","id":"25cadbea-210e-4450-9b10-822e50293dab","scientificName":"Drosophila (Unplaced) repleta"}
{"guid":"112793","id":"0a0ee1b0-8edb-4ebe-8fa1-b479c4faf5e4","scientificName":"Drosophila (Unplaced) bipectinata"}
{"guid":"112882","id":"43c2fc4e-906d-4085-a9a1-b077c58bd453","scientificName":"Drosophila (Unplaced) mercatorum"}
{"guid":"113046","id":"a76258c7-70dc-41e2-9475-38954c03f699","scientificName":"Drosophila (Sophophora)"}
{"guid":"113047","id":"4e2cfc13-0add-4600-8640-640b3445719e","scientificName":"Drosophila (Sophophora) obscura"}
{"guid":"55003","id":"4999260f-3ac9-4fd6-9506-6be068bfed81","scientificName":"Drosophila"}
{"guid":"55005","id":"5cd0ebc3-2a14-4001-8dc8-abbdbef9423a","scientificName":"Drosophila (Unplaced) busckii"}
{"guid":"55007","id":"5a35b050-952d-4946-98c3-bf9fdf66f77a","scientificName":"Drosophila (Unplaced) melanogaster"}
{"guid":"61364","id":"07fd0b40-b0aa-4f21-8777-0f684cb2be3e","scientificName":"Drosophila (Unplaced) ananassae"}
{"guid":"62917","id":"de9fd724-dcc5-4be5-bf5f-45702ad05c36","scientificName":"Drosophila (Unplaced) funebris"}
{"guid":"65119","id":"c2da3175-5f06-48f5-b24e-f57c3f75d2f3","scientificName":"Drosophila (Unplaced) immigrans"}
{"guid":"65279","id":"e3178dd3-3fab-40bf-9d6a-8d4a140ff4bf","scientificName":"Drosophila (Unplaced) simulans"}
curl -s 'https://sit-ag-bie.oztaxa.com/ws/search?q=Drosophila&rows=20' \
  | jq -c '[ .searchResults.results[]|{guid,id,scientificName} ] | sort_by(.guid)[]'

{"guid":"103403","id":"e8ec283c-6d14-407f-b38d-51abddd806b6","scientificName":"Drosophila ampelophila Loew, 1862"}
{"guid":"106004","id":"a7499813-d8f0-49ee-9dad-89b605e00a28","scientificName":"Drosophila (Unplaced) buzzatii"}
{"guid":"108416","id":"9123b586-52f1-4a78-9075-5a30c34663f6","scientificName":"Drosophila (Unplaced) hydei"}
{"guid":"108872","id":"fd4d9ce3-fdc9-494e-b6bd-aa79a42e6ade","scientificName":"Drosophila (Unplaced) suzukii"}
{"guid":"110799","id":"1f8aa6d0-c4f7-482c-84cf-6736602018fe","scientificName":"Drosophila (Unplaced) repleta"}
{"guid":"112793","id":"b1b96abe-6aa7-4181-876e-e9d96f7b16b8","scientificName":"Drosophila (Unplaced) bipectinata"}
{"guid":"112882","id":"2087e63e-5489-4be9-b046-0790e49cff46","scientificName":"Drosophila (Unplaced) mercatorum"}
{"guid":"113046","id":"8d54d1a2-7453-4c59-b89d-ad53a087c379","scientificName":"Drosophila (Sophophora)"}
{"guid":"113047","id":"1dc0de31-f959-4060-823c-382adbd830fa","scientificName":"Drosophila (Sophophora) obscura"}
{"guid":"55003","id":"44d86e5c-5cad-4d40-9223-013211346b28","scientificName":"Drosophila"}
{"guid":"55005","id":"7d5dd6f1-5648-4a04-ae93-2c1549e39fb4","scientificName":"Drosophila (Unplaced) busckii"}
{"guid":"55007","id":"06893763-7784-4c44-a313-d403d1ff4f02","scientificName":"Drosophila (Unplaced) melanogaster"}
{"guid":"61364","id":"261d808e-8946-41a6-b86c-1a7d4f999f9e","scientificName":"Drosophila (Unplaced) ananassae"}
{"guid":"62917","id":"8b06e149-432c-4275-b49c-168012074788","scientificName":"Drosophila (Unplaced) funebris"}
{"guid":"65119","id":"ba1ef0d2-2ca8-46dc-9b95-98476c495908","scientificName":"Drosophila (Unplaced) immigrans"}
{"guid":"65279","id":"56aa30e4-27db-4b65-baea-5ec48a0932c2","scientificName":"Drosophila (Unplaced) simulans"}

@charvolant
Copy link
Collaborator

Are these different other than the ids, since I'm not seeing anything. The ids are internally generated UUIDs to key things in the solr index.

@moziauddin
Copy link
Contributor

This is no longer relevant. JSON structure is consistent across an endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants