-
Notifications
You must be signed in to change notification settings - Fork 33
Conversation
I will bump the component's version once the PR gets approved. |
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 would rather not do this change. This code is proven by time and removal might have some unexpected consequences.
I found the root cause and posted a comment on JIRA, let's solve based on that. @odra wdyt?
@@ -102,6 +102,8 @@ function loadConfig(cb) { | |||
// read our config file | |||
var configFile = process.env.conf_file || args._[0]; | |||
|
|||
console.log(fhconfig); |
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.
Should it be merged?
@@ -102,6 +102,8 @@ function loadConfig(cb) { | |||
// read our config file | |||
var configFile = process.env.conf_file || args._[0]; | |||
|
|||
console.log(fhconfig); | |||
|
|||
fhconfig.init(configFile, requiredvalidation, function(err) { |
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.
Shows that @matskiv has reason the name of the function reload was changed in the 2.0.0 of the dep fh-config. Also, shows that for we move forward with it instead of you use the init here we could use the reloadRawConfig.
Hi @odra
|
Jira link(s)
https://issues.jboss.org/browse/RHMAP-21672
What
fh-mbaas is failing to retrieve the cloud app's connection string.
Why
Issue is caused by incorrect usage of fh-config api.
How
It doesn't make much sense to use the reload method: https://github.com/feedhenry/fh-config/blob/master/lib/fhconfig.js#L108 when retrieving the connection string since we were using an empty array as its function argument.
Verification Steps
Checklist: