- Issue created by @arunkumark
- @arunkumark opened merge request.
- Status changed to Needs review
over 1 year ago 7:19am 20 March 2023 - Status changed to Needs work
over 1 year ago 6:17pm 20 March 2023 - 🇮🇳India Akram Khan Cuttack, Odisha
checked MR still there are one issue
FILE: ...ktop/Contribution/drupal9.5.x/drupal/modules/contrib/token_views_filter/src/TokensFilterTrait.php
-------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------
139 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------- - Status changed to Needs review
over 1 year ago 6:19pm 20 March 2023 - 🇮🇳India Akram Khan Cuttack, Odisha
added updated patch and Fixed remaining issue
- Assigned to akshaydalvi212
- Issue was unassigned.
- 🇮🇳India akshaydalvi212
Hello Team,
Patch #5 gets applied and fixes all the issues reported by PHPCS.
so #5 is ready to move to RTBC. i.e. RTBC +1. - Status changed to Needs work
over 1 year ago 8:53am 21 March 2023 - 🇮🇹Italy apaderno Brescia, 🇮🇹
- // Value can be optional, For example for 'empty' and 'not empty' filters. + // Value can be optional, For example 'empty' and 'not empty' filters.
After a comma, for is not spelled in capital case.
+/** + * @file + * Contains the Hook implementations. + */
Hook does not need to be in capital case, since it is not at the beginning of a sentence.
That comment is usually Hook implementations for [module name].
- Assigned to akshaydalvi212
- 🇮🇳India akshaydalvi212
Hello @apaderno
Will work on the #5 patch and make changes as per your suggection and provide the new patch.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 11:43am 21 March 2023 - 🇮🇳India akshaydalvi212
Fixed remaining issues reported with PHPCS.
Kindly review. - Status changed to Needs work
over 1 year ago 11:55am 21 March 2023 - 🇮🇹Italy apaderno Brescia, 🇮🇹
-views.filter.string: +views . filter . string:
That line is correct as it is.
- * In case of grouped filters we have to override the parent FilterPluginBase + * In case of grouped filters we have to override the parent FilterPluginBase * method so that we can tokenize the individual group_item's value.
It is not necessary to say which is the parent class; parent method is sufficient.
+ * @file + * Contains the hook implementation for token view filter test.
The usual comment is Hook implementations for [module name].
- * Primarily Drupal hooks to manipulate Token Views Filter. + * Primarily Drupal hooks to manipulate token views filter.
Primarily is an adverb; it cannot be used to alter a noun phrase (Drupal hooks).
Drupal does not make any distinction between primary and secondary hooks. The usual comment is another one. - First commit to issue fork.
- @kkalashnikov opened merge request.
- First commit to issue fork.
- @shivam_tiwari opened merge request.
- Status changed to Needs review
over 1 year ago 10:54am 23 March 2023 - Status changed to Needs work
over 1 year ago 12:14pm 23 March 2023 - 🇮🇹Italy apaderno Brescia, 🇮🇹
-views.filter.string: +views . filter . string:
It has been already pointed out that change is wrong.
- // Value can be optional, For example for 'empty' and 'not empty' filters. + // Value can be optional, For example 'empty' and 'not empty' filters.
A word after a comma does not need to be written in capital case, except in the case that word is always written in capital case.
+/** + * @file + * Hook implementations for [module name]. + */ +
This module name is not [module name]. Clearly, in my previous comment, I used a placeholder since, speaking for every module, I cannot list the names of every module.
- Status changed to Needs review
over 1 year ago 2:00pm 23 March 2023 - Status changed to Needs work
over 1 year ago 2:17pm 23 March 2023 - 🇮🇹Italy apaderno Brescia, 🇮🇹
+/** + * @file + * Hook implementations for tokens in views filter criteria. + */
The module name should also respect uppercase letters.
/** * @file - * Primarily Drupal hooks to manipulate Token Views Filter. + * Primarily Drupal hooks to manipulate token views filter. */
That comment is not correct for the reasons I have already reported. It does not describe the purpose of the functions contained in the token_views_filter.views.inc file, then.
- Status changed to Needs review
over 1 year ago 4:26pm 23 March 2023 - Status changed to Needs work
over 1 year ago 8:41am 24 March 2023 - 🇮🇹Italy apaderno Brescia, 🇮🇹
/** * @file - * Primarily Drupal hooks to manipulate Token Views Filter. + * Hooks to modify views filter handler plugin. */
A .views.inc file contains hook implementations used by the Views module. The correct description is Hook implementations used by the Views module. or Hook implementations used by Views. invoked is a fine replacement for used.
- 🇮🇳India arunkumark Coimbatore
As per comment #22, I updated the Description of the hook implementation.
- Status changed to Needs review
over 1 year ago 5:28am 27 March 2023 - 🇮🇳India shivam_tiwari
Updated all the code as per the comments. Please check.
- Status changed to Needs work
over 1 year ago 12:43pm 27 March 2023 - 🇮🇹Italy apaderno Brescia, 🇮🇹
To use token views filter you should redefine original views filter schema -in your module in file `config/schema/{module_name}.schema.yml` +in your module in file `config / schema / {module_name} . schema . yml`
Spaces in file paths are not used. It is already correct as it is.
- Status changed to Needs review
over 1 year ago 12:51pm 28 March 2023 - Status changed to Fixed
over 1 year ago 6:08am 21 June 2023 - 🇷🇺Russia validoll Ekaterinburg
Thanks for all!!!!
Changes has been merged to dev branch. Automatically closed - issue fixed for 2 weeks with no activity.