-
Notifications
You must be signed in to change notification settings - Fork 88
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
[core-service] Rename enable_http to allow_http_base_urls #1061
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.
Thank you @brandoncorrea for your contribution.
In case the old flag is provided, core-service will fail with an unrecognized flag error.
Since this flag should only be used for development purpose, I think it should be ok as-is. However, the flag is used in the context of the monitoring repository tests and we will need to coordinate this change.
Therefore, we will need to wait a bit before merging this PR. An option to not wait would be to keep backward compatibility and keep -enable_http possible with a deprecation warning, migrate the monitoring repository and clean it up after.
I think keeping backward compatibility would be great if you have time for that.
I'm in favor of supporting backwards compatibility. I'll update the PR accordingly. |
@barroco Both |
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.
Thank you very much for the change! This is looking great. A last detail would be to print a warning if the old flag is used as well as update the description of the usage description of the old flag indicating it is deprecated in favour of the new one.
… warn if the old flag is set
A warning has been added when the old flag is set, preferring the new flag if both are set. Looking further into how flags work, I realized my first backwards-compatibility code wasn't technically correct because flags aren't initialized at the head of the file (everything is default). I moved this to |
Thanks @brandoncorrea for your efforts. Last thing, could you please update the PR description to reflect the latest changes ? |
@barroco description has been updated! |
EnableHTTP
toAllowHTTPBaseUrls
allow_http_base_urls
enable_http
, in favor ofallow_http_base_urls
Clients of
core-service
will need to update the command-line parameter,enable_http
toallow_http_base_urls
, namely Monitoring – core_service.sh L21/33.Created for Issue #788