add configuration possibilities in dashboards#147
add configuration possibilities in dashboards#147emoods wants to merge 20 commits intolooker:masterfrom
Conversation
format tables as images
implement simple method to store custom configuration for each dashboard
wilg
left a comment
There was a problem hiding this comment.
This is an interesting solution to adding metadata for individual commands. I'm into it! I have a couple suggestions, and it looks like there are some TypeScript warnings and linter failures that need to be resolved.
I'd run yarn lint-fix to clean up anything that can be autofixed, and then work through the other issues by running yarn test.
| @@ -1,4 +1,4 @@ | |||
| FROM node:6.10.3-alpine | |||
| FROM node:8.11.4-alpine | |||
There was a problem hiding this comment.
Is the node version change necessary? It doesn't seem like it. I would avoid changing this otherwise.
There was a problem hiding this comment.
currently checking why I changed that.
| command.config = JSON.parse(dashboard.description); | ||
| command.description = command.config.description | ||
| }catch(e) { | ||
| console.warn("dashboard description is not valid json or starts with {") |
There was a problem hiding this comment.
I don't think anybody will see these console warnings. Perhaps this should be surfaced in the help command instead.
|
|
||
| newConfig.headers = _.extend(newConfig.headers, requestConfig.headers || {}) | ||
|
|
||
| console.log(newConfig); |
| @@ -46,59 +46,93 @@ | |||
| string-format-obj "^1.0.0" | |||
| through2 "^2.0.0" | |||
There was a problem hiding this comment.
Since you did not change any dependencies, there should not be any changes to the yarn.lock file. Perhaps you inadvertently ran yarn update or something? We'll need to revert this before merging.
also switch code blocks to nicen up help message - remove console.log
…n the old version I think)
- test the old node version again (had problems with showing tables i…
|
thanks for the review 👍 |
|
will fix the tests. |
the basic format options offered by stack are limiting the table visualization.
Using images is a easy workarround.