-
Notifications
You must be signed in to change notification settings - Fork 75
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
Publish Component Button #1353
Comments
There's no Learning Core API to publish exactly one thing, but pe_key = pe_key_from_usage_key(usage_key) # I'm just making this up, but we have a mapping somewhere
drafts_to_publish = authoring.get_all_drafts(learning_package_id).filter(entity__key=pe_key)
authoring.publish_drafts(learning_package_id, drafts_to_publish, published_by=user.id) |
@ormsbee I think you mean |
@DanielVZ96: Yes, I meant |
This function is needed for publishing single components and is specifically required for openedx/frontend-app-authoring#1353.
feat: make publish_from_drafts public (version to 0.16.1) This function is needed for publishing single components and is specifically required for openedx/frontend-app-authoring#1353.
@jmakowski1123 @sdaitzman @marcotuts This is ready for AC testing on the sandbox. |
The Publish component button (in the manage tab of the component sidebar) should be clickable in the following scenarios:
The Publish component button should not be clickable (grayed out, but still visible) in the following scenarios:
Expected behavior:
Syncing:
The text was updated successfully, but these errors were encountered: