-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Implement Logging for Bundler v1 Deprecation Errors and Warnings #10333
Conversation
supported_versions: T::Array[String] | ||
).void | ||
end | ||
def record_deprecation_warning_for_eco_system( |
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.
wondering if we could pass the mode as an enum? E.g. as WARN
or ERROR
; that way we can reuse the same function.
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 will check that and I think it is possible and depends to how it is used it may be better solution.
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.
The code is moved #10466
"Supported versions are: #{supported_versions.join(', ')}. Future updates are not guaranteed." | ||
) | ||
|
||
service.record_update_job_error( |
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.
Wondering if we should refactor this by renaming the function to more accurately capture its intent? This can be a follow up PR though.
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 mean changing the service one or here. Actually in service we have this method which is sending the given params to API UI.
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.
The code is moved #10466
44fa7e2
to
7cb269f
Compare
2043b35
to
2c28cb7
Compare
d73843f
to
d606d17
Compare
d606d17
to
dac2832
Compare
The branch name is changed for implementing only deprecation warnings for bundler v1. |
Title: Implement Logging for Bundler v1 Deprecation Errors and Warnings
What are you trying to accomplish?
This PR introduces logging for deprecation warnings and errors specifically for Bundler v1. To achieve this, a generic framework is created in the
UpdateHelpers
module that can be extended for other ecosystems in the future.Why:
This change ensures users are informed when using deprecated versions of Bundler and provides a structured approach for handling similar deprecations in other ecosystems.
Anything you want to highlight for special attention from reviewers?
The implementation includes:
UpdateHelpers
module to log warnings and errors for deprecated versions.This approach allows for easy extension to other package managers in the future, ensuring consistency and maintainability.
How will you know you've accomplished your goal?
Checklist