Problem/Motivation
When using content moderation there is not state defined to set when promoting an item.
Proposed resolution
Set moderation state to published so paragraph status can be managed inline.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 3159902-promoted-items-state-10-interdiff.txt | 906 bytes | berdir |
| #10 | 3159902-promoted-items-state-10.patch | 4.87 KB | berdir |
| #7 | interdiff-3159902-4-6.txt | 1.38 KB | johnchque |
| #7 | 3159902-promoted-items-state-6.patch | 4.9 KB | johnchque |
| #7 | 3159902-promoted-items-state-6-TEST-ONLY.patch | 4.12 KB | johnchque |
Comments
Comment #2
johnchqueThis seems to work.
Comment #3
berdir\Drupal\Tests\paragraphs_library\FunctionalJavascript\ParagraphsContentModerationTest is a test that tests library items with content moderation enabled. We might be abe to extend that with a test method to test this?
Comment #4
johnchqueAdding tests. BTW I just noticed that we are using the old widget in the tests. I believe that this should not make much difference.
Comment #7
johnchqueSorry, this should fix the tests. :)
Comment #9
berdirdfac() shouldn't be required here, this is creating a new entity that can't be cached yet.
Comment #10
berdirI removed it and the test passes for me locally, lets see about testbot.
Comment #11
berdirTestbot is happy too.