-
Notifications
You must be signed in to change notification settings - Fork 7
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
Refactor RuntimeConfig
#1173
Refactor RuntimeConfig
#1173
Conversation
# Conflicts: # gradle/scripts/documentation.gradle # src/main/scala/edu/ie3/simona/config/SimonaConfig.scala
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.
Please check out the SonarQube issues
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.
Please adapt parameter names in vn_simona.conf
as well.
Also, config-template.conf
is not required anymore. For me it'd be fine if you just deleted it in this PR, but separate PR is also fine.
@@ -225,8 +225,8 @@ object ArgsParser extends LazyLogging { | |||
ConfigFactory.parseString( | |||
s"""config = "${parsedArgs.configLocation.get.replace("\\", "\\\\")}" | |||
|simona.runtime_configuration { |
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.
Also this is supposed to be simona.runtime
?
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.
I don't know. I checked this part and it was simona.runtime_configuration
in the initial commit.
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.
Do you know, if we actually need this part? It is given to the ActorSystem
, but I don't see any place it is ever used.
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.
I think we can just throw out selectedSubgrids
and selectedVoltLvls
from ArgsParser
, now that I think about it. I think we never really used it, and if one wants to use it, it can still be configured through the conf file
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.
But then also, there's lots of stuff in ArgsParser that can be thrown out. So maybe we should create a separate issue for that.
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.
#1192 -> This PR can just stay as it is in that regard
I deleted it in this PR. |
# Conflicts: # src/main/resources/config/config-template.conf # src/main/scala/edu/ie3/simona/config/SimonaConfig.scala
# Conflicts: # CHANGELOG.md
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.
Thanks for the effort!
Resolves #1172