Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This module is simply about exposing available updates in a consumable format by other clients (JSON).
The result of this module can be explored for a display in a fontend that exposes for example a dashborad displaying a set of Drupal projects.
Project link
https://www.drupal.org/project/available_updates
Git instructions
git clone --branch 8.x-1.x https://git.drupalcode.org/project/available_updates.git
PAReview checklist
https://pareview.sh/pareview/https-git.drupal.org-project-available_upda...
Comments
Comment #2
nassazComment #3
apadernoThank you for applying! I added the Git instructions for non-maintainer users. Users will review the project and report what needs to be changed.
8.x-1.x-dev is a wrong branch name, which needs to be deleted and replaced by 8.x-1.x.
Comment #4
nassazComment #5
nassazBranch deleted. Thank you.
Comment #6
Rahulmon JohnsonThank you for the contribution.
Please look into the following errors too.
Comment #7
nassazThank you @Rahulmon Johnson for your review, i don't understand the first error because the function exists in the dependency core module (update), the second error has been corrected, i use getAccountName instead.
I don't understand why drupal-check give this result !!
I opened an issue : https://github.com/mglaman/drupal-check/issues/101
Update Manager is a dependency of my module.
Comment #8
apadernoupdate_calculate_project_data()
is defined in core/modules/update/update.compare.inc. Having the module as dependecy doesn't mean that file is automatically loaded. You need to load it with$this->moduleHandler->loadInclude('update', 'inc', 'update.manager')
, when using DI, or\Drupal::moduleHandler()->loadInclude('update', 'inc', 'update.manager')
.Comment #9
nassazThank you @kiamlaluno, code has been updated.
Comment #10
KuldeepM CreditAttribution: KuldeepM commentedThank you for the contribution!
Please look into the following message(issue).
{"message":"The used authentication method is not allowed on this route."}
Comment #11
nassazI have a dependency module : - drupal:basic_auth, which is used to ensure this method. Please use 8.x-1.x branch.
Comment #12
VernitWhile reviewing the module and found Readme file is missing.
According to Drupal standards, modules should include a useful README.file.
https://www.drupal.org/docs/develop/documenting-your-project/module-docu...
Comment #13
VernitComment #14
nassazThank you @Vernit for your review, please use dev branch don't use release branch.
composer require 'drupal/available_updates:1.x-dev'
8.x-1.1 version is not up to date.
Comment #15
KuldeepM CreditAttribution: KuldeepM commentedhook_help() is missing.
Comment #16
nassazThank @KuldeepM for your review, personally i don't like procedural code, it's important in your view hook_help() ?
Comment #17
apadernoComment #18
phthlaap CreditAttribution: phthlaap as a volunteer and commentedThis issue still happen. Can anyone suggest a solution to fix it or we can by pass?
Comment #19
nassazThank you @phthlaap, i have the same error in drupal module core "Update"
Comment #20
vuilThank you for the contribution!
I have not found any security related issue into the code. Clever implementation!
Comment #21
nassazThank you @ilchovuchkov for your review.
Comment #22
apadernoThank you for your contribution! I am going to update the project.
These are some recommended readings to help with excellent maintainership:
You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
I thank all the dedicated reviewers as well.
Comment #24
vuil