Hide the create library for non-staff users when DISABLE_COURSE_CREATION - #16447
Conversation
|
Thanks for the pull request, @OmarIthawi! I've created OSPR-1995 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will still be done via the GitHub pull request interface. As a reminder, our process documentation is here. |
16d4d5e to
e94878a
Compare
e94878a to
cb5e76e
Compare
|
@antoviaque since you were interested in that bug. |
|
@edx/educator-devs this seems easy enough? |
|
@OmarIthawi 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
|
@nedbat @nasthagiri Thank you! That's a 5 star PR triage 😃 |
|
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production on Wednesday, November 08, 2017. |
|
EdX Release Notice: This PR has been deployed to the production environment. |
|
This PR is causing production issues, see https://openedx.atlassian.net/browse/EDUCATOR-1724. The problem is that this setting to disable course creation has also inadvertently blocked library GETs. I've created https://github.com/edx/edx-platform/pull/16522 to possibly address the issue; we need to either push that out or revert this PR before the weekend. |
Revert "Merge pull request #16447 from appsembler/omar/hide-library-b…
Revert "Merge pull request #16447 from appsembler/omar/hide-library-b…
|
Sorry about the production errors @efischer19. Looks like you've already went with the revert 👍. But if you'd like to bring this back again I'm happy to help! |
…ibrary-button"" This reverts commit 7696727.
…ibrary-button"" This reverts commit 7696727.
…/hide-library-button"" This reverts commit 7696727.
* stv/fix/library: Move library creator checks to POST-only Revert "Revert "Merge pull request openedx#16447 from appsembler/omar/hide-library-button"" Revert "Merge pull request openedx#16447 from appsembler/omar/hide-library-button" Hide the create library for non-staff users when DISABLE_COURSE_CREATION
* origin/master: Add timestamp to Get Student Responses Report. Move library creator checks to POST-only Revert "Revert "Merge pull request openedx#16447 from appsembler/omar/hide-library-button"" Revert "Merge pull request openedx#16447 from appsembler/omar/hide-library-button" Hide the create library for non-staff users when DISABLE_COURSE_CREATION
* origin/rc: (1175 commits) Update Free Text Response to v0.3.1 Add timestamp to Get Student Responses Report. Move library creator checks to POST-only Revert "Revert "Merge pull request openedx#16447 from appsembler/omar/hide-library-button"" Revert "Merge pull request openedx#16447 from appsembler/omar/hide-library-button" Hide the create library for non-staff users when DISABLE_COURSE_CREATION Fix inline analytics close button styling. Fix eslint errors in account settings js Push version of Free Text Response to v0.3.0 Fix errors with enrollment api. Revive account settings fork for uneditable fields Check the correct setting to hide login button Repatriate test that was erroneously deleted. Efficiency improvement for EnrollmentRosterView and helper method. Remove spaces for pep8 Fix syntax error with enrollment filter Fix problems with grade reports after removing anonymous|lti Remove fake users from Insructor Dash enrollment count. Exclude unauthenticated and lti users from the grade reports. Add course start date for email context lost in Ficus merge Add course start date for email context lost in Ficus merge Add missing keywords to validator lost from Ficus merge Remove HTML template version of the GradeMe Button Update JS translation strings for Ginkgo Update translation config for consolidated tos and honor Install Stanford ORA2 from master, v1.4.7 Fix keyword sub to work with new course updates Try fix circle Unfork grade report Cleanup LMS skip decorator Pin eslint-config-edx-es5 to older, version Bump edx-proctoring to 0.19.1 Bump ux-pattern-library Bump Stanford XBlocks w/ lazy translation Bump Peer Instruction XBlock to edX version updated correct map when new score is calculated Fixed score update on rescore EDUCATOR-165 instructor task and UI for overriding learner grades. Reroute help link to FAQ marketing link Add setting to support ORA2 default django storage Remove edx text from Facebook sharing Unfork course-about-sidebar to add back facebook Force hint notification to take up entire width. Stop hard-coding @edxonline twitter username Float staff buttons to stop them from disappearing Restore "rescore only if score improves" messaging Toggle donate/blog footer links Remove course about sidebar optional include Add sneakpeek tos bar to bottom of course nav Center all login/register forms Move sneakpeek SASS to separate file Fix bulk captions utility Add more multi-processor testing Unfork privacy policy on registration Monkey-patch global footer text and links Remove Stanford Research disclaimer from dashboard Hide extraneous links from navbar Restore Stanford's SOA text in account settings Fix progress page Use unicode strings in LTI test Synchronize query counts Import ugettext lazily Restore Stanford's age restriction Fix python imports post-merge Restore Stanford changes to course tile listing Reintroduce Stanford navigation changes Add Stanford settings for devstack_docker Consolidate enrollment_api code Remove LTI tests that build on top of flaky permission alert tests. Remove flaky lti scenario. Upgrade setuptools to avoid bug while installing of OpenStack requirements RE: pypa/setuptools#951 Fix safe_lxml. SEC-338 Force early installs of Django and nltk to avoid pip confusion GMT -> UTC in test Pin Jasmine version to avoid failing js tests A new favicon for Open edX Fix i18n for the page title in course tabs Pin moment dependency Use django storage mechanism to determine file size Adds THIRD_PARTY_AUTH_HINT to SiteConfiguration and to site-wide setting.FEATURES Allow i18n strings to be scraped from openedx/features Host poisoning vulnerability fix Strip `c` from `.pyc` for error message comparison Dont fetch caption on getting translations This fixes the endless loop of fetchCaptions ajax requests. fetchCaption on error calls fetchAvailableTranslations which again calls fetchCaption on success and so on. We don't see any significance for calling fetchCaption in fetchAvailableTranslations. Respect `BATCH_ENROLLMENT_NOTIFY_USERS_DEFAULT` setting for subsequent batches Move the user_attribute creation for site from within the user creation transaction to outside learner-1521 EDUCATOR-1029 | More defensive version of ZeroSubsectionGrade.problem_scores EDUCATOR-915: force subsection grades to update when course grade updates Collect translation strings from the openedx folder Upgrade xblock-lti-consumer upgrade jenkins node version to 6.11.1 Use ORA2 django storage on openstack and devstack. Add course import REST API to Studio Don't allow any user to create courses by default Set the MEDIA_ROOT and MEDIA_URL settings in the cms.envs.aws module Switch to forks of certain third-party repos Fix styling on non-Bootstrap pages Add Ginkgo translation resources on Transifex Set the RELEASE_LINE to ginkgo Updated Django Waffle to 0.12.0 ...
* origin/master: Add missing import Handle out-of-memory exception on Sysadmin Courses Add optional includes for Studio Use custom search filter generator to show course tiles for discovery search Fix search filter generator to search over all courses instead of none if no course provided Push version of Submit & Compare xblock to 0.7.0 Add an optional include to the bottom of the instructor dashboard Fixed drop down buttons on header of bulk settings page Bump version for xblocks (qualtrics and image-modal) Update enrollment email templates Revert "Fix error on moving component when qualtrics xblock present." Fix error on moving component when qualtrics xblock present. EDUCATOR-3930 fix video player speed adjustments EDUCATOR-3930 fix video player speed adjustments Push Free Text Response xblock to v0.4.0 Free Text Xblock needs v1.1.1 of xblock-utils Install version 0.1.7 of invideoquix xblock Update version of Platform Tour xBlock to v1.0.3 Update version of Platform Tour xBlock to v1.0.3 Update version of Platform Tour to 1.0.2 Define egg version for Platform Tour xblock Centre X for inline-analytics. Update Platform Tour xBlock to v1.0.1 Add Platform Tour xBlock to requirements Move CONTENT_VISIBILITY_NOTICE to theme Remove useless comment fork Revert "Split Studio Home page" Update Free Text Response to v0.3.1 Update Free Text Response to v0.3.1 Add timestamp to Get Student Responses Report. Move library creator checks to POST-only Revert "Revert "Merge pull request openedx#16447 from appsembler/omar/hide-library-button"" Revert "Merge pull request openedx#16447 from appsembler/omar/hide-library-button" Hide the create library for non-staff users when DISABLE_COURSE_CREATION Fix inline analytics close button styling. Fix eslint errors in account settings js Push version of Free Text Response to v0.3.0 Fix errors with enrollment api. Revive account settings fork for uneditable fields Check the correct setting to hide login button Repatriate test that was erroneously deleted. Efficiency improvement for EnrollmentRosterView and helper method. Remove spaces for pep8 Fix syntax error with enrollment filter Fix problems with grade reports after removing anonymous|lti Remove fake users from Insructor Dash enrollment count. Exclude unauthenticated and lti users from the grade reports. Add course start date for email context lost in Ficus merge Add course start date for email context lost in Ficus merge Add missing keywords to validator lost from Ficus merge Consolidate enrollment_api code
This is a tiny bug that has been reported a while ago: