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 Cell doesn't contains the "viewId" [area/api] #13080

Closed
bednar opened this issue Apr 2, 2019 · 3 comments · Fixed by #13390
Closed

InfluxDB 2.0: The Cell doesn't contains the "viewId" [area/api] #13080

bednar opened this issue Apr 2, 2019 · 3 comments · Fixed by #13390

Comments

@bednar
Copy link
Contributor

bednar commented Apr 2, 2019

The Cell schema is defined as:

Cell:
      type: object
      properties:
        id:
          type: string
        links:
          type: object
          properties:
            self:
              type: string
            view:
              type: string
        x:
          type: integer
          format: int32
        "y": # Quoted to prevent YAML parser from interpreting y as shorthand for true.
          type: integer
          format: int32
        w:
          type: integer
          format: int32
        h:
          type: integer
          format: int32
        viewID:
          type: string
          description: The reference to a view from the views API

but the http response to GET /dashboards/{dashboardID} doesn't contains the viewId:

# Create Dashboard
-> POST 
-> http://127.0.0.1:9999/api/v2/dashboards
-> {"orgID":"039fb4c339500000","name":"dashboard1554200899766-IT","description":"coolest dashboard"}

# Create Cell
-> POST
-> http://127.0.0.1:9999/api/v2/dashboards/03a36545488ec000/cells
-> {"name":"my-cell","x":20,"y":25,"w":15,"h":10}

# Add the view to a cell.
-> PATCH
-> http://127.0.0.1:9999/api/v2/dashboards/03a36545488ec000/cells/03a365455bcec000/view
-> {"name":"view-name","properties":{"type":"markdown","shape":"chronograf-v2","note":"my-note"}}

-> GET
-> http://127.0.0.1:9999/api/v2/dashboards/03a36545488ec000

<- 200 
<- OK
<- {
	"id": "03a36545488ec000",
	"orgID": "039fb4c339500000",
	"name": "dashboard1554200899766-IT",
	"description": "coolest dashboard",
	"meta": {
		"createdAt": "2019-04-02T12:28:19.874461+02:00",
		"updatedAt": "2019-04-02T12:28:19.951822+02:00"
	},
	"cells": [{
		"id": "03a365455bcec000",
		"x": 20,
		"y": 25,
		"w": 15,
		"h": 10,
		"links": {
			"self": "/api/v2/dashboards/03a36545488ec000/cells/03a365455bcec000",
			"view": "/api/v2/dashboards/03a36545488ec000/cells/03a365455bcec000/view"
		}
	}],
	"labels": [],
	"links": {
		"self": "/api/v2/dashboards/03a36545488ec000",
		"members": "/api/v2/dashboards/03a36545488ec000/members",
		"owners": "/api/v2/dashboards/03a36545488ec000/owners",
		"cells": "/api/v2/dashboards/03a36545488ec000/cells",
		"logs": "/api/v2/dashboards/03a36545488ec000/logs",
		"labels": "/api/v2/dashboards/03a36545488ec000/labels",
		"org": "/api/v2/orgs/039fb4c339500000"
	}
}
@imogenkinsman
Copy link
Contributor

Reopening this after #13390 caused a regression (see #13417).

@stale
Copy link

stale bot commented Jul 23, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 23, 2019
@stale
Copy link

stale bot commented Jul 30, 2019

This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions.

@stale stale bot closed this as completed Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants