What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hello, looking at , modules
Hello,
looking at https://github.com/spryker-shop/b2c-demo-shop/blob/master/composer.json, modules are pulled via feature packages. But also the single modules are specified again. For example spryker-feature/tax
which is fetching spryker/tax-storage:^1.20
… why is this package also explicit pointed out again in the composer file itself? Its exactly the same value as in the feature meta package in that case 🤔
Comments
-
Could be a mistake.
cc @UT9PVABFB0 -
@UPKAYJJ2U please take a look
0 -
Okay so might be a lucky finding^^ … generally, all modules not wrapped in features are for example suggested extensions to that features?
0 -
or why do i need to point out single modules at all?
0 -
In general our demo shops are using spryker-features and there is no need to use single packages that are included into features already.
0 -
Having this module on project level is a mistake, same as some other modules.
We will fix it in next release.In general, on project level we include GLUE modules, Connector modules and modules that were not included in feature repository.
0 -
You need to require module only when it is not a default requirement: eg connector modules or rest api - they are not in feature’s require section in composer.
0 -
so best would be to use feature packages and extend by single modules like api modules
0 -
and for the suite example? There are ONLY modules and not any feature packages … thats just for showcase purpose since not every module may appear in a feature, correct?
0 -
Suite is following daily updates. And we don't update features as often as we update modules.
Features are updated like b2c\b2b demoshops - just couple of times per year.
0 -
okay that makes sense. so we currently try to find a way for a project start phase with a (mostly) limited feature set. since the suite is always up to date, it seems a good entry point, but it also means very much effort to remove all the stuff that we don’t need … is there any prefered method to start with that? We know, b2c/b2b demo shops might be a start but they might not up to date to the very latest changes
0 -
Current releases of b2b\b2c demo shops (202009.0) are couple of weeks old.
So for now it would be easier to start there and remove not needed features.
But if the project will start, let's say, in couple of months from now, it's still can be easier to start there, remove not needed features and split remained ones to update them to newest state.
Because anyway you will need to solve the question on how to update features in the future. And unfortunately AFAIK we don't provide migration guides for features, only for modules. So you will need to split a feature to modules anyway in such a case.
0 -
@valerii.trots the feature integration guides also mention the migrations from different features versions
0 -
Feature integration guide isn't feature migration guide, or is it?
0 -
it is both lol see with @UP5GJTY58 about it
0 -
Thanks a lot for your answers! 🙂
0 -
we currently try to find a way for a project start phase with a (mostly) limited feature set.
The easiest way ist probably not to use the feature branches. We also skip them and use the needed packages directly in our project. Thats why I asked some weeks ago for a minimal setup0 -
I think the feature packages are a good way since this is what you finally want to deliver to your customers, instead of single modules …
I mean in the end you don’t know what packages are required to represent a complete feature.
@UK7KBE2JW from where do you know which feature requires which module?0 -
Check it manually or with documentation 🙂. We start with https://github.com/spryker-shop/suite/blob/master/composer.json and extract what we need. For example https://github.com/spryker-feature/cms/blob/master/composer.json you really need all of this packages in this feature? For us, we use contentul for cms stuff but need some stuff from spryker cms package since redirect needs it.
0 -
So for me, all modules that are listed in a feature meta package should be required to get this feature to work. Omitting or cherry picking modules would in fact break that rule. All other modules that are not necessarily needed should be in the suggest section of that feature. Using it in that way you don’t have to struggle with changing dependencies within a feature, for example if a module was added/removed in future. At least this is my understanding, otherwise feature packages would not add much value
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 930 Developer Corner
- 788 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random