Translate ORDER_HISTORY_URL into an external route for frontend-base sites

オープン 初心者向け
#39,395 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
django, python
領域
api, backend

調査の方向性

ルート変換は、issueで参照されている既存のLOGOUT_URL処理の近くにあるlms/djangoapps/mfe_config_api/views.pyにあります。そのコードを読み、MFE_CONFIGの値がどのようにexternalRoutesになるかを確認してから、ORDER_HISTORY_URLに対応する動作を追加してください。設定された注文履歴URLによって外部ルートorg.openedx.frontend.role.orderHistoryが生成され、設定が未指定の場合はルートが追加されないことをもって完了とします。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
8.2k
フォーク
4.4k
平均マージ
2日 16時間
マージ済み PR(30日)
37

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openedx/openedx-platform のほかの issue

openedx/openedx-platform の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。