Conversation
OpenAPI ChangesShow/hide changes |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What are the relevant tickets?
n/a
Description (What does it do?)
Needed a very large contract to test out some poor performance with the
v2/coursesAPI, so I asked Claude to come up with something and here it is.This creates a large B2B contract setup:
Courses are created without touching edX, by design. The API testing that was being done didn't depend on edX, so this doesn't either. It does mean that enrolling will "fail" (because there's no course to enroll in).
This is pretty bare-bones as is - it will always create the same set of courses. It doesn't create any CMS pages for anything either; no financial assistance forms or tiers, either. (The public course runs are also not necessarily purchasable as-is; you'll have to update the runs and the products if you want them to be.)
How can this be tested?
Run the command. It should do the things described.
Additional Context
Draft because it'd be better to parametrize some of this stuff and add in a few more options before it undergoes review. But this could be useful now so I thought it'd be better to get it off of my own computer and somewhere where it can be lifed out for others to use.
You should be able grab this out of here and drop it into the right folder to use it. Or you can do
git cherry-pick -n dcef1d20c030922f372729c7e02e2ea88d92a26ebut be advised that this will stage this for committing.