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-76354 #391

Closed
wants to merge 1,148 commits into from
Closed

LPS-76354 #391

wants to merge 1,148 commits into from

Conversation

jonathanmccann
Copy link

@jonathanmccann jonathanmccann commented Dec 7, 2017

@drewbrokke Sending this through you since it seems more related to Users than Announcements, but let me know if you'd like to have this go elsewhere.

Based off of LPS-216, it seems the Website option should always be checked, however, we're depending on disabled checkboxes to achieve that. Instead, we should enforce this rule in the backend so that it never changes.

I would have liked to remove the entire Website option since I don't see the use for it but that requires a major version increase to portal-kernel which I'd like to avoid.

Let me know if you have any questions.

koor4356 and others added 19 commits December 7, 2017 08:29
…s behavior in the back end instead of relying on a disabled checkbox
@liferay-continuous-integration
Copy link
Collaborator

Comment ci:test to trigger CI tests.

@jonathanmccann
Copy link
Author

ci:test

@liferay-continuous-integration
Copy link
Collaborator

@drewbrokke
Copy link
Owner

Thanks for sending this my way, @jonathanmccann. I'll try to take a look today.

@drewbrokke
Copy link
Owner

Hey @jonathanmccann what is the thought behind updating the AnnouncementsDelivery and User apis instead of just hard-coding true into the AnnouncementsDelivery in the ActionCommand? Seems like that would accomplish the same thing. Is it to prevent that value from being updated in the same way anywhere else?

I'm not too familiar with the purpose of AnnouncementsDelivery, but this has me wondering what that field is even for.

@drewbrokke
Copy link
Owner

An additional change we can consider making is to remove the checkbox from the UI, but I'm not sure if that violates some hidden product definition ;)

@jonathanmccann
Copy link
Author

I wanted to make sure that the value wouldn't be updated to false via any other means.

The field itself is completely useless. It's never read anywhere and is only there for visual purposes. This is why I wanted to remove it completely, but that caused a major version increase in portal-kernel, like I mentioned. Also, like you, I'm not sure if someone somewhere enjoys having those checkboxes shown.

@liferay-continuous-integration
Copy link
Collaborator

Some tests FAILED.

Build Time: 2 hours 54 minutes 28 seconds 571 ms

Base Branch:

Branch Name: master
Branch GIT ID: 2c35cd3e688e6732784c7a4ea4596898fc4c3218

Copied in Private Modules Branch:

Branch Name: master-private
Branch GIT ID: 8468913b2ede609b9e9dc5583c98dc86fe7c23e0

92 out of 123 jobs PASSED

31 Failed Jobs:

92 Successful Jobs:
For more details click here.

Failures unique to this pull:

  1. test-portal-acceptance-pullrequest(master)
    Job Results:

    92 Jobs Passed.
    31 Jobs Failed.

         [echo] 'test-portal-acceptance-pullrequest-batch(master)' completed at https://test-1-2.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/203578/. UNSTABLE
         [echo] 'test-portal-acceptance-pullrequest-batch(master)' completed at https://test-1-14.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/193732/. SUCCESS
         [echo] 'test-portal-acceptance-pullrequest-batch(master)' completed at https://test-1-21.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/127276/. SUCCESS
         [echo] 'test-portal-acceptance-pullrequest-batch(master)' completed at https://test-1-19.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/187239/. SUCCESS
         [echo] 'test-portal-acceptance-pullrequest-batch(master)' completed at https://test-1-19.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/187241/. SUCCESS
         [echo] 'test-portal-acceptance-pullrequest-batch(master)' completed at https://test-1-9.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/176079/. SUCCESS
         [echo] 'test-portal-acceptance-pullrequest-batch(master)' completed at https://test-1-23.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/48431/. SUCCESS
         [echo] 'test-portal-acceptance-pullrequest-batch(master)' completed at https://test-1-18.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/201741/. SUCCESS
         [echo] 'test-portal-acceptance-pullrequest-batch(master)' completed at https://test-1-21.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/127275/. SUCCESS
         [echo] 'test-portal-acceptance-pullrequest-batch(master)' completed at https://test-1-10.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/169864/. SUCCESS
         [echo] 'test-portal-acceptance-pullrequest-batch(master)' completed at https://test-1-3.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/200483/. FAILURE
         [echo] 'test-portal-acceptance-pullrequest-batch(master)' completed at https://test-1-12.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/123760/. SUCCESS
         [echo] 'test-portal-acceptance-pullrequest-batch(master)' completed at https://test-1-9.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/176078/. SUCCESS
         [echo] 'test-portal-acceptance-pullrequest-batch(master)' completed at https://test-1-17.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/183370/. SUCCESS
         [echo] Caching GitHub message
  2. test-portal-acceptance-pullrequest-batch(master)/integration-oracle121-jdk8
    Job Results:

    3657 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #123758
      1. CounterLocalServiceTest.testConcurrentIncrement
        java.util.concurrent.ExecutionException: com.liferay.portal.kernel.process.ProcessException: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'counterSessionFactory' defined in class path resource [META-INF/hibernate-spring.xml]: Cannot resolve reference to bean 'counterHibernateSessionFactory' while setting bean property 'sessionFactoryImplementor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'counterHibernateSessionFactory' defined in class path resource [META-INF/hibernate-spring.xml]: Cannot resolve reference to bean 'counterDataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'counterDataSource' defined in class path resource [META-INF/counter-infrastructure-spring.xml]: Cannot resolve reference to bean 'counterDataSourceImpl' while setting bean property 'targetDataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'counterDataSourceImpl' defined in class path resource [META-INF/counter-infrastructure-spring.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: No dialect found
        	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
        	at com.liferay.counter.service.Counte...
  3. ...

@drewbrokke
Copy link
Owner

@jonathanmccann that makes sense, thanks for clarifying. In that case I'm fine with these changes.

@drewbrokke
Copy link
Owner

Pull request forwarded to brianchandotcom#53599. See changes here.

:octocat: Sent from GH.

@drewbrokke drewbrokke closed this Dec 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet