Bundle button appears on program-about page for bundles that have already been purchased when entitlement API call fails

Description

If the call to the entitlement API fails for any reason, the the `Purchase Bundle` button will appear on the program-about page, even when the user has already purchased it. This can be confusing for our users. We should explore other ways to pass information between the LMS and marketing site about what entitlements/enrollments the user has, such as adding them to the user-info-cookie when the user logs in.

Steps to Reproduce

None

Current Behavior

None

Expected Behavior

None

Reason for Variance

None

Release Notes

None

User Impact Summary

None

Activity

Show:
Albert (AJ) St. Aubin
January 10, 2018, 6:44 PM
Edited

Possible Solution:

Store the Entitlements for the User in local Storage

Note:
If we run into this scenario when the User reaches the Basket the Entitlements they have already purchased will be filtered out.

Potential Optimizations:

Add a method to determine when we need to update the Entitlements. (e.g. Storing an Entitlement Hash in the User info cookie)

Done

Assignee

McKenzie Welter

Reporter

Anthony Mangano

Labels

Reach

None

Impact

None

Platform Area

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Category of Work

None

Platform Map Area (Levels 1 & 2)

None

Platform Map Area (Levels 3 & 4)

None

Story Points

1

Sprint

None

Priority

Unset
Configure