Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LPS-121903 Migrate v2 usages in roles/roles-admin-web #99554

Conversation

liferay-continuous-integration
Copy link
Collaborator

Forwarded from: liferay-frontend#835 (Took 1 ci:forward attempt in 3 hours 20 minutes)

@julien
@liferay-frontend

Original pull request comment:
The <clay:management-toolbar-v2 /> tag has been replaced with the
<clay:management-toolbar /> tag (which uses clay v3).

Creating and deleting roles should work as expected, as well as adding or
removing assignees from these roles.

Test plan (1):

  • From the global menu, select the Control Panel tab
  • Navigate to Roles
  • Make sure you can:
    • Create and delete Regular Roles
    • Create and delete Site Roles
    • Create and delete Organization Roles
    • Create and delete Asset Library Roles
    • Create and delete Account Roles

Test Plan (2):

  • Create a Regular Role
  • Select (click) the Regular Role you created previously
  • Navigate to the Assignees tab
  • Make sure you can add assignees from this role
  • Make sure you can remove assignees from this role

Additional notes

  • Submitting this as a draft before forwarding to @drewbrokke so that @ambrinchaudhary , @john-co and @markocikos can review

  • This module had an <aui:script> that was defining one of the management toolbar's event handler, and at the same time calling that handler depending on values present in session storage. Since this might be hard to understand, this is what I'm referring to.
    In this change, what I've done is replaced that by using a "propsTransformer" for the management toolbar, another JS module that defines the addAssignees function and a <liferay-frontend:component> to check session storage and conditionally call the addAssignees function.

I think this is OK and I've actually mentioned it to @drewbrokke to make sure, but I'm adding this here so that everyone following this pull request thread knows why this change was made.

✔️ ci:test:sf - 1 out of 1 jobs passed in 4 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: c7640fbeeaefafecf0ddea7d37985c7ccb701b58

Sender Branch:

Branch Name: LPS-121903
Branch GIT ID: 5bcc6f118883e1ff70a42432c591edd41789f370

1 out of 1jobs PASSED
1 Successful Jobs:
For more details click here.

✔️ ci:test:stable - 9 out of 9 jobs passed

✔️ ci:test:relevant - 23 out of 24 jobs passed in 3 hours 4 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 7deedb562a6145be11b327fc35f9693b6b4e1541

Upstream Comparison:

Branch GIT ID: 7deedb562a6145be11b327fc35f9693b6b4e1541
Jenkins Build URL: Acceptance Upstream DXP (master) #1608

ci:test:stable - 9 out of 9 jobs PASSED
9 Successful Jobs:
ci:test:relevant - 22 out of 24 jobs PASSED
22 Successful Jobs:
For more details click here.

This pull contains no unique failures.


Failures in common with acceptance upstream results at 7deedb5:

Julien Castelain added 2 commits March 3, 2021 08:50
Until now, in order to display the "creation" button (which is the
button with a "+" icon), we have to pass a "creationMenu" object.
In some cases we just want to show the creation button and handle it's
click event listener - so this is what this change does.
The <clay:management-toolbar-v2 /> tag has been replaced with the
<clay:management-toolbar /> tag (which uses clay v3).

**Test plan**:
- From the global menu, select the **Control Panel** tab
- Navigate to **Roles**
- Make sure you can:
    - Create and delete Regular Roles
    - Create and delete Site Roles
    - Create and delete Organization Roles
    - Create and delete Asset Library Roles
    - Create and delete Account Roles
- Create a Regular Role
- Select (click) the Regular Role you created previously
- Navigate to the **Assignees** tab
- Make sure you can add assignees from this role
- Make sure you can remove assignees from this role
@liferay-continuous-integration
Copy link
Collaborator Author

To conserve resources, the PR Tester does not automatically run for forwarded pull requests.

@brianchandotcom
Copy link
Owner

Merged. Thank you.
View total diff: 2cc5b77...22b0aff

@liferay-continuous-integration liferay-continuous-integration deleted the ci-forward-LPS-121903-pr-835-sender-julien-ts-1614949202437 branch March 13, 2021 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants