Skip to content

Add loader if channel is being published and community library side panel is open. #5452

@AlexVelezLl

Description

@AlexVelezLl

This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Overview

A potential user workflow could involve publishing a channel to include or fix any content, and then, immediately after, resubmit the channel to the Community Library. However, there is a small problem with this: If a user opens the submit to the community library side panel, and the publish hasn't yet synced to the backend, then the channel metadata that is loaded on component mount will be outdated because it would have loaded the metadata of the previous version, and if the user creates a submission before the publish change has been synced, then the submission will point to the previous channel version instead of pointing to the version the user expects.

Technical details

  • If the channel's publishing field is set to true when the side panel is mounted, a "Channel is being published" loader should appear before displaying the channel metadata and side panel inputs.
  • Observe with a live query the channel publishing field until it is set to false, then perform the proper initial data loading process.

Acceptance criteria

  • A new Community Library Submission could not be created while the channel is being published.
  • Unit tests have been added.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions