-
-
Notifications
You must be signed in to change notification settings - Fork 4
Add dashboard create command #50
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
Conversation
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.
LGTM
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.
We should move internal/template/mocks/Client.go
to internal/iot/mocks/Client.go
since its a mock for the interface defined in internal/iot/client.go
. In this way we can reuse it in other tests if needed, and easily find the implementation by reading the mock and viceversa.
d007bdd
to
8ae3914
Compare
This command allows users to create new dashboards starting from templates. Changes: - Dashboard create command has been implemented, it takes a template and a map indicating thing_id to be overridden. - A function to convert the template file into a proper dashboard structure has been implemented. Here, the ids of the variables described in the template are fetched; the widget options are filtered; a uuid is assigned to each widget.
This command allows users to create new dashboards starting from templates. Changes: - Dashboard create command has been implemented, it takes a template and a map indicating thing_id to be overridden. - A function to convert the template file into a proper dashboard structure has been implemented. Here, the ids of the variables described in the template are fetched; the widget options are filtered; a uuid is assigned to each widget.
Motivation
arduino-cloud-cli should allow users to create new dashboards starting from templates.
Change description
thing_id
to be overridden.Additional Notes
information about this command (from the readme):
override
flag can be used to override the templatething_id
placeholder with the actual ID of the thing to be used.Reviewer checklist
main
.CONTRIBUTING.md
) and are well formatted.