Skip to content

feat: Create content in library permission added to API response#34934

Merged
bradenmacdonald merged 7 commits intoopenedx:masterfrom
open-craft:chris/FAL-3754-permission-in-library
Jun 24, 2024
Merged

feat: Create content in library permission added to API response#34934
bradenmacdonald merged 7 commits intoopenedx:masterfrom
open-craft:chris/FAL-3754-permission-in-library

Conversation

@ChrisChV
Copy link
Copy Markdown
Contributor

@ChrisChV ChrisChV commented Jun 6, 2024

Description

This PR includes this changes:

  • Comment the code that uses collection_uuid to create libraries.
  • Add create content in library permission on library details response.

Supporting information

Testing instructions

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Jun 6, 2024
@openedx-webhooks
Copy link
Copy Markdown

Thanks for the pull request, @ChrisChV! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

Comment thread openedx/core/djangoapps/content_libraries/api.py
Comment thread openedx/core/djangoapps/content_libraries/api.py Outdated
Comment thread openedx/core/djangoapps/content_libraries/views.py Outdated
@ChrisChV ChrisChV force-pushed the chris/FAL-3754-permission-in-library branch from a5c44cc to 5f0ecef Compare June 18, 2024 20:37
Copy link
Copy Markdown
Contributor

@rpenido rpenido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 @ChrisChV ! Good work.
I added a nit, but not blocking.

  • I tested this: I followed the testing from the course-authoring PR
  • I read through the code and considered the security, stability and performance implications of the changes.
  • Includes tests for bugfixes and/or features added.

Comment thread openedx/core/djangoapps/content_libraries/serializers.py Outdated
Comment thread openedx/core/djangoapps/content_libraries/views.py Outdated
Comment thread openedx/core/djangoapps/content_libraries/tests/base.py Outdated
@bradenmacdonald bradenmacdonald merged commit 4fd60c4 into openedx:master Jun 24, 2024
@bradenmacdonald bradenmacdonald deleted the chris/FAL-3754-permission-in-library branch June 24, 2024 19:15
@openedx-webhooks
Copy link
Copy Markdown

@ChrisChV 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

@edx-pipeline-bot
Copy link
Copy Markdown
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

slug = serializers.CharField(source="key.slug", validators=(validate_unicode_slug, ))
bundle_uuid = serializers.UUIDField(format='hex_verbose', read_only=True)
collection_uuid = serializers.UUIDField(format='hex_verbose', write_only=True)
#collection_uuid = serializers.UUIDField(format='hex_verbose', write_only=True)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChrisChV @bradenmacdonald: Did you mean to leave a commented out line of code? Shouldn't it just be deleted?

I only happened to look at this PR because the tests failed on master (at first) due to some issue uploading an artifact, but it passed after I re-ran (or maybe after Braden had)?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, just an oversight on my part. I should have asked for that line to be deleted during the review. We're doing lots of work in this area though, so we'll remove it in a follow-up pass.

@edx-pipeline-bot
Copy link
Copy Markdown
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

@itsjeyd itsjeyd removed the needs reviewer assigned PR needs to be (re-)assigned a new reviewer label Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

open-source-contribution PR author is not from Axim or 2U

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

8 participants