Skip to content

Commit 248dc0b

Browse files
authored
Merge pull request #334 from magento/forwardport-2.0.0->2.0.1
Forwardport 2.0.0 >2.0.1
2 parents 82b4af3 + 2154cc7 commit 248dc0b

File tree

11 files changed

+299
-195
lines changed

11 files changed

+299
-195
lines changed

CHANGELOG.md

Lines changed: 169 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -1,128 +1,177 @@
1-
1.0.1
2-
=============
3-
* Features:
4-
* Create a CLI command action
5-
* Create a CRON group action
6-
* Create a CRON job action
7-
* Create a Controller action
8-
* Code Inspection: Module declaration inspections in the scope of `module.xml` and `registration.php`
9-
* Code Inspection: GraphQL resolver in the scope of a schema file
10-
* Improvements:
11-
* Fixed the positioning of all dialog popups
12-
* Adjusted Magento root validation for consider `magento/framework` as a requirement
13-
* Adjusted Magento version validation RegExp to support patch versions
14-
* Fixed bugs:
15-
* The `create a plugin action` is accessible from the wrong context
16-
* Null pointer exception on the new module group
17-
18-
1.0.0
19-
=============
20-
* Features:
21-
* RequireJS mapping support (reference navigation, completion)
22-
* MFTF support MVP (reference navigation, completion)
23-
* Line markers for navigation from a plugin class to a target class
24-
* Line markers for navigation from a GraphQl resolver to schema and vice versa
25-
* Create a plugin for a class public method
26-
* Create a New Magento 2 Module action
27-
* Create a Block action
28-
* Create a View Model action
29-
* Create a new Magento 2 module as a separate project
30-
* Create an observer for an event action
31-
* Create a GraphQL resolver action
32-
* Override class by reference action
33-
* Plugin class methods generation
34-
* Code Inspection: Duplicated plugin Usage in di.xml
35-
* Code Inspection: Plugin declaration in the scope of a Plugin Class
36-
* Code Inspection: Warning regarding Cacheable false attribute in default XML
37-
* Code Inspection: GraphQL resolver in the scope of a PHP Class
38-
* Code Inspection: Duplicated Observer Usage in events XML
39-
* Moved plugin configuration from `Settings > Preferences > Languages & Frameworks > PHP > Magento` to
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0).
6+
7+
## 2.0.0
8+
9+
### Added
10+
11+
- Inject a view model to a block and a reference block from the context menu action
12+
- Override in Theme action
13+
- Generate Listing UI component (including all required files)
14+
- Generate Form UI component (including all required files)
15+
- Code Inspection: ACL resource title
16+
- Reference navigation and completion for `crontab.xml`
17+
- Reference navigation and completion for `menu.xml`
18+
19+
### Changed
20+
21+
- Adjusted module version to module.xml (considering the Magento version)
22+
- Adjusted support of variadic arguments to plugin declaration inspection
23+
24+
### Fixed
25+
- Fixed missing first letter name in `composer.json`
26+
- Fixed the CLI command namespace
27+
- Fixed endless loop of notifications on launch
28+
- Fix `composer.json` generation with module dependency that doesn't have `composer.json`
29+
30+
## 1.0.1
31+
32+
### Added
33+
34+
- Create a CLI command action
35+
- Create a CRON group action
36+
- Create a CRON job action
37+
- Create a Controller action
38+
- Code Inspection: Module declaration inspections in the scope of `module.xml` and `registration.php`
39+
- Code Inspection: GraphQL resolver in the scope of a schema file
40+
41+
### Changed
42+
43+
- Fixed the positioning of all dialog popups
44+
- Adjusted Magento root validation for consider `magento/framework` as a requirement
45+
- Adjusted Magento version validation RegExp to support patch versions
46+
47+
### Fixed
48+
49+
- The `create a plugin action` is accessible from the wrong context
50+
- Null pointer exception on the new module group
51+
52+
## 1.0.0
53+
54+
### Added
55+
56+
- RequireJS mapping support (reference navigation, completion)
57+
- MFTF support MVP (reference navigation, completion)
58+
- Line markers for navigation from a plugin class to a target class
59+
- Line markers for navigation from a GraphQl resolver to schema and vice versa
60+
- Create a plugin for a class public method
61+
- Create a New Magento 2 Module action
62+
- Create a Block action
63+
- Create a View Model action
64+
- Create a new Magento 2 module as a separate project
65+
- Create an observer for an event action
66+
- Create a GraphQL resolver action
67+
- Override class by reference action
68+
- Plugin class methods generation
69+
- Code Inspection: Duplicated plugin Usage in di.xml
70+
- Code Inspection: Plugin declaration in the scope of a Plugin Class
71+
- Code Inspection: Warning regarding Cacheable false attribute in default XML
72+
- Code Inspection: GraphQL resolver in the scope of a PHP Class
73+
- Code Inspection: Duplicated Observer Usage in events XML
74+
- Moved plugin configuration from `Settings > Preferences > Languages & Frameworks > PHP > Magento` to
4075
`Settings > Preferences > Languages & Frameworks > PHP > Frameworks > Magento`
41-
* Fixed support of 2020.* versions of IDE's
42-
43-
0.3.0
44-
=============
45-
* Features:
46-
* Extended navigation from PHP class to its XML declaration to support any configs
47-
* Documented local environment set up for plugin development
48-
* Fixed bugs:
49-
* Fixed NullPointerException
50-
51-
0.2.3
52-
=============
53-
* Features:
54-
* Added JavaScript reference contributor
55-
* Support references for each part of FQN of PHP class, methods, constants
56-
* Support reference from XML/JavaScript for module name
57-
* Support reference from XML/JavaScript for module element path (e.g. Magento_Catalog::product/list/addto/compare.phtml)
58-
* Added project detector
59-
* Move configuration section to "Languages & Frameworks > Php > Magento"
60-
* Remove deprecated elements
76+
- Fixed support of 202## 0.* versions of IDE's
77+
78+
## 0.3.0
79+
80+
### Added
81+
82+
- Extended navigation from PHP class to its XML declaration to support any configs
83+
- Documented local environment set up for plugin development
84+
85+
### Fixed
86+
87+
- Fixed NullPointerException
88+
89+
## 0.2.3
90+
91+
### Added
92+
93+
- Added JavaScript reference contributor
94+
- Support references for each part of FQN of PHP class, methods, constants
95+
- Support reference from XML/JavaScript for module name
96+
- Support reference from XML/JavaScript for module element path (e.g. Magento_Catalog::product/list/addto/compare.phtml)
97+
- Added project detector
98+
- Move configuration section to "Languages & Frameworks > Php > Magento"
99+
- Remove deprecated elements
61100

