test(http): get user off of session in create authz test
fix(http): allow user id to be specified explicitly on authorization
create authorization now allows specifying user id explicitly. If no
user id is specified then we use the user id from the authorizer.
fix(http): use influxdb import
fix(http): use platform error in http auth tests
feat(cmd/influx): allow create auth command to specify user explicitly
feat(http): add org id to permissions
filter out resources that have mission IDs
fix(influxdb): simplify auth check in PermissionAllowed
review(platform): update as noted in review
fix(influxdb): ensure permission has valid org id
I did this with a dumb editor macro, so some comments changed too.
Also rename root package from platform to influxdb.
In interest of minimizing risk, anyone importing the root package has
now aliased it to "platform" so that no changes beyond imports were
necessary in those files.
Lastly, replace the old platform module to local path /dev/null so that
nobody can accidentally reintroduce a platform dependency while
migrating platform code to influxdb.
feat(http): add http handler for proto service
feat(mock): add mock proto service
test(http): add proto handler tests
fix(platform): add view as option when adding a cell
feat(platform): add dashboard to proto struct
feat(fs): add filesystem implementation of proto
feat(http): add protos endpoints to api handler
feat(cmd/influxd/launcher): add protos path to server
doc(http): add protos to swagger
test(cmd/influxd/launcher): add --protos-path to launcher tests
fix(fs): remove unused args from test
fix(http): use platform.Error where appropriate
feat(platform): add functional options for platform errors
fix(testing): set dashboard ids properly in dashboard tests
feat(bolt): add dashboard specific views
fix(bolt): delete view when cell is removed or dashboard is deleted
* Update cur_swagger
Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>
* Display labels in dashboards list
Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>
* Add # to example label
Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>
* Write test for dashboard TableRow component
Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>
* Update snapshot and mock data
Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>
* Increase page gutter and max width of centered pages
* Show description in dashboards list
* Update snapshot
* Fix linting error
* Remove snapshot check from unit test
all tests use a unique bucket based on the test file name. copied all tests over from flux repo
the tests are currently disabled due to engine consistency issues: https://github.com/influxdata/flux/issues/613
* fix(ui/org-view): list actual tasks from api
* fix(ui/org-view): fix dashboard list not rendering
* fix(ui/org-view): fix bucket modal
* feat(dashboards): add updated at column