Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Conversation

atwixfirster
Copy link
Contributor

Purpose of this pull request

This pull request (PR) adds setup component type.

Affected DevDocs pages

Links to Magento source code

Thank you!

@rogyar rogyar self-assigned this May 15, 2019
@devops-devdocs
Copy link
Collaborator

An admin must run tests on this PR before it can be merged.

@rogyar rogyar added the Technical Updates to the code or processes that alter the technical content of the doc label May 16, 2019
@jeff-matthews jeff-matthews added the 2.3.x Magento 2.3 related changes label May 17, 2019
Copy link
Contributor

@jeff-matthews jeff-matthews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a better description of "Setup" in the table.

@atwixfirster
Copy link
Contributor Author

@jeff-matthews

We need a better description of "Setup" in the table.

Agreed but unfortunately I did not work with "Setup" component. Also I did not find an example of usage in Magento CE. This section may be updated later.

What do you think?

Thank you!

@jeff-matthews
Copy link
Contributor

I did a little more searching and found a description of a module "setup" directory:

Setup: contains classes for module database structure and data setup which are invoked when installing or upgrading.

Is it accurate to describe a "setup module" the same way?

https://devdocs.magento.com/guides/v2.3/extension-dev-guide/build/module-file-structure.html#common-directories

@atwixfirster
Copy link
Contributor Author

Is it accurate to describe a "setup module" the same way?

@jeff-matthews, unfortunately, no...

We are talking about COMPONENT TYPE (about module type) here. In the mentioned by you link - the talk is about module folders structure.

Thanks

@jeff-matthews
Copy link
Contributor

Thanks @atwixfirster. I'll check with an internal developer to get a better description.

@atwixfirster
Copy link
Contributor Author

Thanks @atwixfirster. I'll check with an internal developer to get a better description.

Cool. We need someone who developed this type of component. This will a very useful information for community.

Thank you, @jeff-matthews ! 👍

@jeff-matthews jeff-matthews requested a review from buskamuza June 5, 2019 12:53
@jeff-matthews
Copy link
Contributor

@buskamuza, can you help provide an accurate description of the setup component type or let us know who can?

@atwixfirster
Copy link
Contributor Author

@buskamuza, could you please help us here?

Many thanks! 🌸

CC: @jeff-matthews

@buskamuza
Copy link
Contributor

Most types are described in the Composer plugin https://github.com/magento/magento-composer-installer that uses these types to deploy the package correctly.
There might be other types, which are not used by this plugin and so I don't know where to find their description. For now, I'm not aware of any such types existing. MFTF team is adding a type for functional tests currently, they should sync with DevDocs team to add the new type to this page.

To be honest, I'm not aware of setup type. If this is about Setup folder, it is part of magento2-base package, which includes all the files that do not belong to any module/theme/etc, but still can't live just inside vendor folder, it must be copied to the Magento root folder. But this package uses magento2-component, so the Composer plugin can copy the files in the root.

I'd suggest to start the page from the documentation of the plugin I mentioned. And then sync with @okolesnyk on what types functional tests may add.

Copy link
Contributor

@buskamuza buskamuza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment above

Merge remote-tracking branch 'upstream/master' into extend-component-types

# Conflicts:
#	guides/v2.3/extension-dev-guide/prepare/dev-modtypes.md
@atwixfirster
Copy link
Contributor Author

@jeff-matthews , I 've skipped info about setup component regarding Magento Composer Installer documentation.

@rogyar , could you please re-check this PR and let me know if you have any notices here?

Thank you!

|Language package|magento2-language|Translations for the storefront or Admin.|

|Library|magento2-library|Support for libraries located in `lib/internal` instead of in the `vendor` directory.|
|Component|magento2-component|Good example of `magento2-component` is the [Magento 2 Data Migration Tool]({{ site.mage2bloburl }}/{{ page.guide_version }}/migration/bk-migration-guide.html).|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it the Migration Tool? It's not a magento2-component from what I can see - https://github.com/magento/data-migration-tool/blob/2.3-develop/composer.json
So far the only example is the Magento base package - the package formed of the files that must be located in root (index.php, .htaccess, etc). This includes dev/tests and setup as well for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it the Migration Tool?

Regarding to https://github.com/magento/magento-composer-installer/blob/master/README.md M2 Migration Tool was developed as a magento-component :)

However, I've checked MagentoHackathon\Composer\Magento\PackageTypes and found
the files that must be located in root .

I've fixed a provided description according to your comment. Could you please review?

Thank you, @buskamuza !

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see... looks like it's something outdated.
All looks good now.

@jeff-matthews
Copy link
Contributor

running tests

@jeff-matthews jeff-matthews merged commit 46b6c68 into magento:master Jul 15, 2019
@ghost
Copy link

ghost commented Jul 15, 2019

Hi @atwixfirster, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

2.3.x Magento 2.3 related changes Partner: Atwix partners-contribution PR created by Magento partner Technical Updates to the code or processes that alter the technical content of the doc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants