openedx / openedx/openedx-platform

MAX_BLOCKS_PER_CONTENT_LIBRARY limit is not used when creating containers

Open
#37,697 1 comment 0 reactions 1 assignee View on GitHub

@ChrisChV is already working on this.

Since Nov 26, 2025.

Dominant language
Python
Stars
8.2k
Forks
4.4k
Avg merge
6d 18h
Merged PRs (30d)
42

Description

Steps to reproduce

  • Update MAX_BLOCKS_PER_CONTENT_LIBRARY to a lower value, like 5
  • Create components until reaching the limit
  • Verify that you can't create more components.
  • Create any container
  • Bug: The container is created.
  • Expected: Show an error after creating a container when the limit is reached.
  • Note: While creating a component, the containers are counted to verify the MAX_BLOCKS_PER_CONTENT_LIBRARY

Also, it is needed to rename these settings to MAX_ITEMS_PER_CONTENT_LIBRARY

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.