{"action":"closed","issue":{"url":"https://api.github.com/repos/plantbreeding/brapi-Java-TestServer/issues/11","repository_url":"https://api.github.com/repos/plantbreeding/brapi-Java-TestServer","labels_url":"https://api.github.com/repos/plantbreeding/brapi-Java-TestServer/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/plantbreeding/brapi-Java-TestServer/issues/11/comments","events_url":"https://api.github.com/repos/plantbreeding/brapi-Java-TestServer/issues/11/events","html_url":"https://github.com/plantbreeding/brapi-Java-TestServer/issues/11","id":395663397,"node_id":"MDU6SXNzdWUzOTU2NjMzOTc=","number":11,"title":"Test Server Studies post_search_studies metadata Incorrect","user":{"login":"peterrosario","id":26546705,"node_id":"MDQ6VXNlcjI2NTQ2NzA1","avatar_url":"https://avatars1.githubusercontent.com/u/26546705?v=4","gravatar_id":"","url":"https://api.github.com/users/peterrosario","html_url":"https://github.com/peterrosario","followers_url":"https://api.github.com/users/peterrosario/followers","following_url":"https://api.github.com/users/peterrosario/following{/other_user}","gists_url":"https://api.github.com/users/peterrosario/gists{/gist_id}","starred_url":"https://api.github.com/users/peterrosario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterrosario/subscriptions","organizations_url":"https://api.github.com/users/peterrosario/orgs","repos_url":"https://api.github.com/users/peterrosario/repos","events_url":"https://api.github.com/users/peterrosario/events{/privacy}","received_events_url":"https://api.github.com/users/peterrosario/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-27T22:14:23Z","updated_at":"2019-01-04T17:06:38Z","closed_at":"2019-01-04T17:06:38Z","author_association":"NONE","body":"To reproduce:\r\n\r\n1. Visit https://app.swaggerhub.com/apis/PlantBreedingAPI/BrAPI/1.3\r\n\r\n2. Click first GET under Studies.\r\n\r\n3. Click \"Try it out.\"\r\n\r\n4. For Study Search request fill in\r\n```\r\n{\r\n  \"active\": null,\r\n  \"commonCropNames\": [],\r\n  \"germplasmDbIds\": [],\r\n  \"locationDbIds\": [],\r\n  \"observationVariableDbIds\": [],\r\n  \"page\": 0,\r\n  \"pageSize\": 1000,\r\n  \"programDbIds\": [],\r\n  \"programNames\": [],\r\n  \"seasonDbIds\": [],\r\n  \"sortBy\": \"studyDbId\",\r\n  \"sortOrder\": \"ASC\",\r\n  \"studyDbIds\": [],\r\n  \"studyNames\": [],\r\n  \"studyTypeDbIds\": [],\r\n  \"studyTypeNames\": [],\r\n  \"trialDbIds\": []\r\n}\r\n```\r\n5. Click Execute.\r\n\r\nThe result is correct but the metadata pageSize, totalCount and totalPages are all 0. I don't know what pageSize is used by default but totalCount and totalPages should probably be 1."}}
{"actor":{"display_login":"BrapiCoordinatorSelby"}}