-
Notifications
You must be signed in to change notification settings - Fork 5
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
chore: added mocked adapters #25
base: development
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,18 @@ | |||
// import { |
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.
Why commented?
export * from './default-checkout.adapter'; | ||
export * from './normalizers'; | ||
export * from './serializers'; | ||
export * from './spryker-glue'; |
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.
Why Spryker Glue is the default here? Shouldn't that be the mocks?
@@ -0,0 +1,308 @@ | |||
import { PlaceOrderData } from '@spryker-oryx/checkout'; |
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.
Could you please add a comment at the top on how to use these files.
Smth like "to be replaced with a backend system API"
@@ -1,2 +1,2 @@ | |||
export * from './default-product-relations-list.adapter'; | |||
export * from './glue-product-relations-list.adapter'; |
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.
should that be spryker-glue?
DefaultSuggestionRendererService, | ||
FacetColorsMapping, | ||
FacetListService, | ||
productSuggestionRenderer, | ||
GlueSuggestionAdapter, |
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.
Should these plugins be SprykerGlue...?
@@ -3,7 +3,7 @@ import { createInjector, destroyInjector, getInjector } from '@spryker-oryx/di'; | |||
import { MessageType, postMessage } from '@spryker-oryx/experience'; | |||
import { RouteType } from '@spryker-oryx/router'; | |||
import { of } from 'rxjs'; | |||
import { SuggestionField } from '../adapter'; | |||
import { SuggestionField } from '../adapter/spryker-glue'; |
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.
Is there a way to define the path for all of these imparts? all at once?
Typically you will have one set of adapters used everywhere. Cases where I need to specify a separate import directory when multiple vendors involved are limited, and then it can be a little more complex to do. But per default it should be a one-time switcher.
export const StoreNormalizer = 'oryx.StoreNormalizer*'; | ||
|
||
export function storeAttributesNormalizer(data: DeserializedStores): Store[] { | ||
// TODO: drop this when the backend is healthy again; current dynamic |
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.
An issue please.
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.
A lot of work, thanks @tolerants ! 👏
We need to sill settle on the naming and keep it consistent.
Also we need to check if we can make a step forward to new developers, avoiding per component mock/custom definition (of possible). Additionally please merge master and fix CI.
No description provided.