Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InfluxDB 2.0: The view provided in the request is not used [area/api] #13086

Closed
bednar opened this issue Apr 2, 2019 · 1 comment · Fixed by #13448
Closed

InfluxDB 2.0: The view provided in the request is not used [area/api] #13086

bednar opened this issue Apr 2, 2019 · 1 comment · Fixed by #13448
Assignees
Labels

Comments

@bednar
Copy link
Contributor

bednar commented Apr 2, 2019

If I creating Cell with viewID then the provided view is not used:

-> POST 
-> http://127.0.0.1:9999/api/v2/dashboards/03a3869422dd6000/cells
-> {"name":"my-cell-2","x":20,"y":25,"w":15,"h":10,"viewID":"03a3869456dd6000"}

<- 201 
<- Created
<- {
	"id": "03a38694a21d6000",
	"x": 20,
	"y": 25,
	"w": 15,
	"h": 10,
	"links": {
		"self": "/api/v2/dashboards/03a3869422dd6000/cells/03a38694a21d6000",
		"view": "/api/v2/dashboards/03a3869422dd6000/cells/03a38694a21d6000/view"
	}
}

-> GET
-> http://127.0.0.1:9999/api/v2/dashboards/03a3869422dd6000/cells/03a38694a21d6000/view

<- 200
<- OK
<- {
	"id": "03a38694a21d6000",
	"name": "",
	"links": {
		"self": "/api/v2/dashboards/03a3869422dd6000/cells/03a38694a21d6000"
	},
	"properties": {
		"shape": "empty"
	}
}

The view is also not provided when I use the parameter usingView:

-> POST 
-> http://127.0.0.1:9999/api/v2/dashboards/03a38b012cdd6000/cells
-> {"name":"my-cell-2","x":20,"y":25,"w":15,"h":10,"usingView":"03a38b01341d6000"}

<- 201 
<- Created
<- {
	"id": "03a38b01445d6000",
	"x": 20,
	"y": 25,
	"w": 15,
	"h": 10,
	"links": {
		"self": "/api/v2/dashboards/03a38b012cdd6000/cells/03a38b01445d6000",
		"view": "/api/v2/dashboards/03a38b012cdd6000/cells/03a38b01445d6000/view"
	}
}

-> GET
-> http://127.0.0.1:9999/api/v2/dashboards/03a38b012cdd6000/cells/03a38b01445d6000/view

<- 200
<- OK
<- {
	"id": "03a38b01445d6000",
	"name": "",
	"links": {
		"self": "/api/v2/dashboards/03a38b012cdd6000/cells/03a38b01445d6000"
	},
	"properties": {
		"shape": "empty"
	}
}
@ebb-tide
Copy link
Contributor

ebb-tide commented Apr 15, 2019

On first point: POST to '/dashboards/{dashboardID}/cells' accepts type CreateCell and should ignore viewID parameter so API is behaving correctly
On second: should create new view that replicates the view at usingView.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants