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
Upgrade select2 on domain app pages that use requirejs #22971
Conversation
BaseCommTrackManageView was using @use_select2, but the only subclasses that need it are NewProductView and EWSUserExtensionView. NewProductView is an easy upgrade; EWSUserExtensionView can be upgraded later.
None of the three INTERNAL_SUBSCRIPTION_MANAGEMENT_FORMS used on this page use select2.
2f496c6
to
93c8c7f
Compare
Necessary because the last commit modified BillingAccountBasicForm and these views also use that form.
Or @nickpell because a good deal of this is billing code. |
Necessary because this uses the ConfirmSubscriptionRenewalForm which extends the EditBillingAccountInfoForm which was modified when upgrading the domain billing views.
Needed because this view uses the ConfirmExtraUserChargesForm which descends from the EditBillingAccountInfoForm which was affected when domain billing pages were upgraded.
Did some testing on staging and upgraded a few more views that were affected by earlier commits. This is an intricate migration because it can require changes to the js select2 API (options were renamed), the HTML markup (you have to call In any case, I'm done testing this and think it's in good shape for review & merge. |
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.
Looks like this was a lot of work. Good to see us modernizing our select2 widgets.
I added this decorator to most accounting views in #22971 to be safe, without taking the time to pick out which views need it. These ones don't.
I added this decorator to most accounting views in #22971 to be safe, without taking the time to pick out which views need it. These ones don't.
These need to be migrated as a group because they all use the same code bundle on staging/prod (
domain/js/bundle.js
).@esoergel / @Rohit25negi