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

LPD-39899 Permission's improvements in DM #6028

Conversation

ambrinchaudhary
Copy link
Collaborator

@ambrinchaudhary ambrinchaudhary commented Oct 23, 2024

Sending here for first review before forwarding to Frontend Infra team.

What is this trying to solve

Screenshot 2024-10-23 at 14 17 50
Screenshot 2024-10-23 at 14 18 19

Other places like Blogs, Web Content ... are not affected, because DM is the only one that has de Download permission.

How can I test it

Run npm run playwright -- test -g 'LPD-39898' --reporter list

npm run playwright -- test -g 'LPD-39898' --reporter list --repeat-each=5

> @liferay/[email protected] playwright
> playwright "test" "-g" "LPD-39898" "--reporter" "list" "--repeat-each=5"


Running 5 tests using 1 worker

  ✓  1 [document-library-web] › document-library-web/dmPermissions.spec.ts:22:1 › DM Permissions initial status (27.9s)
  ✓  2 [document-library-web] › document-library-web/dmPermissions.spec.ts:22:1 › DM Permissions initial status (24.9s)
  ✓  3 [document-library-web] › document-library-web/dmPermissions.spec.ts:22:1 › DM Permissions initial status (22.2s)
  ✓  4 [document-library-web] › document-library-web/dmPermissions.spec.ts:22:1 › DM Permissions initial status (35.1s)
  ✓  5 [document-library-web] › document-library-web/dmPermissions.spec.ts:22:1 › DM Permissions initial status (22.7s)

  5 passed (2.5m)

@liferay-continuous-integration
Copy link
Collaborator

CI is automatically triggering the following test suites:

  •     ci:test:sf

@liferay-continuous-integration
Copy link
Collaborator

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

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 75cdfe67b3f03ae0eaaddbcb91187877e279f954

Sender Branch:

Branch Name: LPD-39899_Permissions_show_hide_button
Branch GIT ID: 3d353a72fdce850189e1505253433ad1a1e00e08

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

@liferay-continuous-integration
Copy link
Collaborator

@boton
Copy link
Collaborator

boton commented Oct 23, 2024

ci:test:content-management-playwright

@liferay-continuous-integration
Copy link
Collaborator

						<h1>Unable to generate test report.</h1><p>Jenkins encountered the following error while generating test report:</p><pre><code>The following error occurred while executing this line:

/opt/dev/projects/github/liferay-jenkins-ee/commands/build-common.xml:2948: Sourced file: inline evaluation of: import com.liferay.jenkins.results.parser.JenkinsResultsParserUtil; . . . '' : Method Invocation JenkinsResultsParserUtil.toJSONObject : at Line: 297 : in file: inline evaluation of: import com.liferay.jenkins.results.parser.JenkinsResultsParserUtil; . . . '' : JenkinsResultsParserUtil .toJSONObject ( JenkinsResultsParserUtil .getLocalURL ( jenkinsJobURL + "/api/json?tree=duration,result,url" ) , false )

Target exception: java.io.IOException: Server returned HTTP response code: 500 for URL: http://test-1-26/job/test-portal-acceptance-pullrequest(master)/14069//api/json?tree=duration%2Cresult%2Curl

Base Branch:

Branch Name: master

Branch GIT ID: 75cdfe67b3f03ae0eaaddbcb91187877e279f954

Job Summary:

Job Link: test-portal-acceptance-pullrequest(master)

For more details click here.

@robertoDiaz
Copy link
Collaborator

Java part LGTM 👍

@ambrinchaudhary
Copy link
Collaborator Author

ci:test:content-management-playwright

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test:content-management-playwright - 11 out of 13 jobs passed in 1 hour 3 minutes

Click here for more details.

This pull is eligible for reevaluation. When this upstream build has completed, using the following CI command will compare this pull request result against a more recent upstream result:

ci:reevaluate:1297401_10569

Base Branch:

Branch Name: master
Branch GIT ID: 75cdfe67b3f03ae0eaaddbcb91187877e279f954

Upstream Comparison:

Branch GIT ID: 20c16b763e47400f6e4d7cc1f462a054278d1d4b
Jenkins Build URL: EE Development Acceptance (master) - 940 - 2024-10-22[08:38:15]

ci:test:content-management-playwright - 11 out of 13 jobs PASSED
11 Successful Jobs:
    For more details click here.

    This pull contains no unique failures.


    Failures in common with acceptance upstream results at 20c16b7:

    @liferay-continuous-integration
    Copy link
    Collaborator

    @ambrinchaudhary
    Copy link
    Collaborator Author

    Checked the results of ci:test:content-management-playwright. The failures are currently present on our daily routines, so they are not related to this pull. New test added here is passing.

    @boton are you ok if I send this to Frontend Infra team?

    @boton
    Copy link
    Collaborator

    boton commented Oct 24, 2024

    @ambrinchaudhary I'm reviewing now 😅

    @boton
    Copy link
    Collaborator

    boton commented Oct 24, 2024

    I added some changes after chatting with @ambrinchaudhary, test is working :D

    image

    @boton
    Copy link
    Collaborator

    boton commented Oct 24, 2024

    ci:test:sf

    @ambrinchaudhary
    Copy link
    Collaborator Author

    Thank you for your review @boton. PR submitted to FI: liferay-frontend#4515

    @liferay-continuous-integration
    Copy link
    Collaborator

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

    Click here for more details.

    Base Branch:

    Branch Name: master
    Branch GIT ID: ddeb14626d6563c2fd73d3c85c5baa5f1270f95d

    Sender Branch:

    Branch Name: LPD-39899_Permissions_show_hide_button
    Branch GIT ID: ee6094654e40fa60327145677db2def120081472

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

    @liferay-continuous-integration
    Copy link
    Collaborator

    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.

    5 participants