Skip to content

feat: Add enable_authz_course_authoring flag to course_waffle_flags endpoint#37990

Merged
wgu-taylor-payne merged 2 commits intoopenedx:masterfrom
WGU-Open-edX:rod/authz_course_authoring_flag_api
Feb 10, 2026
Merged

feat: Add enable_authz_course_authoring flag to course_waffle_flags endpoint#37990
wgu-taylor-payne merged 2 commits intoopenedx:masterfrom
WGU-Open-edX:rod/authz_course_authoring_flag_api

Conversation

@rodmgwgu
Copy link
Contributor

@rodmgwgu rodmgwgu commented Feb 9, 2026

Description

Related issue: openedx/frontend-app-authoring#2831

As part of the AuthZ for Course Authoring project, a feature flag was added that allows enabling the new authorization engine selectively on specific courses, orgs or the whole instance.

In order to honor the new granular permissions in the frontend, the code at frontend-app-authoring will need to know if the flag is enabled for a specific course before querying for permissions to decide to show or hide parts of the UI.

This PR adds the value of the authz.enable_course_authoring Waffle flag to the /api/contentstore/v1/course_waffle_flags and /api/contentstore/v1/course_waffle_flags/(course_key) endpoints, which are currently used by the frontend for other flags.

Supporting information

Related issue: openedx/frontend-app-authoring#2831

Testing instructions

Flag enabled for a specific course:

  1. In the Django Admin, go to Home > Waffle_Utils > Waffle flag course overrides (/admin/waffle_utils/waffleflagcourseoverridemodel/)
  2. Click on "ADD WAFFLE FLAG COURSE OVERRIDE"
  3. Set Waffle flag to "authz.enable_course_authoring"
  4. Set Course id to the desired course key
  5. Set Override choice to "Force On"
  6. Check the "Enabled" box
  7. Click "Save"
  8. Do an authorized request to GET /api/contentstore/v1/course_waffle_flags
    • Response should have the following value:
       {
       	...
       	"enable_authz_course_authoring": false
       }
  9. Do an authorized request to GET /api/contentstore/v1/course_waffle_flags/(desired course_key)
    • Response should have the following value:
       {
       	...
       	"enable_authz_course_authoring": true
       }

Flag enabled for a specific ORG:

  1. Disable any other flag override you added before
  2. In the Django Admin, go to Home > Waffle_Utils > Add Waffle flag org override (/admin/waffle_utils/waffleflagorgoverridemodel/)
  3. Click on "ADD WAFFLE FLAG ORG OVERRIDE"
  4. Set Waffle flag to "authz.enable_course_authoring"
  5. Set Course id to the desired Org name matching the course you are using to test
  6. Set Override choice to "Force On"
  7. Check the "Enabled" box
  8. Click "Save"
  9. Do an authorized request to GET /api/contentstore/v1/course_waffle_flags
    • Response should have the following value:
       {
       	...
       	"enable_authz_course_authoring": false
       }
  10. Do an authorized request to GET /api/contentstore/v1/course_waffle_flags/(desired course_key)
    - Response should have the following value:
      {
      	...
      	"enable_authz_course_authoring": true
      }

Flag enabled globally:

  1. Disable any other flag override you added before
  2. In the Django Admin, go to Home > django-waffle > Flags (/admin/waffle/flag/)
  3. Click on ADD FLAG
  4. Set the Name to "authz.enable_course_authoring"
  5. Set Everyone: "Yes"
  6. Click "Save"
  7. Do an authorized request to GET /api/contentstore/v1/course_waffle_flags
    • Response should have the following value:
       {
       	...
       	"enable_authz_course_authoring": true
       }
  8. Do an authorized request to GET /api/contentstore/v1/course_waffle_flags/(desired course_key)
    • Response should have the following value:
       {
       	...
       	"enable_authz_course_authoring": true
       }

Deadline

Verawood release

@openedx-webhooks openedx-webhooks added open-source-contribution PR author is not from Axim or 2U core contributor PR author is a Core Contributor (who may or may not have write access to this repo). labels Feb 9, 2026
@openedx-webhooks
Copy link

openedx-webhooks commented Feb 9, 2026

Thanks for the pull request, @rodmgwgu!

This repository is currently maintained by @openedx/wg-maintenance-openedx-platform.

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 approval

