Closed tecoholic closed 1 month ago
Thanks for the pull request, @tecoholic!
Please work through the following steps to get your changes ready for engineering review:
If you haven't already, check this list to see if your contribution needs to go through the product review process.
To help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
This PR must be merged before / after / at the same time as ...
This PR is waiting for OEP-1234 to be accepted.
This PR must be merged by XX date because ...
This is for a course on edx.org.
If one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green.
This repository is currently maintained by @openedx/course-discovery-admins
. Tag them in a comment and let them know that your changes are ready for review.
If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources:
Our goal is to get community contributions seen and reviewed as efficiently as possible.
However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
:bulb: As a result it may take up to several weeks or months to complete a review and merge your PR.
@AfaqShuaib09 Thanks for the suggestion. I have applied it to the PR.
@AfaqShuaib09 I raised the with the fix for just the one place where I encountered an error. If other functions also need to be updated, I can do that. But I am not sure what those functions do. So, anyone can confirm those functions need to be updated, I can recreate update the PR accordingly.
@AfaqShuaib09 I raised the with the fix for just the one place where I encountered an error. If other functions also need to be updated, I can do that. But I am not sure what those functions do. So, anyone can confirm those functions need to be updated, I can recreate update the PR accordingly.
Hi there! I do agree with Afaq since this field was previously added in the aforementioned closed PR. Also, I believe adding it in update_entitlement
and validate_stockrecord
is also the right way since both of these functions are used in EcommerceApi Data Loader and having the correct price value should be the right thing else it will result in failure again.
@AfaqShuaib09 @Ali-D-Akbar Hi, thanks for confirming. I have updated the references in the mentioned functions and the mock data as well. Can you kindly review?
Note: All the CI checks for Python 3.8 seems to be failing due to a setuptools error. I want to highlight that course-discovery tutor template for redwood uses Python 3.12. So we can safely disregard the 3.8 failures.
@Ali-D-Akbar Hi, can you kindly review this change and merge it?
cc: @AfaqShuaib09
@Ali-D-Akbar Thank you.
Description
The Django Oscar upgrade of ecommerce changed the item's price field from
price_excl_tax
to justprice
causing the EcommerceApi data loader to fail.This commit handled the exception and falls back to the 'price' value.
Ref: https://github.com/openedx/ecommerce/pull/4050
Additional information
The same as #4291.
Testing instructions
Reproduce Issue
ecommerce
anddiscovery
enabled./manage.py refresh_course_metadata --partner dev
. It should fail with the KeyErrorprice_excl_tax
.Testing the fix from PR
./manage.py refresh_course_metadata --partner dev
again. This time, it should run successfully.