We currently have a bit of a mess regarding class names of the Views plugins, mostly the filters: most of them start with SearchApiFilter
, but some only with SearchApi
, and while both has its downsides and both can be said to violate coding standards, we should at least be consistent. In most other cases, where we have more than one plugin of the type, we omit the "Filter" (or whatever) part, so I would do the same here.
I.e., just rename all classes that start with SearchApiFilter
and remove the Filter
from the name (not the trait, though!).
In the same spirit, SearchApiArgument
should probably be renamed to SearchApiStandard
or something like that. But do our arguments currently even work? Anyways, we can rename it in any case.
Comment | File | Size | Author |
---|---|---|---|
#8 | cleanup-class-names-2650124-8.patch | 10.28 KB | rashid_786 |
#4 | cleanup-class-names-2650124-4.patch | 12.55 KB | rashid_786 |
Comments
Comment #2
rashid_786 CreditAttribution: rashid_786 at SDG Corporation commentedChanges have been made in this patch as suggested, Kindly review and let me know if any changes required.
Comment #3
borisson_Can you recreate the patch with
git diff -M
? That makes reviewing a lot easier.I think the
@file
docblocks need to be updated as well.Comment #4
rashid_786 CreditAttribution: rashid_786 at SDG Corporation commentedUpdated patch with -M. I have updated @file block, Please let me know if something missing.
Comment #5
borisson_Awesome, the patch with -M makes it a lot easier to review. Thanks :-)
The IS states not to rename the Trait tho, so let's revert that. Otherwise this looks good.
Comment #6
rashid_786 CreditAttribution: rashid_786 at SDG Corporation commented"The IS states not to rename the Trait tho," You mean not to rename SearchApiFilterTrait.php right?
Comment #7
borisson_I think that's what @drunken monkey means, yeah.
Comment #8
rashid_786 CreditAttribution: rashid_786 at SDG Corporation commentedUpdated patch with required changes.
Comment #9
borisson_Looks great!
Comment #11
drunken monkeyI agree, looks good. Thanks!
Committed.
Comment #12
drunken monkey