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

feat: introduce new marketable field #4493

Merged
merged 17 commits into from
Dec 11, 2024

Conversation

hamzawaleed01
Copy link
Member

@hamzawaleed01 hamzawaleed01 commented Nov 21, 2024

Introduce new marketable field that B2B will use for assigning courses early to their learners.

@hamzawaleed01 hamzawaleed01 requested a review from bcitro November 25, 2024 10:34
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-9748/introduce-new-marketable-field branch 3 times, most recently from 976ab16 to 6aab3f9 Compare November 25, 2024 15:07
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-9748/introduce-new-marketable-field branch 3 times, most recently from 00cb2c8 to 8c4eef9 Compare November 25, 2024 15:57
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-9748/introduce-new-marketable-field branch from 8c4eef9 to 5bf0947 Compare November 25, 2024 16:07
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-9748/introduce-new-marketable-field branch 2 times, most recently from 53395ab to 062522e Compare November 26, 2024 13:04
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-9748/introduce-new-marketable-field branch from 062522e to 1ea33f1 Compare November 27, 2024 10:09
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-9748/introduce-new-marketable-field branch from 1ea33f1 to 1f33105 Compare November 27, 2024 10:32
@hamzawaleed01 hamzawaleed01 requested review from macdiesel and iloveagent57 and removed request for bcitro November 27, 2024 11:55
Copy link
Member

@adamstankiewicz adamstankiewicz left a comment

Choose a reason for hiding this comment

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

Left a few comments, mostly minor cleanup nits but also a clarifying question around whether the intent is to support all reviewable states (internal review vs. legal review), or if there's a specific/individual reviewable state that should be used (might be worth verifying).

course_discovery/apps/api/tests/test_serializers.py Outdated Show resolved Hide resolved
course_discovery/apps/api/tests/test_serializers.py Outdated Show resolved Hide resolved
course_discovery/apps/course_metadata/models.py Outdated Show resolved Hide resolved
course_discovery/apps/course_metadata/models.py Outdated Show resolved Hide resolved
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-9748/introduce-new-marketable-field branch from e4945d4 to a4bc506 Compare November 29, 2024 11:01
…openedx/course-discovery into ENT-9748/introduce-new-marketable-field
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-9748/introduce-new-marketable-field branch from 8209d41 to b223606 Compare December 4, 2024 09:56
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-9748/introduce-new-marketable-field branch from a9d071a to 3114eed Compare December 5, 2024 07:59
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-9748/introduce-new-marketable-field branch from 3114eed to 53acdfa Compare December 5, 2024 08:00
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-9748/introduce-new-marketable-field branch 2 times, most recently from 516c906 to c21efae Compare December 5, 2024 11:59
…openedx/course-discovery into ENT-9748/introduce-new-marketable-field
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-9748/introduce-new-marketable-field branch from c21efae to 2277e78 Compare December 5, 2024 13:01
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-9748/introduce-new-marketable-field branch 5 times, most recently from 33a4ba0 to 009f527 Compare December 10, 2024 13:47
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-9748/introduce-new-marketable-field branch from 009f527 to a6478a2 Compare December 10, 2024 15:28
"""
if self.is_marketable:
return self.is_marketable
is_exec_ed_course = self.course.type.slug == CourseType.EXECUTIVE_EDUCATION_2U
Copy link
Contributor

Choose a reason for hiding this comment

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

As a caution, when filtering on your end, do check for product_source (equals 2u). While it can be added here, it will make things way too specific.

@hamzawaleed01 hamzawaleed01 merged commit c49675f into master Dec 11, 2024
14 checks passed
@hamzawaleed01 hamzawaleed01 deleted the ENT-9748/introduce-new-marketable-field branch December 11, 2024 07:29
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.

6 participants