62-
0.2.2
63-
=============
64-
* Features:
65-
* Added Module name to configuration tooltip
66-
* Fixed bugs:
67-
* Fixed "Project disposed" exception
101+
## 0.2.2
102+
103+
### Added
104+
105+
- Added Module name to configuration tooltip
106+
107+
### Fixed
108+
109+
- Fixed "Project disposed" exception
68110

69-
0.2.1
70-
=============
71-
* Features:
72-
* added module name for "Goto configuration" labels
111+
## 0.2.1
112+
113+
### Added
114+
115+
- added module name for "Goto configuration" labels
73116

74-
0.2.0
75-
=============
76-
* Features:
77-
* WebApi routes
78-
* nicer "Goto configuration" labels
79-
* plugin settings (manual reindex, URN generation, plugin on/off)
117+
## 0.2.0
118+
119+
### Added
120+
121+
- WebApi routes
122+
- nicer "Goto configuration" labels
123+
- plugin settings (manual reindex, URN generation, plugin on/off)
124+
125+
## 0.1
80126

81-
0.1
82-
=============
83-
* Features:
84-
* Context type completion for:
85-
* Observers completion only for ObserverInterface impl in events.xml
86-
* Blocks completion only for BlockInterface name in layouts.xml
87-
* Preference configuration in di.xml
88-
* Type hinting for object arguments in di.xml
89-
* @api usage inspection in Module context
90-
* ObjectManager usage inspection in Module context
91-
* virtualType arguments resolution
92-
* webapi.xml interface/method completion/references
93-
* Support for old people using PhpStorm 8 or JDK1.7
127+
### Added
128+
129+
- Context type completion for:
130+
- Observers completion only for ObserverInterface impl in events.xml
131+
- Blocks completion only for BlockInterface name in layouts.xml
132+
- Preference configuration in di.xml
133+
- Type hinting for object arguments in di.xml
134+
- @api usage inspection in Module context
135+
- ObjectManager usage inspection in Module context
136+
- virtualType arguments resolution
137+
- webapi.xml interface/method completion/references
138+
- Support for old people using PhpStorm 8 or JDK## 1.7
94139

95-
0.0.9
96-
=============
97-
* Features:
98-
* Added Reference and completion support for layouts
99-
* block: class, before, after
100-
* referenceBlock: name
101-
* move: element, destination, before, after
102-
* remove: name
103-
* update: handle
104-
* referenceContainer: name
105-
* Line marker reference for php class to Layout configuration
106-
107-
0.0.8
108-
=============
109-
* Features:
110-
* Added Line marker reference for php class/interface to DI configuration
111-
* Added Line marker reference to plugins
112-
113-
0.0.7
114-
=============
115-
* Features:
116-
* Added reference to configuration and observers (classes or virtualType)
117-
* Added reference to observers from configuration
118-
* Added reference to event dispatch from configuration
140+
## 0.0.9
141+
142+
### Added
143+
144+
- Added Reference and completion support for layouts
145+
- block: class, before, after
146+
- referenceBlock: name
147+
- move: element, destination, before, after
148+
- remove: name
149+
- update: handle
150+
- referenceContainer: name
151+
- Line marker reference for php class to Layout configuration
152+
153+
## 0.0.8
154+
155+
### Added
156+
- Added Line marker reference for php class/interface to DI configuration
157+
- Added Line marker reference to plugins
158+
159+
## 0.0.7
160+
161+
### Added
162+
163+
- Added reference to configuration and observers (classes or virtualType)
164+
- Added reference to observers from configuration
165+
- Added reference to event dispatch from configuration
119166

