- Issue created by @vensires
- ๐ณ๐ฟNew Zealand quietone
The issue title reads like this will be fixing all the tests, when it really is just those in content moderation. Maybe someth8ing like, "Fix content_moderation tests that rely on UID1's super user behavior"
- ๐ฌ๐ทGreece vensires
Nice catch! Just changed. Will change the other issues too. Thanks for the remark!
- ๐ฎ๐ณIndia pradhumanjainOSL
pradhumanjain2311 โ made their first commit to this issueโs fork.
- Merge request !7586Issue #3439832: Remove $usesSuperUserAccessPolicy variable. โ (Open) created by Unnamed author
- First commit to issue fork.
- Merge request !8091Issue #3439832: Fix Moderation Content Translation Test that rely on UID1's super user behaviour โ (Open) created by solimanharkas
- First commit to issue fork.
pooja_sharma โ changed the visibility of the branch 3439832-fix-content-moderation-test to hidden.
Addressed the superuser code needs to remove & added respective permissions.
Please review MR 8643, move NR
- Status changed to Needs review
6 months ago 2:28pm 3 July 2024 - ๐บ๐ธUnited States smustgrave
smustgrave โ changed the visibility of the branch 11.x to hidden.
- ๐บ๐ธUnited States smustgrave
smustgrave โ changed the visibility of the branch 3439832-fix-content-moderation to hidden.
- Status changed to Needs work
5 months ago 4:05pm 12 July 2024 - Status changed to Needs review
5 months ago 1:53pm 5 August 2024 I have replied on the queries, Please review & passing for NR.
- Status changed to Needs work
4 months ago 8:39pm 7 August 2024 - ๐บ๐ธUnited States smustgrave
Saving credit for those who have worked on the issue thus far.
Left a response to the thread.
- Status changed to Needs review
4 months ago 4:27pm 8 August 2024 @smustgrave, I can't see new comment on MR, on the basis of prev comment , I 'm trying to reply on query:
Goal of ticket is adding permissions only, however permission can be assign to user only if module install code added before user login, if module install & respective config install (if required/added) code added after user login code in that case scenario permission can be assign only by adding role (checked in core as well)
Any other guidance/suggestion over it, not sure moving NR
- Status changed to Needs work
4 months ago 12:39pm 27 August 2024 - ๐บ๐ธUnited States smustgrave
Instead of creating a bunch of roles for single permissions
Why not move $this->setCurrentUser($this->adminUser); to below when the workflow is created and change to $this->setCurrentUser($this->createUser(['single permissiono']));
Should result in less calls being made.
- Status changed to Needs review
4 months ago 7:49pm 4 September 2024 - Status changed to Needs work
3 months ago 1:36pm 5 September 2024 - ๐บ๐ธUnited States smustgrave
Had some threads I forgot to save from earlier that's my mistake.
- Status changed to Needs review
3 months ago 7:57pm 5 September 2024 Yeah I have similar thoughts, u didn't mention similar changes here then also skip from my end as well.
Applied suggestions, PLease review, moving NR.
- Status changed to RTBC
3 months ago 8:48pm 5 September 2024 - ๐ณ๐ฟNew Zealand quietone
The diff does not apply to 11.x HEAD. And while does that I think it would make it easier to maintain if all the lists of permissions were sorted. Some of these in this MR are quite long. Thanks.
- ๐ณ๐ฟNew Zealand quietone
I don't know why but the diff applies now. The only commands I executed in my working directory was 'git log' and 'git status' . I'm restoring the status while I review.
- ๐ณ๐ฟNew Zealand quietone
Four of the functional tests extend from \Drupal\Tests\content_moderation\Functional\ModerationStateTestBase which defines a user and many permissions. Why are these four tests creating a new user with different permissions? Why not use the existing user and grant any permissions needed? It would simplify the tests.
- ๐ณ๐ฟNew Zealand quietone
Oh, and a reminder that we work collaboratively. Typically, there is no need to create a new branch and separate MR. Thanks.
Thanks for reviewing it, Verifying to address #28 ๐ Fix Content Moderation tests that rely on UID1's super user behavior Active feedback.
Addressed #28 ๐ Fix Content Moderation tests that rely on UID1's super user behavior Active feedback, sorry it was missed from my end, now code looks clean & tried to compare the old & changed generated test html files output - both are same.
Please review, moving NR.
- Status changed to Fixed
about 1 month ago 1:02pm 14 November 2024 - ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
Committed and pushed 56186f9070b to 11.x and 743c2e68f70 to 11.1.x. Thanks!
-
alexpott โ
committed 743c2e68 on 11.1.x
Issue #3439832 by pooja_sharma, solimanharkas, smustgrave, quietone,...
-
alexpott โ
committed 743c2e68 on 11.1.x
-
alexpott โ
committed 56186f90 on 11.x
Issue #3439832 by pooja_sharma, solimanharkas, smustgrave, quietone,...
-
alexpott โ
committed 56186f90 on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.