Skip to content

Commit 84bc3f7

Browse files
authored
Merge pull request #340 from magento/forwardport-2.0.1->2.1.0
Forwardport 2.0.1 >2.1.0
2 parents c99c08d + f904f74 commit 84bc3f7

File tree

15 files changed

+315
-206
lines changed

15 files changed

+315
-206
lines changed

.github/workflows/gradle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Run automated tests
55

66
on:
77
pull_request:
8-
branches: [ master, 2.0.0-develop, 2.1.0-develop ]
8+
branches: [ master, 2.0.1-develop, 2.1.0-develop ]
99

1010
jobs:
1111
build-linux:

CHANGELOG.md

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

62-
0.2.2
63-
=============
64-
* Features:
65-
* Added Module name to configuration tooltip
66-
* Fixed bugs:
67-
* Fixed "Project disposed" exception
109+
## 0.2.2
110+
111+
### Added
112+
113+
- Added Module name to configuration tooltip
114+
115+
### Fixed
116+
117+
- Fixed "Project disposed" exception
118+
119+
## 0.2.1
68120

69-
0.2.1
70-
=============
71-
* Features:
72-
* added module name for "Goto configuration" labels
121+
### Added
122+
123+
- added module name for "Goto configuration" labels
73124

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)
125+
## 0.2.0
126+
127+
### Added
128+
129+
- WebApi routes
130+
- nicer "Goto configuration" labels
131+
- plugin settings (manual reindex, URN generation, plugin on/off)
132+
133+
## 0.1
80134

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
135+
### Added
136+
137+
- Context type completion for:
138+
- Observers completion only for ObserverInterface impl in events.xml
139+
- Blocks completion only for BlockInterface name in layouts.xml
140+
- Preference configuration in di.xml
141+
- Type hinting for object arguments in di.xml
142+
- @api usage inspection in Module context
143+
- ObjectManager usage inspection in Module context
144+
- virtualType arguments resolution
145+
- webapi.xml interface/method completion/references
146+
- Support for old people using PhpStorm 8 or JDK## 1.7
94147

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
148+
## 0.0.9
149+
150+
### Added
151+
152+
- Added Reference and completion support for layouts
153+
- block: class, before, after
154+
- referenceBlock: name
155+
- move: element, destination, before, after
156+
- remove: name
157+
- update: handle
158+
- referenceContainer: name
159+
- Line marker reference for php class to Layout configuration
160+
161+
## 0.0.8
162+
163+
### Added
164+
- Added Line marker reference for php class/interface to DI configuration
165+
- Added Line marker reference to plugins
166+
167+
## 0.0.7
168+
169+
### Added
170+
171+
- Added reference to configuration and observers (classes or virtualType)
172+
- Added reference to observers from configuration
173+
- Added reference to event dispatch from configuration
119174

120-
0.0.6
121-
=============
122-
* Features:
123-
* Added reference and completion support for virtual types/classes/arguments in DI configuration
175+
## 0.0.6
176+
177+
### Added
178+
179+
- Added reference and completion support for virtual types/classes/arguments in DI configuration
124180

125-
0.0.5
126-
=============
127-
* Features:
128-
* Added reference support for classes/interfaces in DI configuration
181+
## 0.0.5
182+
183+
### Added
184+
185+
- 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.1.0'
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>

0 commit comments

Comments
 (0)