-
Notifications
You must be signed in to change notification settings - Fork 3
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
Remove ArticleDesign.PrintShop
#1683
Conversation
We no longer intend to handle this as a separate `ArticleDesign`. Anything that was previously `PrintShop` will now be one of the other `ArticleDesign`s. This change will require updates in DCAR and AR.
🦋 Changeset detectedLatest commit: 8d25e21 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Tip Once this PR is ready to go, add the This saves us a lot of money by not running the tests before we need them. |
Note The following canaries were published to NPM: 🐥 |
Are these types still needed in |
I'd like to do this. Two outstanding issues:
I think we can work around 2), less sure about 1). |
Note The following canaries were published to NPM: 🐥 |
given this is in inherently in a state of flux, could this just be updated when the types change enough if the lived in DCR? the same change would need to be accommodated with them living in maybe if a component depends on a type which belongs in a product, the component also really belongs in that project? are the components that use these types used outside DCR do you know? |
Are you suggesting creating a duplicate of the type in the kitchen? In theory TypeScript's structural typing would consider them the same type if they have the same shape, but we might have to test to make sure? Alternatively we could say components that live in the kitchen just can't depend on this type, as you suggest in:
I think this is probably true! I can't find any meaningful references to |
how would you feel if i removed these things from it adds some complexity to these libraries to have this DCR-specific things in them, but at this point, i'm not sure what value it brings? |
Is the proposal to remove all usage of |
did you mean to merge this? |
that's what i'm thinking, yeah.
If these components are needed outside a context where if the opposite, it seems weird to keep them somewhere where it has to imported to make them work |
I did, yes. I know we're discussing moving
All sounds reasonable to me 👍 |
We no longer intend to handle this as a separate
ArticleDesign
. Anything that was previouslyPrintShop
will now be one of the otherArticleDesign
s. This change will require updates in DCAR and AR.This is a breaking change because it removes this member from the
enum
. Therefore any code the depends on this member will need to be updated.For example, in a
switch
thecase
will need to be removed:Any code that stores the enum members directly, such as a fixture, will also need to be updated:
Consideration will need to be given to what
ArticleDesign
will now be used for articles that were previouslyPrintShop
. This is handled in the CAPI client for frontend/DCAR, and in AR itself for AR.