- Assigned to Akshat26
- Issue was unassigned.
- Status changed to Needs review
about 1 year ago 6:24am 3 October 2023 - last update
about 1 year ago 9,628 pass - ๐ฎ๐ณIndia Akshat26 Bhopal
All the mentioned phpcs issues have been fixed. Please review the patch #3390016-5
- Status changed to Needs work
about 1 year ago 9:56am 3 October 2023 - ๐ฎ๐ณIndia aayushDrupal
Hi Akshat26,
Patch #5 has been successfully applied, but there are still remaining errors. Please check the attached screenshot.Thanks.
- Status changed to Needs review
about 1 year ago 3:53am 4 October 2023 - last update
about 1 year ago PHPLint Failed - ๐ฎ๐ณIndia Akshat26 Bhopal
All the mentioned phpcs issues and some extra issue (which are not mentioned) have been fixed. Please review the patch #3390016-7
- last update
about 1 year ago 29 pass, 108 fail The last submitted patch, 3390016-8.patch, failed testing. View results โ
- Assigned to mohd sahzad
- Status changed to Needs work
about 1 year ago 4:24am 4 October 2023 - Issue was unassigned.
- ๐ฎ๐ณIndia mohd sahzad
I have updated this issue: Fix the issues reported by phpcs
- last update
about 1 year ago PHPLint Failed - Status changed to Needs review
about 1 year ago 6:35am 11 October 2023 - Status changed to Needs work
10 months ago 7:09am 29 January 2024 - ๐ฎ๐ณIndia pray_12
Hi,
Applied the patch #12. This patch is throwing the error.Checking patch src/Plugin/Group/Relation/GroupRelationType.php... error: while searching for: protected $description; /** * (optional) The label for the entity reference field. * * @var \Drupal\Core\Annotation\Translation */ protected $reference_label; /** * (optional) The description for the entity reference field. * * @var \Drupal\Core\Annotation\Translation */ protected $reference_description; /** * The entity type ID the plugin supports. * * @var string */ protected $entity_type_id; /** * (optional) The bundle of the entity type the plugin supports. * * Do not specify if your plugin manages all bundles. * * @var string|false */ protected $entity_bundle = FALSE; /** * (optional) The bundle class for all relationships using this plugin. * * If you make sure that your shared class puts all of its functionality in a * trait and has its own interface, then it should be easy for others to still error: patch failed: src/Plugin/Group/Relation/GroupRelationType.php:38 error: src/Plugin/Group/Relation/GroupRelationType.php: patch does not apply Checking patch tests/src/Kernel/QueryAlter/QueryAlterTestBase.php... error: while searching for: if ($pub_permission && $unpub_permission) { $cases["single-$copy_key-own-mixpub-$operation"] = $status_base; $cases["single-$copy_key-own-mixpub-$operation"]["{$copy_key}_permissions"] = [$pub_permission, $unpub_permission]; $cases["single-$copy_key-own-mixpub-$operation"]["{$copy_key}_pub_owner_check"] = TRUE; $cases["single-$copy_key-own-mixpub-$operation"]["{$copy_key}_unpub_owner_check"] = TRUE; } error: patch failed: tests/src/Kernel/QueryAlter/QueryAlterTestBase.php:538 error: tests/src/Kernel/QueryAlter/QueryAlterTestBase.php: patch does not apply
- ๐ฎ๐ณIndia zkhan.aamir
Hi,
Patch #13 applied successfully.
Admin@DESKTOP-252TO6V MINGW64 ~/Desktop/projects/drupal/web/modules/group (3.2.x) $ curl https://www.drupal.org/files/issues/2023-10-06/fix-issues-reported-byphpcs-3390016.patch | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 142k 100 142k 0 0 274k 0 --:--:-- --:--:-- --:--:-- 275k patching file css/permissions.css patching file css/toolbar.icons.theme.css patching file group.api.php patching file group.module patching file modules/gnode/src/Plugin/Group/Relation/GroupNode.php patching file modules/gnode/src/Plugin/Group/Relation/GroupNodeDeriver.php patching file modules/gnode/src/Plugin/Group/RelationHandler/GroupNodePermissionProvider.php patching file modules/gnode/tests/src/Functional/EntityOperationsTest.php patching file modules/group_support_revisions/tests/src/Functional/GroupSupportRevisionsTest.php patching file src/Access/GroupAccessResult.php patching file src/Access/GroupInstalledContentAccessCheck.php patching file src/Access/GroupMemberAccessCheck.php patching file src/Access/GroupOwnsContentAccessCheck.php patching file src/Access/GroupPermissionAccessCheck.php patching file src/Access/GroupPermissionHandler.php patching file src/Access/GroupPermissionHandlerInterface.php patching file src/Access/GroupPermissions.php patching file src/Access/GroupRelationshipCreateAccessCheck.php patching file src/Access/GroupRelationshipCreateAnyAccessCheck.php patching file src/Access/GroupRelationshipCreateAnyEntityAccessCheck.php patching file src/Access/GroupRelationshipCreateEntityAccessCheck.php patching file src/Annotation/GroupRelationType.php patching file src/Breadcrumb/GroupRelationshipTypeBreadcrumbBuilder.php patching file src/ConfigTranslation/GroupRoleMapper.php patching file src/Controller/GroupMembershipController.php patching file src/Entity/Access/GroupRelationshipAccessControlHandler.php patching file src/Entity/Controller/GroupController.php patching file src/Entity/Controller/GroupListBuilder.php patching file src/Entity/Controller/GroupRelationshipController.php patching file src/Entity/Controller/GroupRoleController.php patching file src/Entity/Controller/GroupRoleListBuilder.php patching file src/Entity/Controller/GroupTypeController.php patching file src/Entity/Controller/GroupTypeListBuilder.php patching file src/Entity/Form/GroupForm.php patching file src/Entity/Form/GroupRelationshipDeleteForm.php patching file src/Entity/Form/GroupRelationshipTypeDeleteForm.php patching file src/Entity/Form/GroupRelationshipTypeForm.php patching file src/Entity/Form/GroupRevisionDeleteForm.php patching file src/Entity/Form/GroupRoleForm.php patching file src/Entity/Form/GroupTypeDeleteForm.php patching file src/Entity/GroupInterface.php patching file src/Entity/GroupRelationshipInterface.php patching file src/Entity/GroupRelationshipType.php patching file src/Entity/GroupRole.php patching file src/Entity/GroupRoleInterface.php patching file src/Entity/Storage/ConfigWrapperStorageSchema.php patching file src/Entity/Storage/GroupRelationshipStorage.php patching file src/Entity/Storage/GroupRelationshipStorageSchema.php patching file src/Entity/Storage/GroupRoleStorageInterface.php patching file src/EventSubscriber/AnonymousUserResponseSubscriber.php patching file src/EventSubscriber/ConfigSubscriber.php patching file src/Form/GroupJoinForm.php patching file src/Form/GroupLeaveForm.php patching file src/Form/GroupPermissionsForm.php patching file src/Form/GroupSettingsForm.php patching file src/Plugin/Condition/GroupType.php patching file src/Plugin/EntityReferenceSelection/RelationshipSubjectSelection.php patching file src/Plugin/Group/Relation/GroupRelationBase.php patching file src/Plugin/Group/Relation/GroupRelationCollection.php patching file src/Plugin/Group/Relation/GroupRelationInterface.php patching file src/Plugin/Group/Relation/GroupRelationType.php patching file src/Plugin/Group/Relation/GroupRelationTypeManager.php patching file src/Plugin/Group/RelationHandler/AccessControlInterface.php patching file src/Plugin/Group/RelationHandler/AccessControlTrait.php patching file src/Plugin/Group/RelationHandler/GroupMembershipPostInstall.php patching file src/Plugin/Group/RelationHandler/OperationProviderInterface.php patching file src/Plugin/Group/RelationHandlerDefault/AccessControl.php patching file src/Plugin/Group/RelationHandlerDefault/PermissionProvider.php patching file src/Plugin/Menu/LocalAction/WithDestination.php patching file src/Plugin/views/access/GroupPermission.php patching file src/Plugin/views/argument/GroupId.php patching file src/Plugin/views/relationship/GroupRelationshipToEntityBase.php patching file src/Plugin/views/relationship/GroupToGroupRelationship.php patching file src/ProxyClass/UninstallValidator/GroupRelationshipUninstallValidator.php patching file src/QueryAccess/EntityQueryAlter.php patching file src/QueryAccess/GroupQueryAlter.php patching file src/QueryAccess/QueryAlterBase.php patching file src/UninstallValidator/GroupRelationshipUninstallValidator.php patching file tests/modules/group_test_plugin/src/Entity/EntityTestWithOwner.php patching file tests/modules/group_test_plugin/src/Plugin/Group/Relation/NodeRelationDeriver.php patching file tests/src/Functional/EntityOperationsTest.php patching file tests/src/Functional/PageCacheTest.php patching file tests/src/Kernel/ConfigEntityAccessTest.php patching file tests/src/Kernel/ConfigWrapperAccessControlHandlerTest.php patching file tests/src/Kernel/ContentEntityAccessComplexTest.php patching file tests/src/Kernel/ContentEntityAccessTest.php patching file tests/src/Kernel/GroupAccessControlHandlerTest.php patching file tests/src/Kernel/GroupKernelTestBase.php patching file tests/src/Kernel/GroupRelationshipCreateAccessTest.php patching file tests/src/Kernel/GroupRelationshipCrudHookTest.php patching file tests/src/Kernel/GroupRelationshipStorageTest.php patching file tests/src/Kernel/GroupRelationshipTokenReplaceTest.php patching file tests/src/Kernel/GroupTest.php patching file tests/src/Kernel/GroupTokenReplaceKernelTestBase.php patching file tests/src/Kernel/GroupTokenReplaceTest.php patching file tests/src/Kernel/QueryAlter/EntityQueryAlterCacheabilityTest.php patching file tests/src/Kernel/QueryAlter/GroupQueryAlterTest.php patching file tests/src/Kernel/QueryAlter/QueryAlterTangibleTest.php patching file tests/src/Kernel/QueryAlter/QueryAlterTestBase.php patching file tests/src/Kernel/RelationHandlerTest.php patching file tests/src/Kernel/RevisionUiAccessTest.php patching file tests/src/Unit/AccessControlTest.php patching file tests/src/Unit/GroupPermissionCheckerTest.php patching file tests/src/Unit/GroupRelationTypeManagerTest.php patching file tests/src/Unit/GroupRelationshipAccessControlHandlerTest.php patching file tests/src/Unit/OperationProviderTest.php patching file tests/src/Unit/UiTextProviderTest.php
Still there are issues remaining.
- ๐ฎ๐ณIndia prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
Prem Suthar โ made their first commit to this issueโs fork.
- ๐ฎ๐ณIndia pray_12
Hi,
Solved the phpcs issues.
Remaining errors need to be adressed areFILE: /group/tests/src/Kernel/ContentEntityAccessComplexTest.php --------------------------------------------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES --------------------------------------------------------------------------------------------------------------------------------------- 1004 | ERROR | The array declaration extends to column 90 (the limit is 80). The array content should be split up over multiple lines 1056 | ERROR | The array declaration extends to column 90 (the limit is 80). The array content should be split up over multiple lines --------------------------------------------------------------------------------------------------------------------------------------- FILE: /group/tests/src/Kernel/QueryAlter/QueryAlterTestBase.php --------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE --------------------------------------------------------------------------------------------------------------------------------------- 541 | ERROR | The array declaration extends to column 128 (the limit is 80). The array content should be split up over multiple lines ---------------------------------------------------------------------------------------------------------------------------------------
- ๐ง๐ชBelgium kristiaanvandeneynde Antwerp, Belgium
Please use a merge request, then GitLab CI runs and we can see if the changes actually make a difference. Currently, GitLab CI complains a bit about phpstan, but not phpcs so I'm not sure if anything needs to be done here.
- Merge request !135Issue #2876696 by jhedstrom, jaapjan, msnassar, _dcre_, dan2k3k4,... โ (Open) created by Unnamed author
- First commit to issue fork.
- ๐ง๐ชBelgium kristiaanvandeneynde Antwerp, Belgium
Moved MR to 3.3.x, please make sure origin/3.3.x is merged in