This module recreates the Block Content for an exported Custom Block on cache rebuild.
It DOES NOT exports the content, the block is created as a placeholder, with no content.

Actually there is no way to recreate a custom block for an exported block, it needs to have a specific uuid and this can't be done via UI.

A custom block is made of two entities, one for the placement and one for the actual content. Only the actual placement can be exported with cmi. The content can not. This module try to resolve this problem by creating a new content to fill gap.
There is an open discussion about this: https://www.drupal.org/node/2756331

Configuration

  • No configuration is needed, just enable the module.

Project link

https://www.drupal.org/project/recreate_block_content

Git instructions

git clone --branch 8.x-2.x https://git.drupalcode.org/project/recreate_block_content.git

PAReview checklist

https://pareview.sh/pareview/https-git.drupal.org-project-recreate_block...

Comments

Joao Sausen created an issue. See original summary.

PA robot’s picture

Multiple Applications
It appears that there have been multiple project applications opened under your username:

Project 1: https://www.drupal.org/node/2873432

Project 2: https://www.drupal.org/node/2796023

As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).

If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.

I'm a robot and this is an automated message from Project Applications Scraper.

PA robot’s picture

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)

Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).

I'm a robot and this is an automated message from Project Applications Scraper.

nimbfire@gmail.com’s picture

Issue summary: View changes
semjuel’s picture

Automated Review

pareview.sh is showing 1 warning. It’s not a reason to block the application, but you should follow Drupal Coding Standard as closely as possible. See more details at https://pareview.sh/node/2124.

Manual Review

Individual user account
[Yes: Follows] the guidelines for individual user accounts.

No duplication
[No: Causes] module duplication and/or fragmentation.

Master Branch
[Yes: Follows] the guidelines for master branch.

Licensing
[Yes: Follows] the licensing requirements.

3rd party assets/code
[Yes: Follows] the guidelines for 3rd party assets/code.

README.txt/README.md
[No: Does not follow] - please see README Template

Code long/complex enough for review
[No: Does not follow] see the guidelines for project length and complexity. You module has less than five function or class method definitions and the PHP source code is less than 120 lines long.

Secure code
[Yes: Meets the security requirements].

semjuel’s picture

Status: Active » Needs work
Joao Sausen’s picture

Status: Needs work » Needs review

Thanks, I fixed the issue.

sleitner’s picture

Status: Needs review » Needs work

There are some issues, see details: https://pareview.sh/pareview/https-git.drupal.org-project-recreate_block...

Review of the 8.x-2.x branch (commit 95f167d):

  • Your README.txt does not follow best practices (headings need to be uppercase).
  • DrupalPractice has found some issues with your code, but could be false positives.
  • No automated test cases were found, did you consider writing PHPUnit tests? This is not a requirement but encouraged for professional software development.

This automated report was generated with PAReview.sh, your friendly project application review script.

apaderno’s picture

Status: Needs work » Closed (won't fix)

If you are still working on this application, you should fix all known problems and set the status to Needs review. (See also the project application workflow.)
Please don't change status of this application if you aren't sure you have time to dedicate to this application, or it will be closed again as won't fix.

I am closing this application due to lack of activity.

Joao Sausen’s picture

Issue summary: View changes
Joao Sausen’s picture

Status: Closed (won't fix) » Needs review

I fixed the bugs and updated the issue description.

apaderno’s picture

Issue summary: View changes
klausi’s picture

Status: Needs review » Fixed

Looks good to me.

Thanks for your contribution, Joao!

I updated your account so you can opt into security advisory coverage now.

Here are some recommended readings to help with excellent maintainership:

You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!

Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

Thanks to the dedicated reviewer(s) as well.

Joao Sausen’s picture

Thanks klausi. I read most of that documentation already and I'm on irc too.
Again, thanks.

Status: Fixed » Closed (fixed)

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