[BD-14] SE-2717 Limit number of blocks allowed in blockstore-based libraries

Description

This PR limits the number of XBlocks which can be a part of content libraries, to ensure predictability and avoid problematic load issues. It defaults to 1000 blocks limit right now, which can be configured if needed.

*Testing instructions*:
This PR changes a blockstore based API, which is not part of the devstack yet. To test this:

  • From the blockstore directory, run `make testserver` to start a test-specific instance.

  • From `make studio-shell` run: `EDXAPP_RUN_BLOCKSTORE_TESTS=1 python -Wd -m pytest --ds=cms.envs.test openedx/core/djangoapps/content_libraries/tests/`

*Reviewers*

  • [ ] @bradenmacdonald

  • [ ] edX reviewer[s] TBD

Assignee

Kyle McCormick

Reporter

Open Source Pull Request Bot

Github Latest Action by edX

Yes

Github PR Last Updated At

Jul 13, 2020, 7:49 PM

Github PR Last Updated By

kdmccormick

Github Organization

None

Customer

PR Number

24,276

Repo

edx/edx-platform

Contributor Name

Sid Verma

Github Latest Action

pull_request: closed

Platform Map Area (Levels 1 & 2)

Educator Experiences - Library Authoring

Platform Map Area (Levels 3 & 4)

None

Blended Project Status Page

None

Sprint

None

Priority

Unset
Configure