120-
0.0.6
121-
=============
122-
* Features:
123-
* Added reference and completion support for virtual types/classes/arguments in DI configuration
167+
## 0.0.6
168+
169+
### Added
170+
171+
- Added reference and completion support for virtual types/classes/arguments in DI configuration
124172

125-
0.0.5
126-
=============
127-
* Features:
128-
* Added reference support for classes/interfaces in DI configuration
173+
## 0.0.5
174+
175+
### Added
176+
177+
- Added reference support for classes/interfaces in DI configuration

build.gradle

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ plugins {
77
id 'org.jetbrains.intellij' version '0.4.22'
88
id 'checkstyle'
99
id 'pmd'
10+
id 'org.jetbrains.changelog' version '0.6.2'
1011
}
1112

1213
repositories {
@@ -19,6 +20,7 @@ version '2.0.1'
1920
apply plugin: 'org.jetbrains.intellij'
2021
apply plugin: 'java'
2122
apply plugin: 'groovy'
23+
apply plugin: 'org.jetbrains.changelog'
2224

2325
def phpPluginVersion = System.getProperty("phpPluginVersion", "201.7223.91")
2426
def ideaVersion = System.getProperty("ideaVersion", "2020.1.1")
@@ -46,6 +48,10 @@ intellij {
4648
sameSinceUntilBuild false
4749
downloadSources !Boolean.valueOf(System.getenv('CI'))
4850
sandboxDirectory "${project.rootDir}/.idea-sandbox"
51+
52+
patchPluginXml {
53+
changeNotes({ changelog.getLatest().toHTML() })
54+
}
4955
}
5056

5157
sourceSets {
@@ -74,3 +80,14 @@ static def getDate() {
7480
}
7581

7682
apply from: "${project.rootDir}/gradle-tasks/staticChecks.gradle"
83+
84+
changelog {
85+
version = "${project.version}"
86+
path = "${project.projectDir}/CHANGELOG.md"
87+
header = { "[${project.version}] - ${getDate()}" }
88+
headerParserRegex = ~/(\d+\.)?(\d+\.)?(\*|\d+)/
89+
itemPrefix = "-"
90+
keepUnreleasedSection = true
91+
unreleasedTerm = "[Unreleased]"
92+
groups = ["Added", "Changed", "Deprecated", "Removed", "Fixed", "Security"]
93+
}

resources/fileTemplates/internal/Magento Module UI Component Form Xml.xml.ft

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<item name="provider" xsi:type="string">${NAME}.${NAME}_data_source</item>
66
</item>
77
<item name="label" xsi:type="string" translate="true">${LABEL}</item>
8+
<item name="template" xsi:type="string">templates/form/collapsible</item>
89
</argument>
910
<settings>
1011
<namespace>${NAME}</namespace>
@@ -20,6 +21,11 @@
2021
<settings>
2122
<submitUrl path="${ROUTE}/${SUBMIT_CONTROLLER}/${SUBMIT_ACTION}"/>
2223
</settings>
23-
<dataProvider class="${DATA_PROVIDER}" name="${NAME}_data_source"/>
24+
<dataProvider class="${DATA_PROVIDER}" name="${NAME}_data_source">
25+
<settings>
26+
<requestFieldName>${PRIMARY_FIELD}</requestFieldName>
27+
<primaryFieldName>${PRIMARY_FIELD}</primaryFieldName>
28+
</settings>
29+
</dataProvider>
2430
</dataSource>
2531
</form>

src/com/magento/idea/magento2plugin/actions/generation/data/UiComponentFormFieldsetData.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,23 @@
77

88
public class UiComponentFormFieldsetData {
99

10+
private final String name;
1011
private final String label;
1112
private final String sortOrder;
1213

1314
/**
1415
* Fieldset data.
1516
*
17+
* @param name String
1618
* @param label String
1719
* @param sortOrder String
1820
*/
1921
public UiComponentFormFieldsetData(
22+
final String name,
2023
final String label,
2124
final String sortOrder
2225
) {
26+
this.name = name;
2327
this.label = label;
2428
this.sortOrder = sortOrder;
2529
}
@@ -31,4 +35,8 @@ public String getLabel() {
3135
public String getSortOrder() {
3236
return sortOrder;
3337
}
38+
39+
public String getName() {
40+
return name;
41+
}
3442
}

0 commit comments

Comments
 (0)