openedx / openedx/openedx-platform

[Django4.2 upgrade]: Upgrade django-oauth-lib to latest 2.x.x version

Open
#32,884 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.2k
Forks
4.4k
Avg merge
6d 18h
Merged PRs (30d)
42

Description

Description

  • A PR (link) was created in which we're unpinning django-oauth-toolket and oauthlib.
  • The oauthlib has been updated successfully but for django-oauth-toolkit we faced some brokers. And we could only upgrade django-oauth-toolkit to the latest 1.x.x version.
  • Our aim is to upgrade it to the latest 2.x.x version.

Blocker

raise IrreversibleError("Operation %s in %s is not reversible" % (operation, self))
django.db.migrations.exceptions.IrreversibleError: Operation <RunPython <function forwards_func at 0x7f6956652430>> in oauth2_provider.0006_alter_application_client_secret is not reversible

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with PR 32631 and the django-oauth-toolkit 2.0.0 changelog, then inspect oauth2_provider migration 0006_alter_application_client_secret referenced in the issue. Trace how existing client secrets are stored and how the migration affects them. Done means the project can use the latest 2.x version with an agreed migration path for existing secrets and its irreversible downgrade behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
authorization, backend
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.