Remove ecommerce and Cybersource payment processing code#5447
Remove ecommerce and Cybersource payment processing code#5447
Conversation
|
Why are the tests failing? |
Remove ecommerce backend integrations from settings, URLs, and dependent modules Co-authored-by: pdpinch <430126+pdpinch@users.noreply.github.com> Remove ecommerce frontend code and checkout functionality Co-authored-by: pdpinch <430126+pdpinch@users.noreply.github.com> Fix tests: remove or skip ecommerce-related test code Co-authored-by: pdpinch <430126+pdpinch@users.noreply.github.com> Fix code review issues: remove orphaned code and fix indentation Co-authored-by: pdpinch <430126+pdpinch@users.noreply.github.com> temp: financial aid removed fix: issue fix: lint issues fix: issues fix: lint fix: test fix: errors
ef5030f to
71fd6d6
Compare
2400510 to
84cd269
Compare
There was a problem hiding this comment.
Can we remove the Selenium tests? They are not run in CI, and I also tried running them locally but they consistently failed, even on the master branch prior to the Django upgrade.
There was a problem hiding this comment.
Can we remove the Selenium tests?
@annagav my recollection is that the Selenium tests only ran on the courses portion of the dashboard which is now "unsupported." Is that right? Do you think we can remove them? Will it affect the remaining bits of the dashboard like the program letter?
There was a problem hiding this comment.
yes, the Selenium tests are testing the dashboard side of things. I think we could remove them.
|
@Anas12091101 could you please add screenshots of where the removal affects the UI? |
|
@annagav, this PR primarily focuses on removing the e-commerce and financial aid app code. Based on my understanding, the e-commerce UI logic is triggered when a user clicks the Enroll button on a CourseRow.
However, since we introduced a modal overlay to prevent user interaction with CourseRows in #5403, users cannot click the Enroll button unless the overlay is manually hidden via the browser’s dev tools. Note: The Enroll button is only visible if the course run does not have a past end date. |
0f149e3 to
12c77de
Compare
| title = models.CharField(max_length=255) | ||
| live = models.BooleanField(default=False) | ||
| description = models.TextField(blank=True, null=True) | ||
| financial_aid_availability = models.BooleanField(default=False, null=False) |

Relevant Issues
Addresses issue requesting removal of discontinued payment processing code from 2021.
Summary
Payments were discontinued in 2021 when DEDP moved to mitxonline. This PR removes all ecommerce and Cybersource infrastructure while preserving database records for audit purposes.
Backend (~5,400 lines removed)
ecommerce/app: models (Order, Line, Coupon), views, admin, 20 migrationsget_payments_count_for_course(),get_number_of_attempts_left(),paid_but_missed_deadline()Frontend (~1,000 lines removed)
Tests
Data Preservation
No migrations included. All Order, Line, and Coupon records remain in database for historical reference.
Follow-up
Separate PR needed to remove Cybersource config from salt-ops pillar.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.