Skip to content

feat: introduce new marketable field#4493

Merged
hamzawaleed01 merged 17 commits into
masterfrom
ENT-9748/introduce-new-marketable-field
Dec 11, 2024
Merged

feat: introduce new marketable field#4493
hamzawaleed01 merged 17 commits into
masterfrom
ENT-9748/introduce-new-marketable-field

Conversation

@hamzawaleed01
Copy link
Copy Markdown
Contributor

@hamzawaleed01 hamzawaleed01 commented Nov 21, 2024

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

Comment thread course_discovery/apps/api/tests/test_serializers.py Outdated
Comment thread course_discovery/apps/course_metadata/models.py Outdated
@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
Comment thread course_discovery/apps/course_metadata/models.py Outdated
@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
Comment thread course_discovery/apps/api/tests/test_serializers.py Outdated
Comment thread course_discovery/apps/api/tests/test_serializers.py Outdated
Comment thread course_discovery/apps/api/tests/test_serializers.py Outdated
@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
Comment thread course_discovery/apps/api/tests/test_serializers.py Outdated
Comment thread course_discovery/apps/api/tests/test_serializers.py Outdated
@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 iloveagent57 and macdiesel and removed request for bcitro November 27, 2024 11:55
Copy link
Copy Markdown
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).

Comment thread course_discovery/apps/api/tests/test_serializers.py Outdated
Comment thread course_discovery/apps/api/tests/test_serializers.py Outdated
Comment thread course_discovery/apps/course_metadata/models.py Outdated
Comment thread course_discovery/apps/course_metadata/models.py Outdated
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-9748/introduce-new-marketable-field branch from e4945d4 to a4bc506 Compare November 29, 2024 11:01
Comment thread course_discovery/apps/course_metadata/models.py Outdated
Comment thread course_discovery/apps/course_metadata/models.py Outdated
Comment thread course_discovery/apps/course_metadata/models.py Outdated
…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
Comment thread course_discovery/apps/course_metadata/models.py Outdated
Comment thread course_discovery/apps/api/serializers.py
@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
Copy Markdown
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
@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