Commit Graph

8 Commits (31a599de070e0f52ded28da1154bf39fcca642cf)

Author SHA1 Message Date
Chris Goller b63047a402 Add server error logging 2016-11-19 11:41:06 -06:00
Chris Goller eb604317c7 Fix several handlers that were not returning after error 2016-11-11 12:52:34 -06:00
Tim Raymond cb37de2d76 Make /mappings use App Name instead of ID
Due to developer confusion over nomenclature, the ID was used in lieu of
the Application property of `Layout`. `layout.Application` holds the
user-facing name for a particular layout, and is what should be paired
with a measurement name in the `/mappings` endpoint.

Before
------
```
% curl http://localhost:8888/chronograf/v1/mappings
{
   "mappings" : [
      {
         "name" : "18aed9a7-dc83-406e-a4dc-40d53049541a",
         "measurement" : "disk"
      }
   ]
}
```

After
-----
```
% curl http://localhost:8888/chronograf/v1/mappings
{
   "mappings" : [
      {
         "measurement" : "disk",
         "name" : "User Facing Application Name"
      }
   ]
}
```

Connect #326
2016-11-04 14:04:50 -04:00
nathan haugo 770bb0ef6e Revert unwanted changes from commit to new_apps.sh 2016-11-03 11:13:40 -07:00
nathan haugo a212660084 Add name and cell to new_app.sh 2016-11-03 11:03:26 -07:00
Tim Raymond f4682c51d6 Wire up /mappings endpoint to layouts
This populates the /mappings with data found in the LayoutStore. It uses
the ID for the layout as the mappings Name and pulls the Measurement
from there as well.
2016-11-01 15:49:10 -04:00
Chris Goller d6a067427b Fix mux paths to be hardcoded; clarify server start; fix golint 2016-10-28 11:27:06 -05:00
Chris Goller d1359c09b3 Refactor to remove autogenerated code. 2016-10-26 22:10:52 -05:00