-
Notifications
You must be signed in to change notification settings - Fork 115
refactor: resolve all todos #1064
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
Conversation
- remove most obvious and outdated todos
| ApplyCouponToCartMutationVariables, | ||
| } from '../../types/GraphQL'; | ||
| import applyCouponToCartMutation from './applyCouponToCart'; | ||
| // @TODO : Add Mutation FROM CodeGEN |
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.
I do not think that this is important
|
|
||
| const moduleOptions = JSON.parse('<%= JSON.stringify(options) %>'); | ||
|
|
||
| // TODO should be moved to THEME and expose consistent cookie management API |
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.
By default, all todos in composable package are abandoned
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.
this is already done anyway
| .addVirtualProductsToCart | ||
| .cart as unknown as Cart; | ||
| default: | ||
| // todo implement other options |
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.
already done
|
|
||
| if (externalCheckout.enable) { | ||
| if (userToken && cartToken) { | ||
| // @TODO: Implements Multiple Store |
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 are going to work on the external checkout in dedicated tasks
|
|
||
| return bundleProductData?.addProductsToWishlist?.wishlist ?? {}; | ||
| default: | ||
| // todo implement other options |
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.
obsolete
| special: specialPrice || 0, | ||
| // @ts-ignore | ||
| credit: Math.round(specialPrice / 10), | ||
| // @TODO: Who set this installment value? |
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.
By default, all todos in composable package are abandoned
| return null; | ||
| } | ||
|
|
||
| // TODO get correct data from api |
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.
By default, all todos in composable package are abandoned
| () => state.value?.method_code && !isLoading.value, | ||
| ); | ||
| /** | ||
| * @TODO: Do not run the setShippingMethodsOnCart mutation on in-store pickup orders. |
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.
I do not really understand this [05.2021]
| */ | ||
| query: Request; | ||
|
|
||
| // TODO: Add code sample |
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 have the task for this M2-352
| const productPrice = computed(() => getGroupedProductPriceCommand(props.product)); | ||
| const productSpecialPrice = 0; // TODO add logic for special price calculation; | ||
| const productSpecialPrice = 0; |
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.
This will be addressed M2-603
- remove AgnosticOrderStatus interface
- remove getFormattedPrice getter as it was not used
- remove ProductSearchParams interface
- remove loadWishlistItemsCounr params
- add new method in useWishlist - addOrRemoveItem
cc5f9bc to
ecdc77b
Compare
- update isInCart method to simplify expected parameters
- update customer login and registration types
9d2a658 to
db0d52a
Compare
- fix type issues in the shipping component
db0d52a to
44fc29a
Compare
| const numericAddressId = Number.parseInt(props.addressId, 10); // because in below find(), CustomerAddress['id'] is numeric | ||
| useFetch(async () => { | ||
| const addressesData = await addressesComposable.load(); // TODO don't fetch all addresses just to pluck one address |
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.
It cannot be done, there is no way to get just one address.
| return; | ||
| } | ||
|
|
||
| if (!app.$vsf.$magento.config.state.getCustomerToken()) { // TODO: replace by value from pinia store after sueCart composable will be refactored |
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.
I did, but then I got memory leaks and stack explosion, I left it as it is.
67d9386 to
f79d67f
Compare
Related Issue
Motivation and Context
Resolve TODOs
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: