-
Notifications
You must be signed in to change notification settings - Fork 193
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
Add missing SetDashboardParams #117
base: master
Are you sure you want to change the base?
Conversation
1 similar comment
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.
Looks good but one suggestion. Sorry for the late response. I think we should help our users by using a more strict type. Let me know what do you think.
@@ -244,6 +248,8 @@ func (r *Client) SetDashboard(ctx context.Context, board Board, params SetDashbo | |||
newBoard.Dashboard = board | |||
newBoard.FolderID = params.FolderID | |||
newBoard.Overwrite = params.Overwrite | |||
newBoard.Message = params.Message | |||
newBoard.Refresh = params.Refresh |
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.
Then do:
newBoard.Refresh = params.Refresh | |
newBoard.Refresh = params.Refresh.Round(time.Second).String() |
@@ -215,6 +215,8 @@ func (r *Client) Search(ctx context.Context, params ...SearchParam) ([]FoundBoar | |||
type SetDashboardParams struct { | |||
FolderID int | |||
Overwrite bool | |||
Message string | |||
Refresh string |
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.
Let's do:
Refresh string | |
Refresh time.Duration |
Add missing fields
message
andrefresh
forPOST /api/dashboards/db
call.