-
Notifications
You must be signed in to change notification settings - Fork 302
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
Update ModuleCustomTrait.php #3661
base: main
Are you sure you want to change the base?
Conversation
Do you got some time to look at this? |
I don't think this is necessary - why don't you just adjust |
Because of duplicate code. You should avoid it where ever it is possible. As "customModuleLatestVersion" is a method from the core there is always a possibility of change. Maybe it contains a bug, so it would require me to fix this in my module too but my module shouldn't know about the core. So intercepting the core code using a callback or hook would be the better solution instead of duplicating it. Currently the method only accepts a single solution of querying module information without greatly modifying it. |
Seems: will not be implemented->close |
Adding an additional method call to allow the processing of the response from the get latest version request. With this it would be possible for me to query the version information directly from githubs release json without the need for an exta latest-release.txt file. Using the method I could easily parse the JSON response and extract the version information.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3661 +/- ##
============================================
- Coverage 35.31% 35.31% -0.01%
- Complexity 11406 11407 +1
============================================
Files 1179 1179
Lines 47865 47867 +2
============================================
Hits 16905 16905
- Misses 30960 30962 +2 ☔ View full report in Codecov by Sentry. |
Adding this would be great. |
Adding an additional method call to allow the processing of the response from the get latest version request. With this it would be possible for me to query the version information directly from githubs release json without the need for an exta latest-release.txt file. Using the method I could easily parse the JSON response and extract the version information.