Skip to content

Conversation

@shanbady
Copy link
Contributor

@shanbady shanbady commented Oct 16, 2024

What are the relevant tickets?

Closes https://github.com/mitodl/hq/issues/5802

Description (What does it do?)

This PR makes sure that for learning resource drawers if the offered_by is xpro we ignoring the platform.code and always show the "On "
Screenshot 2024-10-16 at 9 07 32 AM

How can this be tested?

  1. checkout this branch
  2. make sure you have resources loaded - in particular xpro courses
  3. resources that are xpro should still show the xpro logo. resources that have a platform.code of something else but have an offered_by attribute of xpro should show xpro. examples of this are courses from Emeritus and Global Alumni

@shanbady shanbady marked this pull request as ready for review October 16, 2024 13:36
@shanbady shanbady added the Needs Review An open Pull Request that is ready for review label Oct 16, 2024
@gumaerc gumaerc self-assigned this Oct 16, 2024
Copy link
Contributor

@gumaerc gumaerc left a comment

Choose a reason for hiding this comment

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

👍 LGTM

Just noticed a small typo in your test's docstring:

)

test.each([ResourceTypeEnum.PodcastEpisode])(
"Renders xpro logo onditionally on offered_by=xpro and not platform.code",
Copy link
Contributor

Choose a reason for hiding this comment

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

"conditionally"

@shanbady shanbady merged commit cffa89d into main Oct 16, 2024
11 checks passed
@shanbady shanbady deleted the shanbady/xpro-logo-for-all-xpro-offerings branch October 16, 2024 20:14
This was referenced Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review An open Pull Request that is ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants