NorthArrowResearch / champ-workbench

http://workbench.northarrowresearch.com/
GNU General Public License v3.0
0 stars 0 forks source link

Visit Details tab not updated with Visit Info from api download #25

Open volkcj opened 7 years ago

volkcj commented 7 years ago

Not sure if Visit Details attributes are pulled from api yet, but I don't think they are (they should be at some point). Indicator is the fact that CategoryName and VisitPhase are empty in the Visit Details attribute list.

https://dl.dropboxusercontent.com/u/22543727/Snapshots/2017-07-13_174618.png

philipbaileynar commented 7 years ago

The VisitPhase does not appear to be available on the API.

I think that the Category is available on the API. @volkcj is a Category value of "Asotin IMW" appropriate for Visit ID 3431? Here's the part of the API response where I'm getting this:

"siteApiEndpoint": "https://www.monitoringresources.org/api/v1/designs/256/sites/ASW00001-CC-F2 P1BR",
"category": "Asotin IMW",
"id": 3431,
"name": "3431",
"url": "https://api.CHaMPMonitoring.org/api/v1/visits/3431",
"siteName": "ASW00001-CC-F2 P1BR",
"siteUrl": "https://api.CHaMPMonitoring.org/api/v1/sites/asw00001ccf2p1br",
"lastMeasurementChange": "2017-01-06T17:23:25.447",
"status": "Data Approved",
"sampleYear": 2015,
"sampleDate": "2015-08-29T00:00:00",
"lastUpdated": "2016-02-17T11:43:44.387",
"objectType": "Visit",
"scoutingDocumentsUrl": "https://api.CHaMPMonitoring.org//FieldSupport/GetFieldSupportReferenceFileForVisit/12/3431"
volkcj commented 7 years ago

yes, category =Asotin IMW is appropriate for CategoryName in workbench.