Twitter Search Block is a module that displays twitter embedded timeline in a block.The module provides:
- Easy Twitter OAuth Configuration with simple form
- General Block that displays embedded timeline for given search query
- Twitter Search Query as a Field Type that can be attached to content/node
- Content specific Twitter Block to which twitter search query field is applied
Requirements
The module is dependent on two Drupal core modules:
- Block
- Field
OAuth Configuration
Twitter uses OAuth to provide authorized access to its API.
To get Twitter Access keys, you need to create Twitter Application which is mandatory to access Twitter.
- Go to https://dev.twitter.com/apps/new and log in, if necessary
- Enter your Application Name, Description and your website address. You can leave the callback URL empty.
- Submit the form by clicking the Create your Twitter Application
- Copy the consumer key (API key) and consumer secret from the screen into your application.Read More
Project link
https://drupal.org/sandbox/jyoti.singh/2742925
Git instructions
git clone --branch 8.x-1.x https://git.drupalcode.org/sandbox/jyoti.singh-2742925.git twitter_search_block
Comment | File | Size | Author |
---|---|---|---|
#55 | twitter_search_block_short_array_syntax.patch | 10.96 KB | jayesh_makwana |
Comments
Comment #2
PA robot CreditAttribution: PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpsgitdrupalorgsandboxjyotisingh2742925git
Fixed the git clone URL in the issue summary for non-maintainer users.
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #3
jyoti.singh CreditAttribution: jyoti.singh commentedI have fixed all the issues reported on http://pareview.sh/pareview/httpsgitdrupalorgsandboxjyotisingh2742925git
Comment #4
jyoti.singh CreditAttribution: jyoti.singh commentedComment #5
jyoti.singh CreditAttribution: jyoti.singh commentedComment #6
jyoti.singh CreditAttribution: jyoti.singh commentedComment #7
RavindraSingh CreditAttribution: RavindraSingh as a volunteer and at Srijan | A Material+ Company commentedUse variable and make API url configurable
$url = 'https://api.twitter.com/1.1/search/tweets.json';
And Improve this in below mentioned way
API URL - https://api.twitter.com/
version - list (Supportive 1.1)
can be used for all the hardcoded API URLs
Comments can be improved in across the module.
Variable naming convention are not good. Try to make more meaningful variables
e.g $twitter1 to $twitter_output or $twitter_object
Move library in libraries directory. And then add a documentation and URLs to download the libraries in the realm file.
Comment #8
gisleSetting priority bak to "Normal".
Please read this to learn about how to use the priority field: https://www.drupal.org/node/539608
Comment #9
amankanoria CreditAttribution: amankanoria commented@JyotiS- Agree with @ravindrasingh. There are lots of commenting stuff that could be improved. Especially, after running a DrupalCoding standard check. Please find the reply below-
FILE: /twitter_search_block/src/Plugin/Block/TwitterAPIExchange.php
----------------------------------------------------------------------
FOUND 45 ERRORS AND 2 WARNINGS AFFECTING 45 LINES
Comment #10
jyoti.singh CreditAttribution: jyoti.singh commentedI have removed all errors from code.Please review code : http://pareview.sh/pareview/httpsgitdrupalorgsandboxjyotisingh2742925git
Comment #11
zeeshan_khan CreditAttribution: zeeshan_khan as a volunteer commentedHi @jyoti.singh,
I still see many warnings in the automated test result please fix those first, then I'll be happy to do manual review of your project.
Please also review couple of project in the issue queue to get Review Bonus, That will help in boosting your project review process :-)
Thanks
Automated Review
pareview.sh. https://git.drupal.org/sandbox/jyoti.singh/2742925.git
Review of the 8.x-1.x branch (commit 89ce6ef):
DrupalPractice has found some issues with your code, but could be false positives.
FILE: .../drupal-7-pareview/pareview_temp/src/Form/TwitterHashBlockConfig.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 12 WARNINGS AFFECTING 12 LINES
--------------------------------------------------------------------------
26 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
29 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
32 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
36 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
39 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
45 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
46 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
47 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
49 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
51 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
55 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
72 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
--------------------------------------------------------------------------
FILE: ...var/www/drupal-7-pareview/pareview_temp/src/Form/TwitterAuthForm.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 14 WARNINGS AFFECTING 14 LINES
--------------------------------------------------------------------------
26 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
29 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
32 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
36 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
39 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
43 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
46 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
50 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
53 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
57 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
59 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
61 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
65 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
82 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
--------------------------------------------------------------------------
FILE: .../www/drupal-7-pareview/pareview_temp/src/Plugin/Block/TweetBlock.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------
26 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
29 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
30 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
--------------------------------------------------------------------------
FILE: ...pal-7-pareview/pareview_temp/src/Plugin/Block/TwitterAPIExchange.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
122 | WARNING | Unused variable $key.
--------------------------------------------------------------------------
FILE: ...al-7-pareview/pareview_temp/src/Plugin/Block/TwitterBlockGeneral.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
26 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
--------------------------------------------------------------------------
Comment #12
jyoti.singh CreditAttribution: jyoti.singh commentedHi @zeeshan_khan,
"FormBase" class already uses "StringTranslationTrait" class for dependency injection.PHPCS does not throw any warning on my local setup.There is some issue with pareview.sh.Can you please check this at your end.
Comment #13
abhishek-anand CreditAttribution: abhishek-anand at Acquia commentedLooks like this is a problem with preview.sh. Any form that extends FormBase need not inject StringTranslationInterface as its already available.
Comment #14
jyoti.singh CreditAttribution: jyoti.singh commentedComment #15
abhishek-anand CreditAttribution: abhishek-anand at Acquia commentedIn modules/2742925/src/Form/TwitterHashBlockConfig.php
This is a configuration form, so it should extend ConfigFormBase not FormBase.
Use $this->t()
Use $this->config not \Drupal::service('config.factory')
Comment #16
jyoti.singh CreditAttribution: jyoti.singh commentedResolved all the above issue :
Comment #17
jyoti.singh CreditAttribution: jyoti.singh commentedComment #18
zeeshan_khan CreditAttribution: zeeshan_khan as a volunteer commentedHi @jyoti.singh,
Please check and fix all the warnings came across from Drupal best practices. http://pareview.sh/pareview/httpsgitdrupalorgsandboxjyotisingh2742925git
Manual Review:
In modules/2742925/src/Form/TwitterHashBlockConfig.php line:84
Please remove commented code.
In modules/2742925/src/Form/TwitterHashBlockConfig.php line:91
This function is blank please remove if it has no use.
In modules/2742925/src/Form/TwitterAuthForm.php line:27
You are not using $form['descriptions'] any where. Please remove.
In modules/2742925/src/Form/TwitterAuthForm.php line:74
This function is blank please remove if it has no use.
In modules/2742925/src/Form/TwitterAuthForm.php line:83
Use $this->config instead \Drupal::service('config.factory').
Best,
Zeeshan
Comment #19
jyoti.singh CreditAttribution: jyoti.singh commented@zeeshan_khan : Removed dependency injection warning from the module : http://pareview.sh/pareview/httpsgitdrupalorgsandboxjyotisingh2742925git.
It gives one warning for node load.Is the usage correct : \Drupal::request()->attributes->get('node');
Comment #20
jyoti.singh CreditAttribution: jyoti.singh commentedComment #21
ARUN AK CreditAttribution: ARUN AK commentedHi jyoti.singh,
Please see my comments below:
twitter_search_block.info.yml
.(*) After install and assign Twitter Block:General sidebar region, getting error "The website encountered an unexpected error. Please try again later.".
In watchdog it showing
Thanks,
ARUN AK
Comment #22
jyoti.singh CreditAttribution: jyoti.singh commentedComment #23
jyoti.singh CreditAttribution: jyoti.singh commentedThank you Arun AK.
Corrected the name and package for the Module.
Usually this error is one that's caused by a firewall on your server.The curl is used by Twitter Library itself.Can you please check once disabling the firewall.
Thank you.
Comment #24
amankanoria CreditAttribution: amankanoria as a volunteer and commentedHi @jyoti.singh,
Could you check the Node block if it is working properly? The field does get called in the managed field but it displays the data as plain text. Apart from it, If I modify the values of the field after adding contents it is allowing me to make changes to field settings page which should not be the case as well. The General Block is working fine for me. I could not replicate @Arun AK issue. Please ignore my comments if the node functionality is still in progress. If yes, I would suggest to remove it for the time being and get it incurred after an initial release. I second with Arun AK for removing the Curl request instead use -httpClient(Guzzle) as recommended.
Thanks
Aman K
Comment #25
RavindraSingh CreditAttribution: RavindraSingh as a volunteer and at Srijan | A Material+ Company commentedFollowing areas still needs to be improved -
1. Not in use "use Drupal\Core\Config\ConfigFactory;" from TweetBlock.php under Plugin/Block.
2. Why the "article" is hardcoded in $bundle_fields = $this->entityManager->getFieldDefinitions('node', 'article');
3. if ($bundle_fields[$field_name]->getType() == 'twitter_search_fieldtype') {
$field_data[] = $field_name;
}
4. Can't we use break if the the $field_name]->getType() == 'twitter_search_fieldtype' is going to attach once only.?
5. $url = 'https://api.twitter.com/1.1/search/tweets.json';
URL and API version can be configurable.
6. &hide_media=true&maxwidth=260&hide_thread=true';
All these parameter should be configurable and default set with mentioned one.
7. For replacing Guzzle please refer the link - http://docs.guzzlephp.org/en/latest/
Comment #26
PA robot CreditAttribution: PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #27
jyoti.singh CreditAttribution: jyoti.singh commented@Ravindra : For Comment #25
1. Not in use "use Drupal\Core\Config\ConfigFactory;" from TweetBlock.php under Plugin/Block. - Fixed
2. Why the "article" is hardcoded in $bundle_fields = $this->entityManager->getFieldDefinitions('node', 'article'); -Fixed
3. if ($bundle_fields[$field_name]->getType() == 'twitter_search_fieldtype') {
$field_data[] = $field_name;
} -Fixed
4. Can't we use break if the the $field_name]->getType() == 'twitter_search_fieldtype' is going to attach once only.?-Fixed
5. $url = 'https://api.twitter.com/1.1/search/tweets.json';
URL and API version can be configurable. - Fixed
6. &hide_media=true&maxwidth=260&hide_thread=true';
All these parameter should be configurable and default set with mentioned one.
7. For replacing Guzzle please refer the link - http://docs.guzzlephp.org/en/latest/
For point 6 and 7 since we are using the extrenal library for Twitter I am keeping it intact as the library may upgrade with time so we may need to replace the library with the latest one.
Comment #28
jyoti.singh CreditAttribution: jyoti.singh commentedComment #29
zeeshan_khan CreditAttribution: zeeshan_khan as a volunteer commentedHi @jyoti.singh,
I steel see some code standard issues with your project in automated review. Please use coder and code sniffer to fix them up
Review of the 8.x-1.x branch (commit f85eaf8):
Coder Sniffer has found some issues with your code (please check the Drupal coding standards). See attachment.
DrupalPractice has found some issues with your code, but could be false positives.
FILE: /root/repos/pareviewsh/pareview_temp/src/Plugin/Block/TweetBlock.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
89 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
--------------------------------------------------------------------------
FILE: /root/repos/pareviewsh/pareview_temp/src/Form/TwitterAuthForm.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
103 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
--------------------------------------------------------------------------
Time: 54ms; Memory: 6Mb
No automated test cases were found, did you consider writing Simpletests or PHPUnit tests? This is not a requirement but encouraged for professional software development.
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
FILE: ...pos/pareviewsh/pareview_temp/src/Plugin/Block/TwitterAPIExchange.php
--------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank
| | line
2 | ERROR | [x] There must be one blank line after the namespace
| | declaration
273 | ERROR | [ ] Type hint "array" missing for $curlOptions
329 | ERROR | [ ] Type hint "array" missing for $params
386 | ERROR | [ ] Type hint "array" missing for $curlOptions
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: .../repos/pareviewsh/pareview_temp/src/Plugin/Block/TwitterAPIClass.php
--------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------
3 | ERROR | [x] There must be one blank line after the namespace
| | declaration
22 | ERROR | [ ] Type hint "array" missing for $settings
32 | ERROR | [x] Object operator not indented correctly; expected 6
| | spaces but found 12
43 | ERROR | [x] Object operator not indented correctly; expected 8
| | spaces but found 16
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: /root/repos/pareviewsh/pareview_temp/src/Form/TwitterAuthForm.php
--------------------------------------------------------------------------
FOUND 7 ERRORS AND 1 WARNING AFFECTING 7 LINES
--------------------------------------------------------------------------
83 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 5
84 | ERROR | [x] Array indentation error, expected 7 spaces but found
| | 5
85 | ERROR | [x] Array indentation error, expected 7 spaces but found
| | 5
86 | ERROR | [x] Array indentation error, expected 7 spaces but found
| | 5
87 | ERROR | [x] Array indentation error, expected 7 spaces but found
| | 5
88 | ERROR | [x] Array indentation error, expected 7 spaces but found
| | 5
89 | ERROR | [x] Array indentation error, expected 7 spaces but found
| | 5
89 | WARNING | [ ] Translatable strings must not begin or end with white
| | spaces, use placeholders with t() for variables
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: /root/repos/pareviewsh/pareview_temp/twitter_search_block.info.yml
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
1 | WARNING | Remove "version" from the info file, it will be added by
| | drupal.org packaging automatically
--------------------------------------------------------------------------
Time: 193ms; Memory: 8Mb
Comment #30
PA robot CreditAttribution: PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #31
jyoti.singh CreditAttribution: jyoti.singh commentedAll the above errors and warning from pareview fixed , except :
FILE: /root/repos/pareviewsh/pareview_temp/src/Plugin/Block/TweetBlock.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
89 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
----------------------------------
The error is due to using node load statement : $node = \Drupal::request()->attributes->get('node'); how can we load node with dependency injection.
Comment #32
jyoti.singh CreditAttribution: jyoti.singh as a volunteer commentedAll the Pareview warning are cleared for the module : https://pareview.sh/node/276
Comment #33
Shamsher_Alam CreditAttribution: Shamsher_Alam commentedHi Jyoti,
I have tested and reviewed your module. Every thing is going very smooth and code is also as per Drupal coding standard. Good work and thanks for contributions.
Please @all i think now nothing is pending in this and we should proceed it to for publishing state.
Comment #34
amankanoria CreditAttribution: amankanoria as a volunteer and commented@Jyoti.singh The module is working fine and code is following coding standards as well. Great Stuff!
Comment #35
visabhishek CreditAttribution: visabhishek as a volunteer and at Azri Solutions commented1: Please implement proper permission for access admin configuration pages. Here any register user with "access content" can access admin configuration page.
2: All user facing text must run through t() for translation
Comment #36
jyoti.singh CreditAttribution: jyoti.singh as a volunteer commentedIssue #35 : @visabhishek : The Listed Issue has been fixed now.Thank you.
Comment #37
jyoti.singh CreditAttribution: jyoti.singh as a volunteer commentedComment #38
RavindraSingh CreditAttribution: RavindraSingh as a volunteer and at Srijan | A Material+ Company commentedFew more things still needs improvement -
1- Version of twitter API is hardcoded $url = 'https://api.twitter.com/1.1/statuses/oembed.json';?
2- Can we use http_query_builder for making query string so incase websever encoding gets changed from UTF to ISO something vice-versa so it won't be a problem.
$getfield = '?id=' . $tweet_id . '&hide_media=true&maxwidth=260&hide_thread=true';
3- Can we check if API is successfully connected else it will always go in the loop even status code was not succeed.
$response = json_decode($api_response);
Thanks,
Ravindra
Comment #39
navneet0693 CreditAttribution: navneet0693 as a volunteer and at QED42 commentedJust gave a quick look to code and I have a few suggestions:
File: TwitterAPIExchange.php
It should be
return TwitterAPIExchange
\ refers to Global classes, if I am not wrong.Just few alignment corrections needed.
File: twitter_search_block.info.yml
It should be:
Dependencies should be namespaced in the format: {project}:{module}, and in case of core modules {project} is drupal.
File: TwitterAuthForm.php
You can use
$values = $form_state->getValues();
and then use $values as array for setting values which will help in reducing calls to getValue().Comment #40
jyoti.singh CreditAttribution: jyoti.singh as a volunteer commented@RavindraSingh : Fixed the listed issued of #38:
Comment #41
jyoti.singh CreditAttribution: jyoti.singh as a volunteer commented@navneet0693 : Solution for listed issue #39 :
Comment #42
jyoti.singh CreditAttribution: jyoti.singh as a volunteer commentedComment #43
jyoti.singh CreditAttribution: jyoti.singh as a volunteer commentedComment #44
matthieuscarset CreditAttribution: matthieuscarset as a volunteer and commentedHi @jyoti.singh
I've just tried your module and I haven't been able to show tweets on my site.
I've added a "Twitter Search Query" field to a node. I then created a node and enter a value in this field but nothing special shows up on front end. I just have my field displayed as a regular field (label + value).
I suppose that it is not the desired behavior, is it?
I've also added a Twitter Block:General and I've configured the Twitter Block configuration.
However on front-end, my block is empty.
This is the warning I see in my logs:
Warning: Invalid argument supplied for foreach() in Drupal\twitter_search_block\Plugin\Block\TwitterAPIClass::twitterApi() (line 51 of ...\drupal8\modules\custom\twitter_search_block\src\Plugin\Block\TwitterAPIClass.php) #0
On another hand, I would also suggest to add links to relevant Twitter doc pages in order for your users to easily find the correct API urls that this module is requesting (in admin/config/services/configuration):
Finally, I found that there are still some small code format issues (detected by pareview.sh):
https://pareview.sh/node/276
Comment #45
klausi@matthieuscarset: Looks like you forgot to change the status. Is this now RTBC after your review or are there application blockers left and this should be "needs work"?
Comment #46
matthieuscarset CreditAttribution: matthieuscarset as a volunteer and commentedHi @klausi, thank you for your comment.
I've tried to use this module again, without success.
So I would say this module needs work.
Comment #47
shaktikReview of the 8.x-1.x branch (commit 26e155e):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
Comment #48
jyoti.singh CreditAttribution: jyoti.singh as a volunteer commented@matthieuscarset - The correct API url for twitter are :
- Twitter API url : https://api.twitter.com/1.1/search/tweets.json
- Twitter Oembed url : https://api.twitter.com/1.1/statuses/oembed.json
I have added these url in the default value for the url configuration.The API used were incorrect thats why the module was not functional.
@shaktik - Cleared all the Pareview error : https://pareview.sh/node/276
Comment #49
jyoti.singh CreditAttribution: jyoti.singh as a volunteer commentedComment #50
jyoti.singh CreditAttribution: jyoti.singh as a volunteer commentedComment #51
jyoti.singh CreditAttribution: jyoti.singh as a volunteer commentedComment #52
visabhishek CreditAttribution: visabhishek as a volunteer and at Azri Solutions commented1: Please don't remove the security tag, we keep that for statistics and to show examples.
2: Please do not assign ticket yourself. See the workflow https://www.drupal.org/node/532400
Comment #53
visabhishek CreditAttribution: visabhishek as a volunteer and at Azri Solutions commentedComment #54
teeyo CreditAttribution: teeyo as a volunteer commentedHello Jyoti,
I did a quick automatic review and there's still some coding standard issues :
Keep up the good work, good luck.
Comment #55
jayesh_makwana CreditAttribution: jayesh_makwana at cmsMinds commentedSolution of short array syntax errors. We uploaded patch. Please check and apply it.
Comment #56
naveenvalechaInclude twitter-api-php(https://github.com/J7mbo/twitter-api-php) library as the dependency of the module instead of including it in the code directly.
Why not contribute this feature as a submodule for the twitter_block module? If you will collaborate, you could also get the git vetted access.
/me maintainer of the twitter_block and code review administrator.
//Naveen
Comment #57
jyoti.singh CreditAttribution: jyoti.singh as a volunteer commentedComment #58
apadernoComment #59
sleitner CreditAttribution: sleitner commentedAutomated Review
Review of the 8.x-1.x branch (commit a95e9a2):
This automated report was generated with PAReview.sh, your friendly project application review script.
Manual Review
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #60
apadernoIf you are still working on this application, you should fix all known problems and set the status to Needs review. (See also the project application workflow.)
Please don't change status of this application if you aren't sure you have time to dedicate to this application, or it will be closed again as won't fix.
I am closing this application due to lack of activity.
Comment #61
jyoti.singh CreditAttribution: jyoti.singh as a volunteer commentedComment #62
jyoti.singh CreditAttribution: jyoti.singh as a volunteer commentedThank you for the review @sleitner
Comment #63
jyoti.singh CreditAttribution: jyoti.singh as a volunteer commentedComment #64
naveenvalecha@jyoti.singh,
I would like to hear thoughts on #56
How this module is different from https://www.drupal.org/project/twitter_block
Comment #65
jyoti.singh CreditAttribution: jyoti.singh as a volunteer commented@naveenvalecha : The module https://www.drupal.org/project/twitter_block provides block for the tweets.In Twitter Search Block there is an additional functionality for a field in nodes of drupal where user can enter the tweet he wants to dispaly in each node.This means each node/content type/single nodes can have different tweets coming in the blocks of each page.
Comment #66
klausiComment #67
klausiThanks for your contribution!
Review:
* Config schema is missing, see https://www.drupal.org/docs/8/api/configuration-api/configuration-schema...
* TwitterAPIClass should probably be a service and get the config injected?
* Do not use cURL, use Drupal's built in HTTP client. See https://api.drupal.org/api/drupal/core%21lib%21Drupal.php/function/Drupa...
I don't see any security issues, looks good to me!
Comment #68
apadernoThank 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 #69
jyoti.singh CreditAttribution: jyoti.singh as a volunteer commentedThank you to all the reviewers and @klausi and @kiamlaluno for providing the approval.Thank you all
Comment #71
apaderno