Remove drupal_cms_blog from the main recipe, make optional instead

Created on 13 September 2024, about 2 months ago
Updated 20 September 2024, about 1 month ago

Problem/Motivation

The blog recipe was applied by default in the prototype, but now that we have the updated installer we can make it optional as intended.

πŸ“Œ Task
Status

Needs work

Component

Track: Blog

Created by

πŸ‡¦πŸ‡ΊAustralia pameeela

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @pameeela
  • Status changed to Needs review about 2 months ago
  • πŸ‡¦πŸ‡ΊAustralia pameeela

    No rush on this, if the demo folks would rather wait to commit this until after so it matches the recordings, that's fine!

  • Pipeline finished with Failed
    about 2 months ago
    Total: 309s
    #281729
  • Status changed to Needs work about 2 months ago
  • πŸ‡¦πŸ‡ΊAustralia pameeela

    This is failing, I think because core expects there to be a blog content type, but have not had a chance to investigate.

  • Pipeline finished with Failed
    about 2 months ago
    Total: 418s
    #284181
  • Pipeline finished with Failed
    about 2 months ago
    Total: 329s
    #284196
  • Pipeline finished with Failed
    about 2 months ago
    Total: 332s
    #284198
  • Status changed to Closed: duplicate about 1 month ago
  • πŸ‡¦πŸ‡ΊAustralia pameeela

    Looks like this is already done :)

  • Status changed to Needs work about 1 month ago
  • πŸ‡¦πŸ‡ΊAustralia pameeela

    Need coffee, not done, just rebuilt with this branch checked out.

  • Assigned to L_VanDamme
  • πŸ‡¦πŸ‡ΊAustralia pameeela

    @l_vandamme are able to look at this? Not sure if this is relevant also, since we will remove this field anyway? #3475460: Remove extra SEO description from blog post β†’

  • Hi @pameeela, we have a fixture that auto-populate content-type blog with data and that fixture live outside drupal_cms_blog

    drupal_cms/content/node/e939b485-ca10-4061-9036-3d6d394d7214.yml
    ...
      field_description:
        -
          value: "Imagine traveling to a place no one has ever been before, far away from home. That's what space exploration is all about. We want to learn more about planets, moons, and stars, and see what secrets they hold."
    ...
    

    in order to remove drupal_cms_blog, we need to move that file from drupal_cms into drupal_cms_blog

  • More issues that will need to be resolved before removing drupal_cms_blog from the default recipe:

    1. move config > actions > node.type.blog to drupal_cms_blog, currently it reside in drupal_cms
    2. same for config > actions > user.role.content_editor > grantPermissionsForEachTaxonomyVocabulary, because it depend on core/recipes/tags_taxonomy which is part of drupal_cms_blog (This prevent running into undefined plugin issue)
  • Merge request !97Make blog install optional β†’ (Merged) created by pameeela
  • πŸ‡¦πŸ‡ΊAustralia pameeela

    Yes, those changes are already done on the branch.

  • Pipeline finished with Failed
    about 1 month ago
    Total: 211s
    #287756
  • Pipeline finished with Failed
    about 1 month ago
    Total: 354s
    #287762
  • Pipeline finished with Failed
    about 1 month ago
    Total: 493s
    #287761
  • Pipeline finished with Failed
    about 1 month ago
    #287765
  • Pipeline finished with Failed
    about 1 month ago
    Total: 612s
    #287764
  • πŸ‡¦πŸ‡ΊAustralia pameeela

    Hmm, the tests are now failing. But the recipe applies fine, so not sure what's up with that.

  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    The problem is that drupal_cms_blog has config actions targeting the content_editor role, but that doesn't exist because the recipe doesn't require it. The solution is to add core/recipes/content_editor_role to the recipes list in recipe.yml.

  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    A few more points of feedback.

  • Pipeline finished with Failed
    about 1 month ago
    Total: 507s
    #291115
  • Pipeline finished with Failed
    about 1 month ago
    Total: 507s
    #291116
  • Pipeline finished with Canceled
    about 1 month ago
    Total: 65s
    #291128
  • Pipeline finished with Canceled
    about 1 month ago
    Total: 65s
    #291129
  • Hi !

    I applied @phenaproxima suggestions, I also added drupal_cms_blog to project_browser settings

  • Pipeline finished with Failed
    about 1 month ago
    Total: 506s
    #291132
  • Pipeline finished with Failed
    about 1 month ago
    Total: 550s
    #291131
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    Tests are still failing; see #14 for why.

  • First commit to issue fork.
  • Pipeline finished with Success
    about 1 month ago
    Total: 762s
    #294103
  • Pipeline finished with Success
    about 1 month ago
    Total: 575s
    #294117
  • Pipeline finished with Success
    about 1 month ago
    Total: 611s
    #294118
  • πŸ‡§πŸ‡ͺBelgium L_VanDamme

    @phenaproxima I removed the dependency on the content editor role. I guess there is not really a reason for a blog feature to be opinionated on user roles anyway. Also removed a leftover dependency in the drupal_cms content item.

    Can you have a look again?

  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    I see no problems with this MR as it stands. Tests pass.

    @l_vandamme pointed out that the test coverage is a bit weak now because we're not actually testing that these recipes can apply on top of the base recipe, and that's a great, great point. He will open a separate issue for me to address that problem.

    In the meantime, though, this is ready to go.

  • Pipeline finished with Skipped
    about 1 month ago
    #294619
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    Yay! Merged into 0.x. Great to have this done - thank you, everyone!

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024