-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic CRUD REST Endpoints for units in content libraries [FC-0083] #36371
Conversation
Thanks for the pull request, @bradenmacdonald! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
de946eb
to
55d9b34
Compare
55d9b34
to
bce12f4
Compare
bce12f4
to
a5fa375
Compare
40f8988
to
ec7c500
Compare
ec7c500
to
9383d5f
Compare
openedx/core/djangoapps/content_libraries/rest_api/serializers.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Over on the opaque-keys PR, I was assured that LibraryContainerLocators did not need to be UsageKeys 😄 But on this PR, I see that we're calling them usage_keys in various places.
We need to be consistent. Either these are not usage keys and we shouldn't call them as such, or they are usage keys and we should update opaque-keys to make LibraryContainerLocator explicitly subclass UsageKey.
Would it be simpler to just use the container UUIDs in the REST API, instead of keys? |
since container keys are locators, not usage keys
Agreed -- please see 7081488. Note that I chose to leave the container search document |
Currently, we're slugifying the user's provided If we're going to use the UUID in the LibraryContainerLocator instead of the slug, then I don't think there's any reason to slugify the title either, but will do it whichever way you think is best. |
ba75452
to
2cd7532
Compare
Hi @kdmccormick and @ormsbee -- could you have another look at this PR to see if I've addressed your concerns here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a thorough review, but my concern is resolved, so 👍🏻
If you want me to test and review thoroughly, let me know and I can do that!
Thanks @kdmccormick ! cf e0f4380
I'm happy with @rpenido and @navinkarkera 's reviews, but thank you for offering. I've got some follow-up work to do here in later PRs though, so if there's anything bugging you, please let me know :) |
@pomegranited: I'm good with trusting your existing reviewers on this. Thank you. |
* feat: adds python and REST APIs to update a container's display_name * refactor: adds _get_container method to api to reduce code duplication * feat: adds python and REST APIs to delete a container * test: add container permission tests
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
2U Release Notice: This PR has been deployed to the edX production environment. |
1 similar comment
2U Release Notice: This PR has been deployed to the edX production environment. |
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
2U Release Notice: This PR has been deployed to the edX production environment. |
1 similar comment
2U Release Notice: This PR has been deployed to the edX production environment. |
Description
Implements openedx/frontend-app-authoring#1703
This PR adds python and REST APIs for creating Units in content libraries.
Supporting information
Depends on:
LibraryContainerLocator
for Library Containers [FC-0083] opaque-keys#369Includes commits from:
Testing instructions
opaque-keys
to this list intutor
(we should upstream that fix), you can just runtutor mounts add opaque-keys
, then from within yourcms
container make sure to runpip install -e /mnt/opaque-keys
after checking out the correct branch, to refresh the entry points.tutor dev exec cms bash
DJANGO_SETTINGS_MODULE=cms.envs.tutor.test pytest openedx/core/djangoapps/content_libraries/ openedx/core/djangoapps/content/search/tests/ -x
Status
reindex_studio
command.Out of scope for now:
Deadline
ASAP
Private ref: FAL-4052