Commit Graph

300 Commits (1df994459b9f47b89a214ec69a41dd33d41e3d11)

Author SHA1 Message Date
Lee Rowlands 10a1e15fa3
Issue #2900320 by Sam152, timmillwood, Wim Leers: Remove workflow type checkWorkflowAcess() & "view content moderation" permission 2017-08-15 08:11:18 +10:00
Nathaniel Catchpole 82f1a1ca6c Issue #2848775 by Sam152, eyilmaz, D34dMan, DuneBL, huzooka: BaseFieldOverride entities created by content_translation break content_moderation because they don't support computed fields 2017-08-14 10:38:26 +09:00
Nathaniel Catchpole 8c9c8d3b93 Issue #2900687 by timmillwood, Sam152, DuneBL: Fatal error when saving a node type without content moderation 2017-08-13 16:34:12 +09:00
Lee Rowlands 3cb53fef78
Issue #2898913 by Sam152, andrewmacpherson, Wim Leers: Review a11y concerns in ContentModerationConfigureForm 2017-08-12 17:53:24 +10:00
Nathaniel Catchpole e259a77888 Issue #2898020 by amateescu, timmillwood: Simplify ContentModerationStateTest 2017-08-11 15:07:31 +09:00
Nathaniel Catchpole d4165ff108 https://www.drupal.org/files/issues/2900046-20.patch 2017-08-11 14:59:26 +09:00
Nathaniel Catchpole e6f77992cd Issue #2893888 by plach, Sam152, amateescu, evilehk: Content moderation state entity field data not removed when the host field data is 2017-08-10 16:16:25 +09:00
webchick 4ed19288b0 Issue #2899395 by timmillwood, Wim Leers, jojototh, xjm, Bojhan, DyanneNova: Content Moderation form in displayed entity looks broken 2017-08-08 13:07:09 -07:00
Lee Rowlands 2534957ae1
Issue #2900019 by tim.plunkett, joelpittet: \Drupal\content_moderation\EventSubscriber\ConfigImportSubscriber causes errors when importing any non-workflow config 2017-08-07 18:14:46 +10:00
xjm f589b8800a Issue #2856917 by amateescu, kriboogh: Moderating an entity that uses a special language (e.g. LANGCODE_NOT_SPECIFIED) throws exception 2017-08-05 10:29:45 -05:00
Nathaniel Catchpole 42c492cd70 Issue #2892967 by amateescu, Sam152: \Drupal\content_moderation\EntityTypeInfo::formAlter() is half broken 2017-08-05 09:40:56 +09:00
Lee Rowlands 2d5e8d119d
Issue #2753717 by timmillwood, amateescu, alexpott, mtodor, boaloysius, Jo Fitzgerald, phenaproxima, plach, gaurav.kapoor, tkoleary, yoroy, larowlan, karlos007, Berdir, Sam152: Add select field to choose moderation state on entity forms 2017-08-02 07:34:36 +10:00
Lee Rowlands f7f742ef56
Issue #2896722 by Sam152, Wim Leers, tim.plunkett, larowlan, timmillwood: Leverage PluginWithFormsInterface to encapsulate @WorkflowType schema and clean up state/transition form methods 2017-08-01 18:08:48 +10:00
Lee Rowlands aee577b8a7
Issue #2890364 by timmillwood, amateescu, plach, xjm: Replace all uses of "forward revision" with "pending revision" 2017-07-31 08:39:37 +10:00
Lee Rowlands 42a76cf1ef
Issue #2896721 by Sam152, Wim Leers: Remove the concept of decorated states/transitions from worfklow type plugins. 2017-07-30 08:10:57 +10:00
Lee Rowlands a16b9c74c2
Issue #2893778 by timmillwood, Sam152, Wim Leers: Remove deprecated Workflows methods 2017-07-29 17:08:18 +10:00
Nathaniel Catchpole b77f378db7 Issue #2876419 by Sam152, timmillwood, plach: Review content_moderation module and mark code with @internal where necessary 2017-07-28 16:33:41 +09:00
Lee Rowlands b3aa553406
Issue #2894499 by amateescu, Manuel Garcia, xjm: Rename 'Editorial workflow' to 'Editorial' 2017-07-28 13:56:18 +10:00
Lee Rowlands e7d43505b2
Revert "Issue #2894499 by amateescu, Manuel Garcia, xjm: Rename 'Editorial workflow' to 'Editorial'"
This reverts commit 6fb8ad45d6.
2017-07-28 10:55:46 +10:00
Lee Rowlands 6fb8ad45d6
Issue #2894499 by amateescu, Manuel Garcia, xjm: Rename 'Editorial workflow' to 'Editorial' 2017-07-28 09:11:47 +10:00
Lee Rowlands 832d7695ac
Issue #2830740 by timmillwood, amateescu, Sam152, alexpott, martin107, plach, catch: Allow workflow types to lock certain changes to workflows once things are in use 2017-07-28 09:07:55 +10:00
Lee Rowlands 6772e2dfd1
Issue #2849827 by Sam152, timmillwood, larowlan: Move workflow "settings" setters and getters to WorkflowTypeInterface 2017-07-27 13:14:51 +10:00
Nathaniel Catchpole 75fdbf087c Issue #2766957 by timmillwood, vijaycs85, plach, Sam152, Gábor Hojtsy, catch, dawehner, alexpott, hchonov: Forward revisions + translation UI can result in forked draft revisions 2017-07-20 17:17:26 +01:00
Lee Rowlands 930a35b962
Issue #2843753 by Wim Leers, amateescu: Prevent ContentModerationState from being exposed by REST's EntityResource 2017-07-20 13:15:46 +10:00
Lee Rowlands 2441134b04
Issue #2851225 by Sam152, Gábor Hojtsy: Ensure non-configuration bundles are correctly removed when the bundles go away 2017-07-15 18:24:38 +10:00
Nathaniel Catchpole 6ea03e36e2 Issue #2883868 by amateescu, Sam152, timmillwood, plach: Content Moderation decides to set a new revision as the default one way too late in the entity update process 2017-07-11 13:24:30 +01:00
Nathaniel Catchpole 96dfae63c8 Issue #2861417 by Sam152, timmillwood, larowlan: Correctly handle entity validation of the moderation_state field when trying to save invalid states 2017-07-06 16:31:11 +01:00
Nathaniel Catchpole 33d01baced Issue #2888138 by timmillwood: Content Moderation should be tested with Media entity 2017-06-28 13:02:40 +01:00
Nathaniel Catchpole c53b322847 Issue #2068063 by timmillwood, Berdir, tduong, Manuel Garcia, nlisgo, yongt9412, esod, lauriii, jonathan1055, vijaycs85, yoroy, amit.drupal, tkoleary, ifrik, Bojhan, xjm, tstoeckler, amateescu: Change "Save and keep un-/published" buttons to a "Published" checkbox and an included "Save" button 2017-06-15 13:02:05 +01:00
Gabor Hojtsy 69555bcd07 Issue #2884715 by timmillwood, Sam152, larowlan, tstoeckler: Initial Content Moderation transitions are not correct 2017-06-15 09:32:16 +02:00
Alex Pott de122da6a9 Issue #2865498 by jhedstrom, timmillwood, alexpott: Latest revision tab should respect 'view own unpublished content' permission 2017-05-26 18:33:59 +01:00
Nathaniel Catchpole 2b0101ec88 Issue #2881200 by Manuel Garcia: Incorrect syntax on content_moderation.permissions.yml and workflows.permissions.yml 2017-05-24 22:47:24 +01:00
Alex Pott a5818240d6 Issue #2877913 by Sam152, timmillwood, amateescu, Wim Leers: Bring content_moderation library definition into line with the rest of core 2017-05-24 22:33:00 +01:00
Alex Pott 3225473ddd Issue #2865213 by acbramley, Sam152, timmillwood: Moderation form submission does not set revision author 2017-05-23 18:03:34 +01:00
Nathaniel Catchpole 348ff90c8e Issue #2848508 by timmillwood, dragos-dumi, Sam152, Pavan B S, pradeep22saini: Reverting a revision causes validation error on edit form submit 2017-05-16 13:44:54 +01:00
Alex Pott 2e8b29651c Issue #2878166 by Sam152: Remove deprecated ModerationStateTestBase from core 2017-05-13 08:38:29 +01:00
Gabor Hojtsy 0493d9fbd9 Issue #2843083 by timmillwood, Manuel Garcia, Sam152, naveenvalecha, amateescu, yoroy, Gábor Hojtsy, xjm, jojototh, Bojhan, lauriii: Select entity type / bundle in workflow settings 2017-05-12 10:21:36 +02:00
Alex Pott 2dad9ec019 Issue #2821716 by flocondetoile, anish.a, amateescu, Thew: Fatal error when viewing node with content moderation enabled if a module which implements hook_node_grants() is enabled 2017-05-09 18:01:08 +01:00
Nathaniel Catchpole 260f5f679f Issue #2868429 by Sam152, timmillwood, Adita, RaisinBranCrunch, catch: ModerationStateWidget depends on EntityTypeInterface::getBundleEntityType despite content moderation supporting entity types without a bundle 2017-05-09 14:28:23 +01:00
Alex Pott 469003db9e Issue #2817835 by timmillwood, Sam152, alexpott: When enabling moderation apply a relative state 2017-05-08 11:50:29 +01:00
Alex Pott 8bedf88b63 Issue #2779931 by Sam152, alexpott, timmillwood, Wim Leers, catch, dawehner: Add storage exception that enforces unique content_entity_type_id and content_entity_id on the content moderation state content entity, and add access control handler to forbid all access 2017-05-08 11:09:57 +01:00
Nathaniel Catchpole e88cca5fcb Issue #2864938 by fenstrat, timmillwood, Sam152: Content moderation form doesn't appear on new entities 2017-05-02 10:55:20 +01:00
Nathaniel Catchpole 9e7f7cd4cb Issue #2864008 by nlisgo: Convert web tests to browser tests for content_moderation module 2017-04-28 13:25:10 -04:00
Alex Pott 0aa52f7e7a Issue #2850353 by timmillwood, Pavan B S, Sam152: Test content_moderation with a non-bundleable content entity 2017-04-14 07:59:40 +01:00
Alex Pott 73b750b27c Issue #2864060 by nlisgo, Lendude, alexpott: ModerationStateNodeTypeTest::testEnablingOnExistingContent assertion is misleading 2017-04-14 07:56:04 +01:00
Alex Pott 55e309fc33 Issue #2862988 by timmillwood, catch: EntityOperations::entityPresave doesn't always set the correct default revision 2017-04-14 07:36:40 +01:00
Gabor Hojtsy eee757d9be Issue #2866656 by alexpott, yoroy, timmillwood: Clicking on "New Draft" tab allows you to archive the content 2017-04-12 09:30:32 +02:00
Alex Pott 75f0c02a79 Issue #2850797 by maxocub, dawehner, alexpott: Prepare our phpunit tests to be BC compatible with phpunit 5.x/6.x 2017-04-04 15:29:18 +01:00
Alex Pott d66623ef28 Issue #2819477 by Sam152, timmillwood, dawehner, jibran, xjm: Views integration incorrectly joins content_moderation_state entities with matching IDs, but different entity types 2017-03-13 10:10:04 +00:00
xjm 52e3eec616 Issue #2776975 by joelpittet, dawehner, tim.plunkett, xjm, pfrenssen: March 3, 2017: Convert core to array syntax coding standards for Drupal 8.3.x RC phase 2017-03-03 19:20:24 -06:00
Alex Pott 0d27b06355 Issue #2845151 by Sam152, timmillwood, tstoeckler: ContentModerationStateFormatter pretends it's for the moderated entity, but it is for the content moderation state entity 2017-03-03 11:17:04 +00:00
Nathaniel Catchpole ef4f88376b Issue #2561115 by michaellenahan, alexpott, Lendude, cilefen, lomasr, amit.drupal, Gábor Hojtsy, ifrik, dawehner: Rollback: Use 'Filter' for exposed filter button text in new views and new installations (instead of 'Apply') 2017-02-22 12:37:49 +00:00
Nathaniel Catchpole 4c64f7b840 Issue #2770921 by dawehner, klausi, Mile23, mpdonadio, xjm, claudiu.cristea: Feb 21st: Convert chunk of WTB to BTB by just moving classes, changing use statements adding traits 2017-02-21 12:07:44 +00:00
Alex Pott 037932df45 Issue #2851635 by tim.plunkett, alexpott, dawehner: DefaultSingleLazyPluginCollection retains stale instance IDs 2017-02-14 11:05:36 +00:00
Alex Pott 2a55d2d98a Issue #2781907 by timmillwood, Sam152: Remove unnecessary constraint from moderation state transition validation 2017-02-12 21:21:11 +00:00
xjm 758f01b6f6 Issue #2830581 by alexpott, Sam152, timmillwood, xjm: Fix ContentModeration workflow type to calculate correct dependencies 2017-02-10 15:00:17 -06:00
Nathaniel Catchpole 8f738c844c Issue #2844594 by alexpott, scott_euser, timmillwood, Sam152: Default workflow states and transitions 2017-02-10 17:28:48 +00:00
xjm eb8b64df0f Issue #2850601 by alexpott, xjm, timmillwood: ContentModeration workflow type plugin preserves numeric keys on sorting and not sorting entity types 2017-02-08 15:48:58 -06:00
Alex Pott a3c32ebb6f Issue #2848553 by Sam152, Jaesin, dawehner: Make sure all 'configure' links are valid routes 2017-02-08 21:40:41 +00:00
Chris McCafferty 95e9b9ec4e Issue #2845113 by timmillwood, tstoeckler: Add test coverage that setting an invalid moderation state on a moderated entity fails 2017-02-08 11:20:09 -05:00
xjm 9088257709 Issue #2850592 by alexpott, xjm: Typos in ContentModertaionWorkflowTypeApiTest 2017-02-07 19:09:39 -06:00
xjm 05f42e4b07 Issue #2850341 by alexpott, xjm, timmillwood: Improve \Drupal\content_moderation\Plugin\WorkflowType\ContentModeration::appliesToEntityTypeAndBundle() and ::getBundlesForEntityType() 2017-02-07 15:04:38 -06:00
Chris McCafferty 4ffb98e3d3 Issue #2843997 by Sam152: Add missing test coverage for content edit tab labels 2017-02-05 14:00:34 -05:00
Nathaniel Catchpole 2e4a1c7a9c Issue #2843567 by Sam152, kattekrab: Change "Un-archive" transition label to "Restore" 2017-01-25 13:43:09 +00:00
Nathaniel Catchpole d8c19835a4 Issue #2846013 by Sam152: Use consistent case for the word "workflow" in content_moderation 2017-01-25 13:39:38 +00:00
Alex Pott d55b420af5 Issue #2812811 by Sam152, timmillwood, amateescu, alexpott, catch: Use EntityPublishedInterface during moderation of entities to add support beyond nodes 2017-01-18 17:38:15 +00:00
Alex Pott 5dd7448232 Issue #2844007 by Sam152: Decide if the moderation controls form should set a revision log message 2017-01-17 15:17:47 +00:00
Alex Pott 3bd9f365cf Issue #2842040 by Alan-H, timmillwood: Remove unused code from Content Moderation handlers 2017-01-17 14:07:19 +00:00
Alex Pott 8af814f70d Issue #2843678 by Sam152: Remove dead code in hook_entity_bundle_field_info_alter 2017-01-16 19:15:11 +00:00
Alex Pott 62f81217bd Issue #2843663 by Sam152: Add missing test coverage for content_moderation permissions callback 2017-01-16 10:44:11 +00:00
Alex Pott a76eef7ea3 Issue #2828438 by Adita, timmillwood, Sam152, rachel_norfolk, jp.stacey: Exception when adding tab to a node managed by content moderation 2017-01-16 09:34:11 +00:00
Alex Pott 82f166868b Issue #2799785 by amateescu, timmillwood, dawehner, alexpott: Entity types with non-config bundles can not be moderated 2017-01-13 09:36:42 +00:00
Alex Pott 6b34291332 Issue #2809123 by timmillwood, Sam152: Reverting a revision doesn't keep moderation state 2017-01-12 19:39:19 +00:00
Nathaniel Catchpole 3d72d4be83 Issue #2194783 by Berdir, vprocessor, andypost, Antonnavi, tim.plunkett, Crell, Mile23, catch: Rename EntityTypeInterface::isSubclassOf() to ::entityClassImplements() 2017-01-11 22:06:48 +00:00
Alex Pott 4491a19592 Issue #2842063 by Sam152: Fix undefined index when creating a new content_moderation workflow type and expand test coverage for content_moderation WorkflowType plugin 2017-01-10 14:07:51 +00:00
Alex Pott ac5ccef90a Issue #2818267 by vanessakovalsky, timmillwood, shashikant_chauhan, Sam152: Remove delete link from Manage moderation settings page 2017-01-06 13:14:42 +00:00
Alex Pott ce7cf174eb Issue #2561115 by michaellenahan, Lendude, cilefen, lomasr, amit.drupal, Gábor Hojtsy, dawehner, ifrik: Use 'Filter' for exposed filter button text in new views and new installations (instead of 'Apply') 2017-01-05 21:51:09 +00:00
Alex Pott 4739b5cab0 Issue #2825579 by Sam152, timmillwood, gcb: Unable to Publish/Unpublish from Content Admin Screen when content_moderation enabled 2017-01-05 10:35:57 +00:00
xjm b53de59ae2 Revert "Issue #2828438 by Adita, Sam152, rachel_norfolk, timmillwood, jp.stacey: Exception when adding tab to a node managed by content moderation"
This reverts commit debf5fcc14.
2016-12-15 16:03:18 -06:00
Nathaniel Catchpole debf5fcc14 Issue #2828438 by Adita, Sam152, rachel_norfolk, timmillwood, jp.stacey: Exception when adding tab to a node managed by content moderation 2016-12-15 21:33:01 +00:00
Nathaniel Catchpole 0f13905571 Issue #2779647 by alexpott, Sam152, catch, scookie, yoroy, pericxc, timmillwood, tacituseu, jhedstrom, xjm, bojanz, tstoeckler: Add a workflow component, ui module, and implement it in content moderation 2016-12-13 12:34:20 +00:00
Nathaniel Catchpole 235bfca5ae Issue #2795045 by legovaer, kmoll: Make SchemaCheckTestTrait available outside of the config module 2016-11-21 13:15:27 +00:00
Alex Pott fa34234e58 Issue #2824912 by Sam152, chr.fritsch, timmillwood: The moderation_state field incorrectly reports being read-only 2016-11-10 10:44:53 +00:00
Alex Pott 144fe782a2 Issue #2787881 by timmillwood, amateescu, Sam152, dawehner, alexpott: Moderating a non-translatable entity type throws exception 2016-11-08 10:15:04 +00:00
Alex Pott c3cad9bd39 Issue #2821265 by tim.plunkett: Allow #entity_builders to use the ::Callback shorthand 2016-10-26 11:10:22 -07:00
Nathaniel Catchpole 962eddec66 Issue #2796581 by tim.plunkett, jibran, catch, swentel, alexpott, cilefen, xjm, amateescu: Fields must store their region in entity displays 2016-10-25 22:21:33 +01:00
Nathaniel Catchpole 1029c23ef1 Issue #2784357 by alexpott: Remove ModerationInformationInterface::loadBundleEntity() 2016-10-14 17:37:36 +01:00
Alex Pott c13f31cd0b Issue #2817565 by Sam152: Bugs in ModerationStateFieldItemList mean it can never be used with a field formatter 2016-10-14 10:24:21 +01:00
Alex Pott b0abe17943 Issue #2813661 by evaldask: A fatal error occurred: Field changed is unknown 2016-10-11 23:16:22 +01:00
Nathaniel Catchpole 59e527c52c Issue #2811927 by timmillwood, alexpott: Disabling Content moderation on a bundle, removes the ability to perform create content on that bundle 2016-10-10 13:22:15 +01:00
Alex Pott aef08f50f3 Issue #2802301 by tstoeckler: Use route providers for ModerationState(|Transition) 2016-09-22 15:23:33 +01:00
Alex Pott 57d9909de5 Issue #2801855 by dbt102: Add_content_moderation_help 2016-09-22 15:20:58 +01:00
Alex Pott 57bbb6f565 Issue #2788487 by timmillwood: Manage moderation tab not displaying on bundle admin 2016-08-26 14:13:05 +01:00
Alex Pott fe33c4b9e7 Issue #2781207 by timmillwood, dawehner: Use class resolver for abstracted Content Moderation classes 2016-08-18 13:39:57 +01:00
Alex Pott 08b7a3fbc8 Issue #2783393 by Mile23: Fix 'Drupal.Commenting.FunctionComment.IncorrectParamVarName' coding standard 2016-08-18 10:38:31 +01:00
Nathaniel Catchpole 3c1ce586ef Issue #2784341 by alexpott: Remove form functions from ModerationInterface
(cherry picked from commit 0d00a94b139602d9280360dc2977dbc989c6ef1e)
(cherry picked from commit 04abf4c067)
2016-08-17 12:50:14 +01:00
Nathaniel Catchpole ce17b23724 Issue #2779939 by alexpott: Cleanup the ModerationInformationInterface 2016-08-15 22:19:00 +01:00
Nathaniel Catchpole 45b845de5e Issue #2781179 by timmillwood: Remove service from class docblocks 2016-08-12 12:31:34 +01:00
Alex Pott ffe7d13ab1 Issue #2780705 by timmillwood: Fix "Manage moderation" dropbutton on /admin/structure/types 2016-08-08 20:35:57 +01:00
Nathaniel Catchpole bc00f081e6 Issue #2725533 by timmillwood, alexpott, amateescu, webchick, dixon_, larowlan, dawehner, catch, Crell, Bojhan, jibran, Wim Leers, agentrickard, Berdir: Add experimental content_moderation module 2016-08-08 13:26:31 +01:00