Skip to content

Redesign / Rake task to create content blocks of a space when an instance is upgraded #10747

@furilo

Description

@furilo

The redesign release (0.28) introduces a significant change in the home of a space (#10230 and others): it is formed from content blocks instead of the home showing predefined content. This means that content blocks have to be added to the home of a space for this home to show any content.

An existing process from a previous release won't have any content block defined, so ir order to not show empty spaces homes when an instance is upgraded, we are adding a rake task to populate the content blocks of existing spaces.

This task could be run by the admins which want to populate spaces homes with blocks when they upgraded. As such, this will have to be reflected in the upgrade instructions.

  • By default, the task will add the default blocks (discussing in Define initial content blocks when a process is created #10412 who will be the default blocks)
  • If passed an option as create_blocks_for_components, in addition it will create a block per component present in the space, using the weight of the components to order the content blocks

Metadata

Metadata

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions