-
Notifications
You must be signed in to change notification settings - Fork 172
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
Support for product_type = degree in Django ORM POC for SFMC Catalog #4419
Conversation
65185b2
to
0c6b5c4
Compare
course_discovery/apps/course_metadata/management/commands/populate_product_catalog.py
Show resolved
Hide resolved
0c6b5c4
to
79b739c
Compare
course_discovery/apps/course_metadata/management/commands/populate_product_catalog.py
Outdated
Show resolved
Hide resolved
course_discovery/apps/course_metadata/management/commands/populate_product_catalog.py
Outdated
Show resolved
Hide resolved
79b739c
to
3295e16
Compare
course_discovery/apps/course_metadata/management/commands/populate_product_catalog.py
Outdated
Show resolved
Hide resolved
...se_discovery/apps/course_metadata/management/commands/tests/test_populate_product_catalog.py
Outdated
Show resolved
Hide resolved
Verify get_transformed_data method is working correctly for degree | ||
""" | ||
product = self.degrees[0] | ||
command = Command() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is Command() created here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we're using command.get_transformed_data(product, "degree")
on line 186
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. How does it evaluate that the command to execute is populate catalog command?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from course_discovery.apps.course_metadata.management.commands.populate_product_catalog import Command
...se_discovery/apps/course_metadata/management/commands/tests/test_populate_product_catalog.py
Outdated
Show resolved
Hide resolved
...se_discovery/apps/course_metadata/management/commands/tests/test_populate_product_catalog.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update PR description to include the relevant context.
11a4ad6
to
c9c9de7
Compare
...se_discovery/apps/course_metadata/management/commands/tests/test_populate_product_catalog.py
Outdated
Show resolved
Hide resolved
c9c9de7
to
9068e66
Compare
9068e66
to
bdb386d
Compare
c0a2780
to
970bf34
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few nits to address, otherwise LGTM
...se_discovery/apps/course_metadata/management/commands/tests/test_populate_product_catalog.py
Outdated
Show resolved
Hide resolved
...se_discovery/apps/course_metadata/management/commands/tests/test_populate_product_catalog.py
Outdated
Show resolved
Hide resolved
...se_discovery/apps/course_metadata/management/commands/tests/test_populate_product_catalog.py
Outdated
Show resolved
Hide resolved
...se_discovery/apps/course_metadata/management/commands/tests/test_populate_product_catalog.py
Outdated
Show resolved
Hide resolved
...se_discovery/apps/course_metadata/management/commands/tests/test_populate_product_catalog.py
Outdated
Show resolved
Hide resolved
7777ab5
to
01fc7e2
Compare
01fc7e2
to
ac94a4e
Compare
PROD-4153
This PR enhances the existing management command for populating the Course Catalog by adding support for the Degree Catalog.
Key Updates:
product_type
andproduct_source
.