Translate ORDER_HISTORY_URL into an external route for frontend-base sites

Open Beginner friendly
#39,395 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
django, python
Domain
api, backend

Research direction

The route conversion is in lms/djangoapps/mfe_config_api/views.py, near the existing LOGOUT_URL handling referenced in the issue. Read that code and check how MFE_CONFIG values become externalRoutes; then add the matching behavior for ORDER_HISTORY_URL. Done means a configured order history URL produces the org.openedx.frontend.role.orderHistory external route, while unset configuration adds no route.

Written by the indexing model from the issue text.

Description

Description

In frontend-base sites, the header's Order History menu item is going to be resolved by route role (org.openedx.frontend.role.orderHistory), like Profile, Account and Logout: see openedx/frontend-base#324.

The frontend site config endpoint already turns a legacy LOGOUT_URL into an externalRoutes entry for the logout role. It should do the same for ORDER_HISTORY_URL, when set in MFE_CONFIG.

That way, a site that has Order History today keeps it after moving to frontend-base, on every page and with no config change. Without it, the key just lands in commonAppConfig, where nothing in the shell reads it.

This is a requirement for Willow.

Dominant language
Python
Stars
8.2k
Forks
4.4k
Avg merge
2d 16h
Merged PRs (30d)
37

Getting set up

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.

More from openedx/openedx-platform

All issues in openedx/openedx-platform

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.