-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add course key param to track selection url (#33716)
- Loading branch information
Showing
8 changed files
with
120 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
""" | ||
Configuration for features of Commerce App | ||
""" | ||
from edx_toggles.toggles import WaffleFlag | ||
|
||
# Namespace for Commerce waffle flags. | ||
WAFFLE_FLAG_NAMESPACE = "commerce" | ||
|
||
# .. toggle_name: commerce.transition_to_coordinator.checkout | ||
# .. toggle_implementation: WaffleFlag | ||
# .. toggle_default: False | ||
# .. toggle_description: Allows to redirect checkout to Commerce Coordinator API | ||
# .. toggle_use_cases: temporary | ||
# .. toggle_creation_date: 2023-11-22 | ||
# .. toggle_target_removal_date: TBA | ||
# .. toggle_tickets: SONIC-99 | ||
# .. toggle_status: supported | ||
ENABLE_TRANSITION_TO_COORDINATOR_CHECKOUT = WaffleFlag( | ||
f"{WAFFLE_FLAG_NAMESPACE}.transition_to_coordinator.checkout", | ||
__name__, | ||
) | ||
|
||
|
||
def should_redirect_to_commerce_coordinator_checkout(): | ||
""" | ||
Redirect learners to Commerce coordinator checkout. | ||
""" | ||
return ENABLE_TRANSITION_TO_COORDINATOR_CHECKOUT.is_enabled() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters