magento2-phpstorm-plugin icon indicating copy to clipboard operation
magento2-phpstorm-plugin copied to clipboard

[Generation] Create configuration path information parser

Open bohdan-harniuk opened this issue 3 years ago • 1 comments

Create a configuration path info parser. This task should be processed after the https://github.com/magento/magento2-phpstorm-plugin/issues/1163 is finished. In that task will be specified expected output format for path information.

Input:

  • a PsiFile object that referenced to the target system.xml file

Output:

Path information List<T> of T that covered in the https://github.com/magento/magento2-phpstorm-plugin/issues/1163.

Info that should be included:

  1. path to field (as for an ex.: b2b/general/enabled) -> should be parsed
  2. scope info (showInDefault="1" showInWebsite="1" showInStore="1" -> should be taken from the corresponding index https://github.com/magento/magento2-phpstorm-plugin/issues/1165
  3. field type (\Magento\Framework\Data\Form\Element\Factory::$_standardTypes) -> should be taken from the corresponding index https://github.com/magento/magento2-phpstorm-plugin/issues/1165
  4. sort order

Acceptance Criteria:

  • this generation should be covered by test case.
  • all paths should be sorted by sort order in the system.xml file

Additional context

Mainline branch: mainline/generate-configuration-model

bohdan-harniuk avatar Sep 07 '22 14:09 bohdan-harniuk

Hi @bohdan-harniuk. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.

Add a comment to assign the issue: @magento I am working on this


m2-assistant[bot] avatar Sep 07 '22 14:09 m2-assistant[bot]