Todd Persen
cd64ec8718
Fix typos in miscellaneous packages
2019-04-17 13:30:22 -07:00
Jade McGough
cfd521b47a
fix label tests
2019-04-12 01:29:49 -07:00
Jade McGough
7914a04f0b
organizationID -> orgID
2019-04-12 01:29:42 -07:00
Kelvin Wang
92e82884a6
feat(http): accept label id for template post
2019-04-11 13:16:39 -04:00
Jade McGough
950e496748
fix(label): add organizationID to labels
2019-03-18 23:58:42 -07:00
Jade McGough
b2775ef9da
feat(labels): allow label names to be updated
2019-03-15 16:24:23 -07:00
Jade McGough
8da4614360
remove dead label tests
2019-03-15 16:24:23 -07:00
Leonardo Di Donato
1849f29f14
chore: refactor according to label mappings improvements
...
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-01-25 11:17:36 +01:00
Leonardo Di Donato
f57f6ae4d4
chore: test specific error for labels not found
2019-01-25 11:17:36 +01:00
Jade McGough
8a1d7ba1ba
Labels v2 ( #11198 )
...
* WIP first-class endpoint for labels
* WIP
* WIP
* add all the boilerplate
* fix boltdb
* fix http label test
* fix test
* WIP
* fix test failures
* reenable all tests
* add failing test for label mappings
* add label mapping bolt bucket
* implement resource -> label mapping fn
* add inmem label mapping
* delete label mappings
* remove unused stuff
* add missing functions
* add POST endpoint for labels
* add GET route for label
* delete label endpoint
* add label patch endpoint
* remove commented code
* add label service to api handler
* update comment
* add FindLabelByID test
* use platform.Error
* change path name
* formatting
* remove label patch from swagger
* avoid potential orphaned mapping bug
* guard against creating label mappings from nonexistent labels
* update swagger
* update swagger
* update swagger
* fix swagger indentation
* update swagger
2019-01-18 11:03:36 -08:00
Mark Rushakoff
d73d73c0d4
chore: rename imports from platform to influxdb
...
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.
2019-01-09 20:51:47 -08:00
Andrew Watkins
3429e8d0c6
feat(auth): rewrite authorization service ( #2157 )
...
* feat(view-token-overlay): add view token overlay
* test(tokens): update tests
* chore(auths): rename mock data file
* feat(token-view): clicking on description opens token view modal
* feat(token-view): add ability to close overlay
* feat(token-view): display token permissions with updated permissions shape
* feat(token-view): wip update authorization and permission shapes
* feat(auth): wip refactor auth permissions
* fix(auth): generate permissions via functions
* fix(auth): make Id ID
* chore(types): update generated client
* feat(auth): wip add user and org names to auth
* fix(user): didnt save rebase
* feat(auth): WIP refactor auth
* feat(auth): check for user existence during auth creation
* feat(auth): org must exist during auth creation
* fix(auth): pluralize telegrafs resource type
* docs(http): update swagger definition for the Authorization
* test(auth): fix broken tests
* docs(swagger): update cur_swagger Authrorizations
* fix(api): remove trace from cur_swag
* test(ui/token): update components with new generated type definitions
* feat(http): add lookup service adding names for permissions
* fix(http): remove debugging panics
* chore: go tidy
* fix: unsaved rebase
* test(idpe): add ids to Authorizations for log tests
2018-12-28 15:02:19 -08:00
Jade McGough
f89a7f1f4a
create label properties map and allow for patching of it
2018-12-20 12:52:48 -08:00
Jade McGough
8740a69867
add failing tests
2018-12-20 12:27:27 -08:00
Jade McGough
1a10ae701a
remove colors from labels
2018-12-20 12:18:03 -08:00
Jade McGough
74a64d9a46
fix more error responses
2018-12-18 09:22:48 -08:00
Jade McGough
b171004169
use error library in label.go
2018-12-18 08:36:18 -08:00
Jade McGough
3eae5f8b8c
disable test for unimplemented feature
2018-12-18 03:34:08 -08:00
Jade McGough
9e4367176f
update swagger
2018-12-18 03:27:27 -08:00
Jade McGough
1f08f74cce
add test for updating non-existent labels
2018-12-18 00:33:32 -08:00
Jade McGough
5036777750
use new error library
2018-12-17 23:59:04 -08:00
Jade McGough
506517d58f
add failing tests
2018-12-17 23:00:57 -08:00
Jade McGough
e9fba06b3f
WIP add colors to labels
2018-12-17 23:00:56 -08:00
Jade McGough
6451d7cca2
chore(platform): use a constant for label not found error ( #1782 )
2018-12-07 10:25:11 -08:00
Jade McGough
074ce584b5
fix(testing): use correct comparison options for label find ( #1704 )
2018-12-04 14:29:11 -08:00
Jade McGough
c6955634fd
fix(testing): sort label names to prevent random test failure ( #1699 )
...
* fix(testing): sort label names to prevent random test failure
* actually use the correct comparison function :(
2018-12-04 13:22:11 -08:00
Jade McGough
8c961e12bb
Labels ( #1668 )
...
* feat(platform): add label struct
* feat(platform): add label service interface
* WIP label service
* chore(http): simplify URMapping validation
* WIP label service skeleton
* add new GET labels handler
* feat(http): add POST handler for label service
* feat(http): add label delete handler
* fix json tag
* add happy path testing
* feat(http): add label endpoints to dashboard service
* make fmt
* add label delete handler
* make fmt again :(
* feat(bolt): add label implementation
* wire boltdb implementation of labels
* feat(mock): add mock for label service
* fix tests, add delete test
* add remaining tests, flesh out GET params
* unused code
* remove comments
* add labels endpoints
* clean up labels after deleting a dashboard
* fix issues from code review
* WIP remove type from labels
* feat(http): add label cli functions
* fixes
* make fmt
* feat(http): add labels to tasks and buckets
* feat(bolt): remove labels if their resources are deleted
* remove bolt cleanup for now
* make fmt
* type conversion magic
* feat(inmem): implement label service
* prevent race conditions
* remove labels from inmem if their resources are deleted
* fix race condition
* fix formatting
2018-12-03 08:07:08 -08:00
Jade McGough
873aae3fad
Revert "feat(http): add label service" ( #1667 )
...
This reverts commit 70a430c599
.
2018-12-03 04:27:27 -08:00
Jade McGough
70a430c599
feat(http): add label service ( #1346 )
2018-11-30 21:08:35 -08:00