zhulongcheng
309883a272
add mock implementation of operation log services
2019-01-02 15:16:27 +08:00
zhulongcheng
cf1baf5242
add mock implementation of proxy query service
2019-01-02 11:30:46 +08:00
zhulongcheng
49106f37b4
add mock implementation of onboarding service
2019-01-02 11:15:08 +08:00
zhulongcheng
cc1cf89a53
add mock implementation of source service
2019-01-02 10:37:33 +08:00
Jeff Wendling
9da6fb3410
fix(write): fix close logic to avoid race from read error
...
In the case that there is a read error, we would close the lines
channel before sending the error into the read error channel. closing
lines then allows the write goroutine to possibly send in a nil error
before read is able to, causing the main function driving both to
return a nil error. Additionally, it is possible for both reads and
writes to race sending errors into their channels, and the main
goroutine will only read from one, causing the other goroutine to leak.
To fix this, we close lines only after we have sent an error into
the channel, we ensure we read from both errors to make sure that
both have exited, and we unify the channels and add a buffer of size
two to the channel. It is possible for write to exit leaving read blocked
forever, but write only exits with a nil error when read has exited, so
this only happens during an actual write error, just like before.
Channels are hard.
2018-12-29 15:30:38 -07:00
zhulongcheng
83529543ac
initialize session handler by SessionBackend
2018-12-29 11:41:06 +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
Michael Desa
ea2564ced3
Merge pull request #2158 from influxdata/fix/issue#2149
...
Document/Use secret service in API
2018-12-28 11:23:03 -05:00
Michael Desa
4c60eacb58
chore(platform): cleanup, document, and use secret service
...
fix(http): add members/secrets/labels links on org response
fix(http:cmd/influxd): use secret service in api backend
fix(bolt): return empty list if there are no secrets for an org
chore(vault): add description of vault usage
2018-12-28 11:11:21 -05:00
Delmer
efdb373868
Feat/manage labels ( #2082 )
...
feat(ui): add labels to org page
2018-12-27 13:19:07 -05:00
Mark Rushakoff
7c9cdd0248
chore: remove .eslintrc
...
Fixes #2143 .
2018-12-27 13:00:00 -05:00
Chris Goller
a2ed0bae74
Merge pull request #2147 from influxdata/fix/rename-paging-test
...
fix(http): rename piging_test to paging_test
2018-12-27 09:59:48 -06:00
Chris Goller
96fb4a6072
fix(http): rename piging_test to paging_test
2018-12-27 09:48:20 -06:00
Chris Goller
7618286cdd
Merge pull request #2144 from influxdata/fix/inmem-user-filtering
...
fix(inmem): user service now filters by id
2018-12-27 08:58:37 -06:00
Michael Desa
f5b0bdeb12
Merge pull request #2114 from zhulongcheng/rename-msg
...
rename msg to message for platform.Error json
2018-12-27 00:29:14 -05:00
Chris Goller
c4f6f729fd
fix(inmem): user service now filters by id
...
Related: #2072
2018-12-26 21:38:18 -06:00
zhulongcheng
f3bf670706
rename msg to message for platform.Error json
2018-12-27 10:34:00 +08:00
kelwang
364b56f4fa
Merge pull request #2130 from influxdata/convert_write_errors
...
fix(http): convert write endpoint error
2018-12-26 16:43:01 -05:00
Chris Goller
eb48eb6317
Merge pull request #2142 from zhulongcheng/custom-404
...
fix(http): replace default-404 handler with custom-404 handler
2018-12-26 15:17:55 -06:00
Chris Goller
ecaadf7a8f
Merge pull request #2127 from influxdata/fix/github-pr-template
...
fix(.github): cleanup the pull request template
2018-12-26 15:15:28 -06:00
Chris Goller
d5cf4fdccb
Merge pull request #2138 from influxdata/feat/accept-headers
...
feat(http): add accept parsing for telegraf
2018-12-26 12:53:05 -06:00
Chris Goller
4f38c8cad9
feat(http): add accept parsing for telegraf
2018-12-26 12:23:59 -06:00
Jade McGough
d00dd1b2da
Merge pull request #2139 from zhulongcheng/405-handler
...
feat(http): add MethodNotAllowed handler
2018-12-25 12:53:01 -08:00
zhulongcheng
7ce8237d29
replace default-404 handler with custom-404 handler
2018-12-25 10:35:36 +08:00
zhulongcheng
e73d4fc637
add MethodNotAllowed handler
2018-12-23 15:55:45 +08:00
Kelvin Wang
ddaa602014
fix(http): convert write endpoint error
2018-12-21 20:19:30 -05:00
kelwang
94b7c3cea0
Merge pull request #2128 from influxdata/move_time_telegraf_service
...
fix(platform): remove creator and time
2018-12-21 20:13:35 -05:00
ABond
0a473d0316
Merge pull request #2136 from influxdata/chore/update-nightly-schedule
...
chore(ci): Update schedule back to single nightly build
2018-12-21 17:17:04 -05:00
AJ Bond
e699a209e6
chore(ci): Update schedule back to single nightly build
2018-12-21 17:01:09 -05:00
ABond
dcbc4b3ee3
Merge pull request #2135 from influxdata/chore/update-nightly-schedule
...
chore(ci): Update trigger schedule
2018-12-21 16:59:24 -05:00
AJ Bond
89b5ad0c86
chore(ci): Update trigger schedule
2018-12-21 16:55:37 -05:00
ABond
d9e91b2602
Merge pull request #2134 from influxdata/fix/issue-2050
...
fix(http): Fix developer mode default
2018-12-21 16:42:33 -05:00
AJ Bond
941e7526c0
fix(http): Fix developer mode default
...
Developer mode is now passed to assets
closes #2050
2018-12-21 16:33:04 -05:00
Mark Rushakoff
0e41f240f2
feat(task): support forcing a run with arbitrary timestamp
...
Also rename RetryAlreadyQueuedError by running:
gorename -from '"github.com/influxdata/platform/task/backend".RetryAlreadyQueuedError' -to RequestStillQueuedError
and some further manual cleanup for comments.
2018-12-21 14:37:53 -05:00
Michael Desa
85e8f486d3
fix(.github): cleanup the pull request template
2018-12-21 13:37:05 -05:00
Leonardo Di Donato
e2169abb1f
feat(http): swagger update for authorizations post method
...
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2018-12-21 19:23:12 +01:00
Leonardo Di Donato
09dca2ff29
fix(http): check for user before creating authorization
2018-12-21 19:23:12 +01:00
Leonardo Di Donato
b8153e83d1
feat(http): test an authorization for non-existing user cannot be created
2018-12-21 19:23:12 +01:00
Adam
6777b9676c
refactor(query/functions/outputs): refactor to.go to use arrow data … ( #2131 )
...
* refactor(query/functions/outputs): refactor to.go to use arrow data structures
* update flux to latest master
2018-12-21 11:39:53 -05:00
Kelvin Wang
003561148d
fix(platform): remove creator and time
2018-12-21 11:05:55 -05:00
Chris Goller
d4467949aa
Merge pull request #2109 from influxdata/feat/si-time-units
...
feat(models): only use common SI time units for timestamp precision
2018-12-21 09:22:14 -06:00
Chris Goller
38a3e94bed
Merge pull request #2108 from influxdata/feat/flux-http-query-parameters
...
fix(http): change /query to use org/orgID
2018-12-21 09:20:42 -06:00
Chris Goller
c0c8a90451
Merge pull request #2126 from influxdata/fix/http-tasks-param-id
...
fix(http): update task test to use :id
2018-12-21 09:17:16 -06:00
Chris Goller
edfb323472
fix(http): update task test to use :id
...
Fixes merge issue from #1562
2018-12-21 09:11:57 -06:00
Chris Goller
a33f3ff672
fix(http): update test to use platform.Error
2018-12-21 08:58:16 -06:00
Chris Goller
31518b7022
Merge pull request #1562 from bednar/task_service
...
Fixed the task id path, Added RunController instance to pAdapter
2018-12-21 08:48:01 -06:00
Chris Goller
9c01be5377
Merge pull request #2110 from zhulongcheng/panic-handler
...
feat(http): add panic handler
2018-12-21 08:43:20 -06:00
Chris Goller
5297d1fee9
fix(http): remove typo in test name
2018-12-21 08:40:37 -06:00
Chris Goller
088cf6e98e
Merge pull request #2111 from zhulongcheng/fix-json-decode-500
...
fix(http): return http 400 if request data is invalid
2018-12-21 08:38:58 -06:00
Michael Desa
158be4b599
Merge pull request #1993 from zhulongcheng/fix-user-service
...
fix(http): pass user service to handler New function
2018-12-21 09:37:42 -05:00