- Issue created by @ighosh
- Merge request !4Issue #3418246 - instagram_feed_by_username-3418246. ā (Open) created by Unnamed author
- Status changed to Needs review
11 months ago 6:43am 31 January 2024 - š®š³India ighosh
Made changes. Please review and let me know in case of any concerns. https://git.drupalcode.org/project/instagram_feed_by_username/-/merge_re...
- First commit to issue fork.
- Status changed to Needs work
11 months ago 8:35am 7 February 2024 - šµšPhilippines clarkssquared
Hi
I applied MR !4 and I noticed that there is 1 file that the patch didn't apply properly,
This is the PHPCS results from my terminal
ā instagram_feed_by_username git:(master) ā curl https://git.drupalcode.org/project/instagram_feed_by_username/-/merge_requests/4.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3390 0 3390 0 0 5595 0 --:--:-- --:--:-- --:--:-- 5707 patching file instagram_feed_by_username.module No such line 39 in input file, ignoring 1 out of 1 hunks failed--saving rejects to instagram_feed_by_username.module.rej patching file 'src/InstagramFeedByUsernameService.php' patching file 'src/Plugin/Field/FieldFormatter/InstagramFeedByUsernameFieldFormatter.php' patching file 'src/Plugin/Field/FieldType/InstagramFeedByUsernameField.php' ā instagram_feed_by_username git:(master) ā .. ā contrib git:(master) ā phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml instagram_feed_by_username FILE: /Users/clarksubing-subing/Projects/d9/d9-local/web/modules/contrib/instagram_feed_by_username/instagram_feed_by_username.info.yml --------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 1 LINE --------------------------------------------------------------------------------------------------------------------------------------- 1 | WARNING | File has mixed line endings; this may cause incorrect results 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically --------------------------------------------------------------------------------------------------------------------------------------- Time: 307ms; Memory: 10MB ā contrib git:(master) ā
- Issue was unassigned.
- Status changed to Needs review
10 months ago 11:33am 6 March 2024 - š®š³India zkhan.aamir
Hi,
MR #3 applied successfully.
Admin@DESKTOP-252TO6V MINGW64 ~/Desktop/projects/drupal/web/modules/instagram_feed_by_username (1.0.x) $ curl https://git.drupalcode.org/project/instagram_feed_by_username/-/merge_requests/4.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3390 0 3390 0 0 9310 0 --:--:-- --:--:-- --:--:-- 9338 patching file instagram_feed_by_username.module patching file src/InstagramFeedByUsernameService.php patching file src/Plugin/Field/FieldFormatter/InstagramFeedByUsernameFieldFormatter.php patching file src/Plugin/Field/FieldType/InstagramFeedByUsernameField.php
No issues remianing.
Admin@DESKTOP-252TO6V MINGW64 ~/Desktop/projects/drupal/web/modules $ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,css,js,yml instagram_feed_by_username/ Admin@DESKTOP-252TO6V MINGW64 ~/Desktop/projects/drupal/web/modules $
- Status changed to Needs work
7 months ago 5:29am 16 May 2024 - š®š³India dev16.addweb
I have checked and found some indentation issues remaining.
- Status changed to Needs review
7 months ago 5:36am 16 May 2024 - Status changed to Needs work
7 months ago 8:58am 24 May 2024 - šµšPhilippines cleavinjosh
Hi @silvi.addweb,
I applied MR!4 and it was applied smoothly.
However, when I still encountered some issues when I run
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml
.ā instagram_feed_by_username git:(main) ā curl https://git.drupalcode.org/project/instagram_feed_by_username/-/merge_requests/4.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4721 0 4721 0 0 8946 0 --:--:-- --:--:-- --:--:-- 8958 patching file instagram_feed_by_username.module Hunk #1 FAILED at 40. 1 out of 1 hunk FAILED -- saving rejects to file instagram_feed_by_username.module.rej patching file src/InstagramFeedByUsernameService.php patching file src/Plugin/Field/FieldFormatter/InstagramFeedByUsernameFieldFormatter.php patching file src/Plugin/Field/FieldType/InstagramFeedByUsernameField.php patching file src/Plugin/Field/FieldWidget/InstagramFeedByUsernameFieldWidget.php ā instagram_feed_by_username git:(main) ā .. ā contrib git:(main) ā phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml instagram_feed_by_username FILE: /Users/interns/Demo-site/drupal-orgissue/web/modules/contrib/instagram_feed_by_username/instagram_feed_by_username.info.yml --------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 1 LINE --------------------------------------------------------------------------------------------------------------------------------- 1 | WARNING | File has mixed line endings; this may cause incorrect results 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically --------------------------------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-orgissue/web/modules/contrib/instagram_feed_by_username/src/Plugin/Field/FieldWidget/InstagramFeedByUsernameFieldWidget.php ----------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------------------------------------------------------------- 35 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter ----------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-orgissue/web/modules/contrib/instagram_feed_by_username/src/Plugin/Field/FieldType/InstagramFeedByUsernameField.php --------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE --------------------------------------------------------------------------------------------------------------------------------------------------------- 33 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter --------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------------------------------------------------------------- Time: 164ms; Memory: 10MB ā contrib git:(main) ā
Thank you.
- š®š³India ighosh
Hi @cleavinjosh. MR Updated. Please check and let us know. Thanks!
- Status changed to Needs review
7 months ago 10:11am 27 May 2024 - Status changed to Needs work
7 months ago 1:14pm 29 May 2024 - šµšPhilippines cleavinjosh
Hi @IGhosh,
I applied MR!4 and I encountered a failure.
ā instagram_feed_by_username git:(main) ā curl https://git.drupalcode.org/project/instagram_feed_by_username/-/merge_requests/4.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4723 0 4723 0 0 9000 0 --:--:-- --:--:-- --:--:-- 9013 patching file instagram_feed_by_username.module Hunk #1 FAILED at 40. 1 out of 1 hunk FAILED -- saving rejects to file instagram_feed_by_username.module.rej patching file src/InstagramFeedByUsernameService.php patching file src/Plugin/Field/FieldFormatter/InstagramFeedByUsernameFieldFormatter.php patching file src/Plugin/Field/FieldType/InstagramFeedByUsernameField.php patching file src/Plugin/Field/FieldWidget/InstagramFeedByUsernameFieldWidget.php ā instagram_feed_by_username git:(main) ā
After I run
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml
, I encountered less issues compared my last test.ā instagram_feed_by_username git:(main) ā .. ā contrib git:(main) ā phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml instagram_feed_by_username FILE: /Users/interns/Demo-site/drupal-orgissue/web/modules/contrib/instagram_feed_by_username/instagram_feed_by_username.info.yml --------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 1 LINE --------------------------------------------------------------------------------------------------------------------------------- 1 | WARNING | File has mixed line endings; this may cause incorrect results 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically --------------------------------------------------------------------------------------------------------------------------------- Time: 242ms; Memory: 10MB ā contrib git:(main) ā
Thank you.
- š®š³India ighosh
Hi @cleavinjosh, I ran the same command and got no issues.
ghoshishan@ishan-notebook-pro /v/w/d/dummy> ./vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml web/*/custom/instagram_feed_by_username/ ghoshishan@ishan-notebook-pro /v/w/d/dummy>
Could this be because when I worked on this issue, I cloned the module onto the 'custom' folder and not the 'contrib' folder?
Here is a screenshot of the instagram_feed_by_username.info.yml file -
- Status changed to RTBC
7 months ago 9:39am 30 May 2024 - šµšPhilippines cleavinjosh
Hi @IGhosh,
You are correct. Indeed, the issue won't show when I cloned the module and not by using composer.
I applied MR!4, now, it was applied smoothly and there was no issues shown after I ran
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml
.ā instagram_feed_by_username git:(1.0.x) curl https://git.drupalcode.org/project/instagram_feed_by_username/-/merge_requests/4.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4723 0 4723 0 0 10215 0 --:--:-- --:--:-- --:--:-- 10222 patching file instagram_feed_by_username.module patching file src/InstagramFeedByUsernameService.php patching file src/Plugin/Field/FieldFormatter/InstagramFeedByUsernameFieldFormatter.php patching file src/Plugin/Field/FieldType/InstagramFeedByUsernameField.php patching file src/Plugin/Field/FieldWidget/InstagramFeedByUsernameFieldWidget.php ā instagram_feed_by_username git:(1.0.x) ā .. ā drupal-org-issues git:(main) ā phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml instagram_feed_by_username ā drupal-org-issues git:(main) ā
Thank you.
- š®š³India ighosh
Hi @cleavinjosh, thanks for the clarification. Cheers!