If you haven't already, check this list to see if your contribution needs to go through the product review process.

  • If it does, you'll need to submit a product proposal for your contribution, and have it reviewed by the Product Working Group.
    • This process (including the steps you'll need to take) is documented here.
  • If it doesn't, simply proceed with the next step.
🔘 Provide context

To 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:

  • Dependencies

    This PR must be merged before / after / at the same time as ...

  • Blockers

    This PR is waiting for OEP-1234 to be accepted.

  • Timeline information

    This PR must be merged by XX date because ...

  • Partner information

    This is for a course on edx.org.

  • Supporting documentation
  • Relevant Open edX discussion forum threads
🔘 Get a green build

If one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green.

Details
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:

  • The size and impact of the changes that it introduces
  • The need for product review
  • Maintenance status of the parent repository

💡 As a result it may take up to several weeks or months to complete a review and merge your PR.

@github-project-automation github-project-automation bot moved this to Needs Triage in Contributions Feb 9, 2026
@rodmgwgu rodmgwgu force-pushed the rod/authz_course_authoring_flag_api branch from 3a963b0 to 545e158 Compare February 9, 2026 21:02
@mphilbrick211 mphilbrick211 added the mao-onboarding Reviewing this will help onboard devs from an Axim mission-aligned organization (MAO). label Feb 9, 2026
@mphilbrick211 mphilbrick211 moved this from Needs Triage to Waiting on Author in Contributions Feb 9, 2026
@rodmgwgu rodmgwgu marked this pull request as ready for review February 9, 2026 22:06
@rodmgwgu rodmgwgu force-pushed the rod/authz_course_authoring_flag_api branch from 545e158 to 8ccfb58 Compare February 9, 2026 22:20
@rodmgwgu rodmgwgu marked this pull request as draft February 9, 2026 22:46
@rodmgwgu rodmgwgu marked this pull request as ready for review February 10, 2026 15:05
Copy link
Contributor

@wgu-taylor-payne wgu-taylor-payne left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Copy link
Contributor

@bmtcril bmtcril left a comment

Choose a reason for hiding this comment

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

LGTM

@wgu-taylor-payne wgu-taylor-payne merged commit 24468b6 into openedx:master Feb 10, 2026
64 of 65 checks passed
@github-project-automation github-project-automation bot moved this from Waiting on Author to Done in Contributions Feb 10, 2026
pine919 pushed a commit to pine919/openedx-platform that referenced this pull request Feb 11, 2026
Ardiea added a commit to mitodl/edx-platform that referenced this pull request Feb 19, 2026
The behavior of the MariaDB backend has changed behavior for UUIDField
from a `CharField(32)` to an actual `uuid` type. This is not converted
automatically, which results in all writes to the affected columns to
error with a message about the data being too long. This is because the
actual string being written is a UUID with the `-` included, resulting in
a 36 character value which can't be inserted into a 32 character column.

fix: renamed migration to 0016

Update cms/djangoapps/contentstore/migrations/0016_mariadb_uuid_conversion.py

Co-authored-by: David Ormsbee <dave@axim.org>

refactor: remove deprecated sidebar toggles (openedx#37983)

DEPR ticket: openedx/public-engineering#316

feat: Add Waffle flag for AuthZ for Course Authoring (openedx#37985)

build: Upgrade to `ora2==6.17.2` which removes loremipsum base dep (openedx#37991)

We hope this will fix an error where loremipsum is using pkg_resources,
which setuptools dropped support for as of v82 (released yesterday).

fix: Nits on styles of library icon [FC-0114] (openedx#37980)

- Fixes the issues described in openedx/frontend-app-authoring#2762 (comment):
    - Changed the background color for the library icon in the unit page.
    - Update punctuation for the library icon tooltip in the unit page.
    - Allows breaking the tooltip into multiple lines.

refactor: xblock api upstream info and course details api (openedx#37971)

- Returns top parent key instead of boolean in upstream info api
- Adds edited_on raw time in course outline api
- Adds has_changes to course details api

feat: Add enable_authz_course_authoring flag to course_waffle_flags endpoint (openedx#37990)

Discussion service to enable permission and access provider (openedx#37912)

* chore: discussion service to enable permission and access provider
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core contributor PR author is a Core Contributor (who may or may not have write access to this repo). mao-onboarding Reviewing this will help onboard devs from an Axim mission-aligned organization (MAO). open-source-contribution PR author is not from Axim or 2U

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants