In a development build (i.e. does not have the assets build tag), the
first request to GET /api/v2/swagger.json will produce log output like:
INFLUXDB_VALID_SWAGGER_PATH not set; falling back to checking relative paths {"log_id": "0E4I7Dkl000", "service": "swagger-loader"}
Successfully loaded swagger.yml {"log_id": "0E4I7Dkl000", "service": "swagger-loader", "path": "/.../influxdb/http/swagger.yml"}
There is no such log line in production builds.
But now both builds correctly serve swagger.json, instead of just
production builds.
* feat: add telegraf configs to the config page
* feat: add tokens to telegraf configs
* feat(perms): display proper permissions to user
* feat: add tokens to redux
* wip: add token to auths
* hack: make server return labels and links
* wip: create a label for telegraf config
* fix(http/telegraf): JSON marshaling using pointer receiver
* chore: add back whitespace
* chore: add back whitespace
* add telegraf token to popup
* feat(token/tele): remove token when config gets deleted
* test: sadness
* change to streaming
* unskip test
* Use client generated Label in dashboard actions
* Fetch labels when dashboards index loads
* Add styles for "colorless" labels
* Implement inline label editing from dashboard cards
* Fine tune label deletion
* Create createLabelAJAX function
Co-Authored-By: Delmer <ofthedelmer@users.noreply.github.com>
* Make inline label creation work in dashboards index
Co-Authored-By: Delmer <ofthedelmer@users.noreply.github.com>
* WIP use ILabel as the defacto label type
* Ensure a label can be updated without having to change the name
* Ensure all fields in a Label can be changed in the overlay
* WIP write e2e tests for inline labelling
Co-Authored-By: Andrew Watkins <121watts@users.noreply.github.com>
* wip: dashboard brittle
* wip dashboards
* Position inline labels popover such that it doesn't collide with the navbar
* chore: run all dashboard tests 25 times
* Ensure that there is a dashboard with a name that matches the search test query
* Appease the lint gods with mortal sacrifice
* Remove unit test in favor of e2e test
Everything the unit test is testing is also tested by the e2e test
Co-Authored-By: Delmer <ofthedelmer@users.noreply.github.com>
* Remove for loop and fix search name assertion
Co-Authored-By: Delmer <ofthedelmer@users.noreply.github.com>
Co-Authored-By: Andrew Watkins <121watts@users.noreply.github.com>
* Fix affected task test
Co-Authored-By: Delmer <ofthedelmer@users.noreply.github.com>
Co-Authored-By: Andrew Watkins <121watts@users.noreply.github.com>
* Fix incorrectly named reference in e2e test
Co-Authored-By: Delmer <ofthedelmer@users.noreply.github.com>
Co-Authored-By: Andrew Watkins <121watts@users.noreply.github.com>
* Undo go file change
* Add guard back in
* Undo changes to go file