-
Notifications
You must be signed in to change notification settings - Fork 607
v10.0.0 - Remove newrelic deployments and Capistrano support
#3299
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
v10.0.0 - Remove newrelic deployments and Capistrano support
#3299
Conversation
newrelic deployments and Capistrano support
| end | ||
|
|
||
| def self.api_host | ||
| # only used for deployment task |
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'm unsure on this. We use api_host in tests and in the ServerMethods module. Instead of removing this method, its been refactored to not use api_key
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 wonder what this looked like before we made the changes for API key? Do we still need the 'api' condition for the ServerModule?
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.
This is the change when we added api key https://github.com/newrelic/newrelic-ruby-agent/pull/1461/files#diff-d116d3c8c7bebe204a18ee3983ac59c5d15bd70da7123f2a2c4a12f144bca181
B
Also, i think we can remove it from server module, because that is only used by the api_server method which is just used by the deployments. I think we can just remove this method entirely and anything that's using it tbh. I think the only api we have ever used it for is deployments.
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.
Nice! I've removed this method and it's references.
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.
@hannahramadan - I found a few more references to api_host in the newrelic.yml files in multiverse suites and in the instrumentation generator template. Could you take a look and remove those too? Also understand if it's easier to take care of that cleanup in a separate PR.
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 @kaylareopelle! cleaned those guys up
newrelic deployments and Capistrano supportnewrelic deployments and Capistrano support
kaylareopelle
left a comment
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 taking care of this, @hannahramadan!
There's a few other spots in the repo with references to deployments I found that you may want to take a look at:
- rubocop_todos.yml
- lib/new_relic/cli/command.rb: I don't think that file needs to be removed, but there's some mention of deployments.
- lib/new_relic/control/server_methods.rb: The ServerMethods class also has a comment about deployments that might be good to clean up to avoid confusion and replace with whatever that method is used for today (if it's still used)
| end | ||
|
|
||
| def self.api_host | ||
| # only used for deployment task |
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 wonder what this looked like before we made the changes for API key? Do we still need the 'api' condition for the ServerModule?
SimpleCov Report
|
kaylareopelle
left a comment
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.
🦖
Remove support for
newrelic deploymentsand Capistrano