-
Notifications
You must be signed in to change notification settings - Fork 51
Add a bunch of new APIs #16
base: master
Are you sure you want to change the base?
Conversation
supercharlesliu
commented
Nov 27, 2018
- Add Team CRUD APIs & TeamMember APIs
- Add User API: Get & Update
- Add Datasource API: Datasources
- Add OrgPreferences API: Get & Update
- Add foler permission API: GET & Update
* Add DashboardsByFolder to search dashborads in a folder * Add DashboardByUid to support get dashboard by uid * Add GetDashboardIdByUid, GetDashboardUidById to support id <=> uid
Can you merge this request? |
Any update on when this will be merged? |
} | ||
|
||
func (c *Client) Team(id int64) (Team, error) { | ||
team := Team{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this not be?
func (c *Client) Team(id int64) (*Team, error) {
team := &Team{}
return team, err | ||
} | ||
|
||
func (c *Client) UpdateTeam(id string, name string) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id string
needs to be id int64
return err | ||
} | ||
|
||
func (c *Client) DeleteTeam(id string) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id string
needs to be id int64
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to have left this PR to rot for a while.
As you may understand, it is challenging to review a such a large changeset.
If you (or someone else) don't mind breaking this PR into individual API PRs, that would help accelerate our ability to review and accept the changes.
NOTE, there are already PRs for these APIs, so you can probably merge or omit breaking out the changes for them:
- Folder Permissions API Implementation of Folder Permissions API #36
- Team API Implementation of Team API #37