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-42706 #6133

Closed

Conversation

jkappler
Copy link
Collaborator

@jkappler jkappler commented Nov 28, 2024

Incorrect user shown in some views

What is this trying to solve?

Link to ticket

In some views we show the user that created the entry instead of the one that modified it, this creates a confusion with the clients

How am I fixing it?

Where we have the status, use the user that modified the entry, in other cases, just show the time when it was modified

@liferay-continuous-integration
Copy link
Collaborator

CI is automatically triggering the following test suites:

  •     ci:test:sf

@jkappler
Copy link
Collaborator Author

@adolfopa, I'm unsure of the approach. Another one would be to change all the related update methods in the service to update userId and userName to the user that's modifying the entry

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test:sf - 0 out of 1 jobs passed in 10 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: d71b1f9b8213c734d0eca46f7ca2f0c6e6ecbc45

Sender Branch:

Branch Name: LPD-42706_message
Branch GIT ID: d53fff72aa5eb3efa9c92b7ac3f97b31f5bdfff3

0 out of 1jobs PASSED
For more details click here.
format-source-files:
     [java] java.lang.Exception: Found 2 formatting issues:
     [java] 1: ./modules/apps/message-boards/message-boards-web/src/main/java/com/liferay/message/boards/web/internal/display/context/MBDisplayContext.java expected:<...opyrightText: (c) 20[24] Liferay, Inc. https...> but was:<...opyrightText: (c) 20[00] Liferay, Inc. https...>
     [java] 2: ./modules/apps/knowledge-base/knowledge-base-web/src/main/resources/META-INF/resources/admin/view_descriptive.jsp expected:<....getModifiedDate();
     [java] [            %>
     [java] 
     [java]             <liferay-ui:message arguments="<%= LanguageUtil.getTimeDescription(request, System.currentTimeMillis() - modifiedDate.getTime(), true)] %>" key="modified-x...> but was:<....getModifiedDate();
     [java] [
     [java]             String modifiedDateDescription = LanguageUtil.getTimeDescription(request, System.currentTimeMillis() - modifiedDate.getTime(), true);
     [java]             %>
     [java] 
     [java]             <liferay-ui:message arguments="<%= modifiedDateDescription] %>" key="modified-x...>
     [java] 
     [java]   at com.liferay.source.formatter.SourceFormatter.format(SourceFormatter.java:472)
     [java]   at com.liferay.source.formatter.SourceFormatter.main(SourceFormatter.java:301)
[stopwatch] [run.batch.test.action: 2:06.809 sec]
     [echo] The following error occurred while executing this line:
     [echo] /opt/dev/projects/github/liferay-portal/portal-impl/build.xml:497: The following error occurred while executing this line:
     [echo] /opt/dev/projects/github/liferay-portal/portal-impl/build.xml:650: Java returned: 1
  [typedef] Could not load definitions from resource org/apache/maven/artifact/ant/antlib.xml. It could not be found.
  [taskdef] Could not load definitions from resource org/jacoco/ant/antlib.xml. It could not be found.
   [delete] Deleting: /opt/dev/projects/github/liferay-portal/null139062917.properties

merge-test-results:
[mkdir] Created dir: /opt/dev/projects/github/liferay-portal/test-results
[beanshell] Truncating errors in /opt/dev/projects/github/liferay-portal/portal-impl/test-results/TEST-JenkinsLogAssertTest.xml
[junitreport] Processing /opt/dev/projects/github/liferay-portal/test-results/TESTS-TestSuites.xml to /tmp/null578634514
[junitreport] Loading stylesheet ile:/opt/java/ant/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] Transform time: 148ms
[junitreport] Deleting: /tmp/null578634514

@liferay-continuous-integration
Copy link
Collaborator

@jkappler
Copy link
Collaborator Author

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: d71b1f9b8213c734d0eca46f7ca2f0c6e6ecbc45

Sender Branch:

Branch Name: LPD-42706_message
Branch GIT ID: 7536f5a04ebab9090d95f2b8355db076d7d7c993

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

@liferay-continuous-integration
Copy link
Collaborator

@adolfopa
Copy link
Collaborator

ci:forward

@liferay-continuous-integration
Copy link
Collaborator

CI is automatically triggering the following test suites:

  •     ci:test:relevant
  •     ci:test:sf
  •     ci:test:stable

The pull request will automatically be forwarded to the user brianchandotcom If the following test suites pass:

  •     ci:test:relevant
  •     ci:test:sf
  •     ci:test:stable

@liferay-continuous-integration
Copy link
Collaborator

Skipping previously passed test suites:

  • ci:test:sf

@liferay-continuous-integration
Copy link
Collaborator

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

✔️ ci:test:relevant - 33 out of 33 jobs passed in 57 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: d71b1f9b8213c734d0eca46f7ca2f0c6e6ecbc45

Upstream Comparison:

Branch GIT ID: d71b1f9b8213c734d0eca46f7ca2f0c6e6ecbc45
Jenkins Build URL: EE Development Acceptance (master) - 1050 - 2024-11-27[16:41:25]

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

@liferay-continuous-integration
Copy link
Collaborator

All required test suite(s) passed.
Forwarding pull request to brianchandotcom.
Console

@liferay-continuous-integration
Copy link
Collaborator

Pull request has been successfully forwarded to brianchandotcom#156549
Console

@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.

4 participants