Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: course about URL should use course key, not course run key. #1171

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

pwnage101
Copy link
Contributor

@pwnage101 pwnage101 commented Feb 15, 2024

When the spent table was first implemented, it utilized the Analytics API to fetch enrollments, and that data source contained a course key field. However, when we switched over to real-time fetching of redemptions via the transaction list API for assignable budgets, we erroneously treated the content_key field as a course key, breaking the course about page link in the spent table.

The following two PRs implment a parent_content_key field in the transaction list API, which we can now utilize for the real-time spent table implmentation:

ENT-8389

For all changes

  • Ensure adequate tests are in place (or reviewed existing tests cover changes)

Only if submitting a visual change

  • Ensure to attach screenshots
  • Ensure to have UX team confirm screenshots

Copy link

codecov bot commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.34%. Comparing base (c0dd344) to head (11cf3f9).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1171   +/-   ##
=======================================
  Coverage   85.34%   85.34%           
=======================================
  Files         497      497           
  Lines       10839    10839           
  Branches     2283     2283           
=======================================
  Hits         9251     9251           
  Misses       1544     1544           
  Partials       44       44           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pwnage101 pwnage101 force-pushed the pwnage101/ENT-8389 branch 2 times, most recently from 0a3b247 to bf88df2 Compare February 21, 2024 17:21
Copy link
Member

@brobro10000 brobro10000 left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏽

@pwnage101 pwnage101 force-pushed the pwnage101/ENT-8389 branch 4 times, most recently from 94d224c to 46b14b8 Compare February 27, 2024 21:29
When the spent table was first implemented, it utilized the Analytics
API to fetch enrollments, and that data source contained a course key
field.  However, when we switched over to real-time fetching of
redemptions via the transaction list API for assignable budgets, we
erroneously treated the `content_key` field as a course key, breaking
the course about page link in the spent table.

The following two PRs implment a `parent_content_key` field in the
transaction list API, which we can now utilize for the real-time spent
table implmentation:

* openedx/openedx-ledger#60
* openedx/enterprise-subsidy#209

ENT-8389
@pwnage101 pwnage101 merged commit 853c8e3 into master Feb 29, 2024
6 checks passed
@pwnage101 pwnage101 deleted the pwnage101/ENT-8389 branch February 29, 2024 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants