-
Notifications
You must be signed in to change notification settings - Fork 254
FC-0001: ecommerce Basket Page -> micro-frontend #3718
Conversation
Thanks for the pull request, @UvgenGen! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
Let's see how tests turn out. |
af8daa7
to
cbf7414
Compare
Hi @UvgenGen sorry for the delay on this, I can help you get these merged. The direction looks good to me. Can you rebase this one and the edx-platform counterpart and fix up any conflicts? Once the tests are passing I can help get it over the line. |
cbf7414
to
b34b6a5
Compare
Hi @bmtcril , thank you. I've rebased PR's, there were no conflicts. |
@@ -188,15 +188,9 @@ class SiteConfiguration(models.Model): | |||
max_length=255, | |||
blank=True | |||
) | |||
enable_microfrontend_for_basket_page = models.BooleanField( |
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.
These changes are going to require you to run makemigrations, and this specific change is destructive in a way that will make rolling back difficult in the case that something in this PR causes errors in production. Sadly removing this field will require a multi-release process as outlined 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.
So for the first step, I have to create a PR with this field updated with null=True
and generate the migration, right?
And after that this PR can be merged?
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'll need that change to be in for tests to succeed. I'm waiting on some feedback to figure out who should approve you to have tests run on this repo, but you should be able to add that null=True
migration in the meantime. Once tests are succeeding I think this will be good to merge, though we may want the edx-platform
one to go through first.
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.
Thanks for the reply, I'll wait for updates. I've created PR with making the enable_microfrontend_for_basket_page
column nullable.
#3829
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.
Thanks, I've allowed tests to run on both PRs. This one failed, likely due to the migration issue, so is blocked on the other. I'm still working to get other folks to take a look, but once the other PR is merged this one will need another rebase to pass acceptance tests.
Hi @openedx/ecommerce-maintainers ! I've pinged you for review on these PRs, but can't ping you on the associated edx-platform one. I talked to Seth about them, so hopefully it's not a total surprise. I believe that we can do them in the order of: 1- edx-platform (openedx/edx-platform#30377) My biggest remaining concern with these is that the Basket MFE is up to feature parity with the functionality being removed. Can anyone confirm that on your side? |
Hello Brian! I have a couple requests:
Thanks! |
…entation. - Removed legacy views and templates for basket page. - Updated redirect to basket MFE.
b34b6a5
to
19cc911
Compare
@colinbrash Hi! I've updated the description and commit message. |
description for the first part updated to #3829. |
Description
According to this documentation i prepared first part with migration making the
enable_microfrontend_for_basket_page
column nullable.This PR should be merged after that one #3829
Removing ecommerce's older implementation of the Django-server-side rendering of the Basket Page.
Replacing the Basket page with a new micro-frontend-based implementation: edx/frontend-app-payment
Updated the model and generated a migration making the column nullable (null=True) (#3829)
Updated SiteConfiguration model: removed
enable_microfrontend_for_basket_page
field. (always redirects to the MFE now).Removed views and templates for Django-server-side Basket Page.
Updated tests.
Supporting information
openedx/public-engineering#68
Original Jira Issue: https://openedx.atlassian.net/browse/DEPR-42
PR to edx-platform: openedx/edx-platform#30377
PR with migration making the
enable_microfrontend_for_basket_page
column nullable: #3829