Ap Newsroom module provide developer service to easily integrate Ap newsroom APIs. This module also provide dashboard to search, filter and clone AP content.
Project link
https://www.drupal.org/project/ap_newsroom
Git instructions
git clone --branch 1.x https://git.drupalcode.org/project/ap_newsroom.git
PAReview checklist
https://pareview.sh/pareview/https-git.drupal.org-project-ap_newsroom.git
Comments
Comment #2
avpadernoComment #3
bunty badgujar commented@kiamlaluno, Should, I have to apply again after 10 days?
Comment #4
avpaderno@Bunty No, you should not. That is just a reminder that the project cannot opt into security coverage for the next 10 days; the review goes on as usual.
Comment #5
avpadernoAs side note, please check the email Git is using, as it's not using the email set in https://www.drupal.org/user/3438175/edit for your account. Since the emails are different, drupal.org isn't able to associate your commits with your account.
Comment #6
bunty badgujar commentedThanks @Kiamlaluno for pointing this out. Now same email set for git and profile.
Comment #7
ankush_03Hi Bunty Badgujar,
Please look into below issue :
------ -------------------------------------------------------------------------------------------------------------------------------------------------------------
Line modules/ap_newsroom_clone/src/ApDashboardService.php
------ -------------------------------------------------------------------------------------------------------------------------------------------------------------
60 Property Drupal\ap_newsroom_clone\ApDashboardService::$config has unknown class Drupal\ap_newsroom_clone\ap_newsroombase_configobject as its type.
184 Method Drupal\ap_newsroom_clone\ApDashboardService::prepareNodeForClone() should return Drupal\Core\Entity\EntityInterface but return statement is missing.
199 Instantiated class http\Exception\InvalidArgumentException not found.
199 Throwing object of an unknown class http\Exception\InvalidArgumentException.
234 Variable $node might not be defined.
------ -------------------------------------------------------------------------------------------------------------------------------------------------------------
------ ------------------------------------------------------------------------------------------------
Line modules/ap_newsroom_clone/src/Controller/ApDashboardController.php
------ ------------------------------------------------------------------------------------------------
92 Method Drupal\Core\Form\FormBuilderInterface::getForm() invoked with 2 parameters, 1 required.
------ ------------------------------------------------------------------------------------------------
------ ----------------------------------------------------------
Line modules/ap_newsroom_clone/src/Form/ApFeedsSearchForm.php
------ ----------------------------------------------------------
146 Offset 'data' does not exist on bool|string.
------ ----------------------------------------------------------
Line src/ApNewsroomContent.php
------ --------------------------------------------------------------------------------------------------------------------
124 Return typehint of method Drupal\ap_newsroom\ApNewsroomContent::getContent() has invalid type Drupal\ap_newsroom\stringgetFeedOnDemand.
271 Offset 'data' does not exist on bool|string.
------ -----------------------------------------------------------------------------------------------------------------------------------------
Comment #8
bunty badgujar commentedThanks Ankush Gautam,
All issues mentioned by you has been fixed in latest commit. Except the following one :-
------ ------------------------------------------------------------------------------------------------
Line modules/ap_newsroom_clone/src/Controller/ApDashboardController.php
------ ------------------------------------------------------------------------------------------------
92 Method Drupal\Core\Form\FormBuilderInterface::getForm() invoked with 2 parameters, 1 required.
------ ------------------------------------------------------------------------------------------------
I need one variable to process and show in form by controller. That's why i passed optional argument to overriding function.
As this argument is optional so it will not create any issue in core calls.
Comment #9
avpadernoAs the documentation says,
FormBuilderInterface::getForm()uses more than an argument; the method definition shows a single parameter, but any additional arguments are passed on to the functions called by\Drupal::formBuilder()->getForm(), including the unique form constructor function.The code used by the module is correct.
Comment #10
bunty badgujar commentedThanks @kiamlaluno, for linking correct documentation.
Comment #11
avpadernoThere isn't much that can be translated in
"@error"since placeholders cannot be translated. Instead of passing a string containing only a placeholder, you can avoid using$this->t()or expand the string to containing more than the placeholder, such as in the following code.Otherwise, a string like
"@error"will be"@error"in any language.The permission is not defined from the modules, nor is it a Drupal core permission.
To be translatable, the string should use a placeholder.
Comment #12
avpadernoThank you for your contribution! I am going to update your account.
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 #13
bunty badgujar commentedThanks @kiamlaluno for the review.