magento / magento/magento2-phpstorm-plugin

[Generation] Create configuration path information parser

Open
#1,164 1 comment 0 reactions 1 assignee View on GitHub

@bohdan-harniuk is already working on this.

Since Sep 7, 2022.

Configuration Model Generation
Dominant language
Java
Stars
463
Forks
98
Avg merge
1h 6m
Merged PRs (30d)
3

Description

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` 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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.