-
Notifications
You must be signed in to change notification settings - Fork 69
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
feat(notifier,api): add plot configuration #1058
Conversation
cmd/api/config_test.go
Outdated
@@ -30,6 +31,13 @@ func Test_apiConfig_getSettings(t *testing.T) { | |||
apiConf := apiConfig{ | |||
Listen: "0000", | |||
EnableCORS: true, | |||
PlotCfg: cmd.PlotConfig{ |
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.
Давай функцию замутим для создания PlotConfig
в тестах?
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.
Сделал дефолтную переменную для тестов, чтобы переиспользовать
notifier/plotting_test.go
Outdated
plotCfg := plotting.PlotConfig{ | ||
Width: 800, | ||
Height: 400, | ||
} |
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.
А здесь не должна быть ещё инициализация YAxisSecondaryCfg
?
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.
Вообще заполнится по умолчанию, то есть с EnablePrettyTicks=false
, то добавил явную инициализацию и вынес в дефолтную переменную
/build |
Build and push Docker images with tag: feat-plot-configuration.2024-07-19.46592c6 |
1 similar comment
Build and push Docker images with tag: feat-plot-configuration.2024-07-19.46592c6 |
Add plot configuration
Added graph customization for api and notifier to resize the graph without hardcoding and
EnablePrettyTicks
setting