- Issue created by @chandansha
- ๐ฎ๐ณIndia chandansha
i solve all issue. But still there are some issues left.
Please have a look.FILE: /home/chandansha/docker/testd10/web/modules/contrib/search_tracking/src/Controller/SearchTrackingController.php --------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES --------------------------------------------------------------------------------------------------------------------- 20 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 24 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 25 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 37 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 40 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead --------------------------------------------------------------------------------------------------------------------- Time: 91ms; Memory: 10MB
Thanks.
- ๐ฎ๐ณIndia amanbtr72
amanmansuri72 โ made their first commit to this issueโs fork.
- Status changed to Needs review
9 months ago 11:47am 27 March 2024 - Status changed to RTBC
9 months ago 12:26pm 27 March 2024 - ๐ฎ๐ณIndia apatel0325
I have tested and cannot find any phpcs issue so I move forward to RTBC.
- Status changed to Needs work
8 months ago 10:40pm 23 April 2024 - ๐ฆ๐บAustralia sime Melbourne
Hi apatel0325, please review your testing processes, which MR are you testing?
When i go to the merge request it shows that I'm adding new code the main branch. Probably the merge request is for the wrong branch.
- ๐ฆ๐บAustralia sime Melbourne
When I click on that MR you linked to, and look at the Changes tab, there is no meaningful diff. It's adding every file as a new file. How is this fixing the problem described in this issue?
- ๐ฎ๐ณIndia apatel0325
Hi @sime,
As per my research, I can see the branch is going to merge with the main branch and the main branch is empty, so it shows all files added. 5 commits are going to merge with the main branch not only the last commit.
- ๐ฆ๐บAustralia sime Melbourne
If the main branch is empty, then this project doesn't use the main branch.
- ๐ฎ๐ณIndia apatel0325
Hi @amanmansuri72,
Can you please change the merge request?
You have requested to merge in the main branch but must do in the 1.0.x branch.Thanks
- Status changed to Needs review
6 months ago 6:54am 9 July 2024 - ๐ฎ๐ณIndia amanbtr72
@apatel0325 I have changed the targeted branch to 1.0x kindly review.
Thanks
- Status changed to Needs work
6 months ago 11:48am 9 July 2024 - ๐ต๐ญPhilippines cleavinjosh
Hi @amanmansuri72,
I applied MR!2 and it was applied smoothly. However, I still encountered some issues after I ran
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml
.โ search_tracking git:(main) โ curl https://git.drupalcode.org/project/search_tracking/-/merge_requests/2.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 24648 0 24648 0 0 6895 0 --:--:-- 0:00:03 --:--:-- 6896 patching file README.md patching file js/formData.js patching file search_tracking.install patching file search_tracking.module patching file search_tracking.routing.yml patching file search_tracking.views.inc patching file src/Controller/searchTrackingController.php patching file src/Form/SearchTrackingConfig.php โ search_tracking git:(main) โ .. โ contrib git:(main) โ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml search_tracking FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/search_tracking/search_tracking.info.yml ------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------- 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-org-issues/web/modules/contrib/search_tracking/src/Controller/searchTrackingController.php -------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------------------------------------------------------- 14 | ERROR | Class name doesn't match filename; expected "class searchTrackingController" -------------------------------------------------------------------------------------------------------------------------------- Time: 209ms; Memory: 10MB โ contrib git:(main) โ
Please check and advise.
Thank you. - Status changed to Needs review
6 months ago 12:23pm 9 July 2024 - ๐ฎ๐ณIndia amanbtr72
Kindly recheck the MR 2 I have rechecked and pushed the changes.
Thanks
- Status changed to Needs work
6 months ago 12:29pm 9 July 2024 - ๐ต๐ญPhilippines cleavinjosh
Hi @amanmansuri72,
I applied MR!2 and it was applied smoothly. However, I am still encountering the same issues after I ran
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml
.
โ search_tracking git:(main) โ curl https://git.drupalcode.org/project/search_tracking/-/merge_requests/2.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 25293 0 25293 0 0 5725 0 --:--:-- 0:00:04 --:--:-- 5156 patching file README.md patching file js/formData.js patching file search_tracking.install patching file search_tracking.module patching file search_tracking.routing.yml patching file search_tracking.views.inc patching file src/Controller/searchTrackingController.php patching file src/Form/SearchTrackingConfig.php patching file templates/page--admin--config--search--search-tracking.html.twig โ search_tracking git:(main) โ .. โ contrib git:(main) โ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml search_tracking FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/search_tracking/search_tracking.info.yml ------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------- 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-org-issues/web/modules/contrib/search_tracking/src/Controller/searchTrackingController.php -------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------------------------------------------------------- 14 | ERROR | Class name doesn't match filename; expected "class searchTrackingController" -------------------------------------------------------------------------------------------------------------------------------- Time: 246ms; Memory: 10MB โ contrib git:(main) โ
Please check and advise.
Thank you. - Status changed to Needs review
6 months ago 6:00am 10 July 2024 - ๐ฎ๐ณIndia chandansha
i have fixed file name issue.Please review again,
thanks!! - Status changed to RTBC
6 months ago 7:39am 10 July 2024 - ๐ต๐ญPhilippines cleavinjosh
Hi @Chandansha,
I applied MR!2 and it fixed the issue regarding the filename.
โ search_tracking git:(main) โ curl https://git.drupalcode.org/project/search_tracking/-/merge_requests/2.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 26215 0 26215 0 0 57437 0 --:--:-- --:--:-- --:--:-- 57489 patching file README.md patching file js/formData.js patching file search_tracking.install patching file search_tracking.module patching file search_tracking.routing.yml patching file search_tracking.views.inc The next patch would create the file src/Controller/SearchTrackingController.php, which already exists! Assume -R? [n] n Apply anyway? [n] n Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file src/Controller/SearchTrackingController.php.rej patching file src/Controller/searchTrackingController.php patching file src/Form/SearchTrackingConfig.php patching file templates/page--admin--config--search--search-tracking.html.twig โ search_tracking git:(main) โ .. โ contrib git:(main) โ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml search_tracking FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/search_tracking/search_tracking.info.yml ------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------- 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: 129ms; Memory: 10MB โ contrib git:(main) โ
I will now move the status to Reviewed & tested by the community since the warnings can be ignored because I installed the module via composer.
Thank you.