Open philipbaileynar opened 2 years ago
Option 3 above does suggest it would save time for Frank.
@Feldspar5 I just talked to Frank. We agreed to go with option 3 because:
Good news; I was hoping that was the chosen solution. I look forward to hearing what he discovers. Thanks
Task 1
Fixing specific issues with the NAMCr package.
29
21
31
28
30
Task 2
More general testing of each API endpoint via NAMCr.
Iterate over all API endpoints (use
NAMCr::cli()
to see a list of the API endpoints) and call them repeatedly over as many permutations of data as possible. Philip will provide a table of API endpoints ranked by priority. The goal is to ensure that all endpoints operate without throwing an error; the most common of which is a bad formatting caused by an erroneous curly brace "{". It is recognized that Frank does not possess the context necessary to interpret the data returned. Therefore the goal is just to check for errors.I see a few options for how best to provide the arguments to the endpoints:
siteInfo
endpoint Philip will provide a CSV of ~ 32,000 sites and Frank will load this CSV and iterate over each row, calling thesiteInfo
with the values from the CSV.sites
endpoint can be used to get a list of all sites that are then fed into thesiteInfo
endpoint.A Little Context
The NAMCr package was written before the API was finished. By the time the API was complete we had introduced several endpoints that return data in new structures that cause NAMCr problems. The two suspected data structures that cause NAMCr problems are lists and JSON.
While we explicitly avoided using JSON data types in the API, new data that has been inserted since the system launch has included JSON in some fields. The API should be formatting this in a consistent way, but NAMCr appears to struggle in some cases.