Skip to content

4.4.0 pre release #1147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 52 commits into from
Sep 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
1982e56
Init 4.3.1-develop branch
bohdan-harniuk Apr 7, 2022
01c12b5
1058: Fixed bug with the file separator on windows
bohdan-harniuk Apr 7, 2022
6c6e73b
1048: Fixed bug with wrong text range
bohdan-harniuk Apr 7, 2022
e2f9b0b
1010: Fixed module context actions are available in the theme context
bohdan-harniuk Apr 7, 2022
0ee4960
1010: Code refactoring
bohdan-harniuk Apr 7, 2022
32496c7
1010: Code refactoring
bohdan-harniuk Apr 7, 2022
d1a0cff
Merge pull request #1063 from bohdan-harniuk/1048-fix-IllegalArgument…
Apr 8, 2022
f23c54a
Merge branch '4.3.1-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Apr 8, 2022
7072744
Merge branch '4.3.1-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Apr 8, 2022
aaf5d88
1050: added raw plugin verifier configuration
doninAtwix Apr 8, 2022
6441a3e
Merge pull request #1062 from bohdan-harniuk/1058-fix-file-separator-…
Iamwade Apr 11, 2022
e9ca60a
Merge branch '4.3.1-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Apr 11, 2022
7177330
Merge pull request #1064 from bohdan-harniuk/1010-fix-module-context-…
bohdan-harniuk Apr 12, 2022
655ee13
Merge branch '4.3.1-develop' into 1050-add-raw-plugin-verifier-config…
doninAtwix Apr 14, 2022
fa1e9af
Merge pull request #1065 from doninAtwix/1050-add-raw-plugin-verifier…
bohdan-harniuk Apr 14, 2022
2f0afe9
1049: fixed index already disposed in search
Iamwade Apr 18, 2022
f94c9f0
Merge pull request #1080 from Iamwade/1049-directory-index-is-already…
bohdan-harniuk Apr 18, 2022
9dc92de
1051: Fixed already disposed exception
Iamwade Apr 18, 2022
faee427
1051: Code refactoring
Iamwade Apr 18, 2022
79b5aad
Merge branch '4.3.1-develop' of github.com:magento/magento2-phpstorm-…
Iamwade Apr 18, 2022
0f84310
Prepared release 4.3.1
bohdan-harniuk Apr 18, 2022
de9b5db
Merge pull request #1081 from Iamwade/1051-fix-already-disposed-exeption
bohdan-harniuk Apr 18, 2022
6675e44
Merge branch '4.3.1-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Apr 18, 2022
9da9818
Merge pull request #1082 from bohdan-harniuk/preparing-release-4-3-1
bohdan-harniuk Apr 18, 2022
a872d0b
4.4.0 pre release
Aug 19, 2022
be59e70
Merge branch '4.4.0-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Aug 23, 2022
0df88ca
Added merged task
bohdan-harniuk Aug 23, 2022
28b9902
Merge branch '4.3.1-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Aug 23, 2022
9dc13ab
Code refactoring
bohdan-harniuk Aug 23, 2022
e5ac268
Merge branch '4.4.0-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Sep 5, 2022
f6c055f
Updated CHANGELOG.md file
bohdan-harniuk Sep 5, 2022
4e8d6a3
Merge branch '4.4.0-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Sep 5, 2022
f6a868e
Updated CHANGELOG.md file
bohdan-harniuk Sep 5, 2022
2123c89
Added info about EAV attributes
Sep 6, 2022
ae64e57
Merge remote-tracking branch 'origin/pre-release-4.4.0' into pre-rele…
Sep 6, 2022
7bc4810
Merge branch '4.4.0-develop' into pre-release-4.4.0
bohdan-harniuk Sep 6, 2022
27c74bd
Merge branch '4.4.0-develop' into pre-release-4.4.0
bohdan-harniuk Sep 7, 2022
d0140d4
Merge branch '4.4.0-develop' into pre-release-4.4.0
bohdan-harniuk Sep 8, 2022
1957de4
Updated CHANGELOG.md file
bohdan-harniuk Sep 8, 2022
8b1dd8a
Merge branch '4.4.0-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Sep 8, 2022
3be52db
Updated CHANGELOG.md file
bohdan-harniuk Sep 8, 2022
da79c2c
Updated CHANGELOG.md file
bohdan-harniuk Sep 9, 2022
79c6ad5
Merge branch '4.4.0-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Sep 9, 2022
1cf7a94
Updated CHANGELOG.md
VitaliyBoyko Sep 12, 2022
3200c52
removed duplicates in changelog
VitaliyBoyko Sep 12, 2022
574b638
Merge branch '4.4.0-develop' into pre-release-4.4.0
bohdan-harniuk Sep 13, 2022
e51176c
Merge branch '4.4.0-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Sep 14, 2022
c747546
Updated CHANGELOG.md file
bohdan-harniuk Sep 14, 2022
c2cc9f1
Merge branch '4.4.0-develop' of github.com:magento/magento2-phpstorm-…
bohdan-harniuk Sep 14, 2022
f142cd0
Updated CHANGELOG.md file
bohdan-harniuk Sep 14, 2022
14fac74
Merge branch '4.4.0-develop' into pre-release-4.4.0
VitaliyBoyko Sep 14, 2022
e1afca4
Merge branch '4.4.0-develop' into pre-release-4.4.0
VitaliyBoyko Sep 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,49 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0).

## 4.4.0

### Added

- Code generation of a Data Patch file with a Customer EAV attribute [#583](https://github.com/magento/magento2-phpstorm-plugin/pull/583)
- Code generation of a Data Patch file with a Product EAV attribute [#527](https://github.com/magento/magento2-phpstorm-plugin/pull/527)
- Code generation of a Data Patch file with a Category EAV attribute [#569](https://github.com/magento/magento2-phpstorm-plugin/pull/569)
- Code generation of Readme file [#1133](https://github.com/magento/magento2-phpstorm-plugin/pull/1133)
- Code generation of GraphQl schema file [#1123](https://github.com/magento/magento2-phpstorm-plugin/pull/1123)
- Optional generation of Readme file during the creation of a new module [#1110](https://github.com/magento/magento2-phpstorm-plugin/pull/1110)
- Code completion for `system.xml` and `config.xml` [#1077](https://github.com/magento/magento2-phpstorm-plugin/pull/1077)
- Added easier navigation through plugins [#1121](https://github.com/magento/magento2-phpstorm-plugin/pull/1121)
- Added inspection to check if type attr value in the virtual type tag attribute value exists [#1176](https://github.com/magento/magento2-phpstorm-plugin/pull/1176)
- Added checks and detailed error messages during plugin activation [#1181](https://github.com/magento/magento2-phpstorm-plugin/pull/1181)

### Fixed

- Fixed NullPointerException at ObserverDeclarationInspection.java:188 [#1143](https://github.com/magento/magento2-phpstorm-plugin/issues/1143)
- Fixed IncorrectOperationException: Rebind cannot be performed for class PolyVariantReferenceBase [#1173](https://github.com/magento/magento2-phpstorm-plugin/pull/1173)
- Fixed create an observer for an event doesn't work through the context menu [#1166](https://github.com/magento/magento2-phpstorm-plugin/pull/1166)
- Fixed IOException: Invalid file name at ReportBuilder [#1154](https://github.com/magento/magento2-phpstorm-plugin/pull/1154)
- Fixed IllegalArgumentException in NewModuleAction class [#1150](https://github.com/magento/magento2-phpstorm-plugin/pull/1150)
- Fixed null data in ModuleIndex class [#1132](https://github.com/magento/magento2-phpstorm-plugin/pull/1132)
- Fixed StringIndexOutOfBoundsException: GitHubNewIssueBodyBuilderUtil [#1130](https://github.com/magento/magento2-phpstorm-plugin/pull/1130)
- Fixed ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 0 in OverrideClassByAPreferenceDialog [#1129](https://github.com/magento/magento2-phpstorm-plugin/pull/1129)
- Fixed PatternSyntaxException: MagentoBasePathUtil.isMagentoFolderValid:35 for Windows styled dir path separator [#1126](https://github.com/magento/magento2-phpstorm-plugin/pull/1126)
- Fixed NullPointerException in the OverrideTemplateInThemeAction.isOverrideAllowed for virtualFile.getCanonicalPath() [#1125](https://github.com/magento/magento2-phpstorm-plugin/pull/1125)
- Fixed IllegalArgumentException: Argument for @NotNull parameter 'dataKey' must not be null in CompareTemplateAction [#1117](https://github.com/magento/magento2-phpstorm-plugin/pull/1117)
- Fixed argument for @NotNull parameter 'project' must not be null in the OverrideClassByAPreferenceAction [#1116](https://github.com/magento/magento2-phpstorm-plugin/pull/1116)
- Fixed New layout action doesn't accept valid layout names [#1114](https://github.com/magento/magento2-phpstorm-plugin/pull/1114)

## 4.3.1

### Changed

- Added raw plugin verifier configuration in [#1065](https://github.com/magento/magento2-phpstorm-plugin/pull/1065)

### Fixed

- Fixed bug with the file separator on Windows OS (while saving plugin settings) in [#1062](https://github.com/magento/magento2-phpstorm-plugin/pull/1062)
- Fixed bug with wrong text range for FilePathReferenceProvider.getReferencesByElement in [#1063](https://github.com/magento/magento2-phpstorm-plugin/pull/1063)
- Fixed module files action group is accessible from the theme context in [#1064](https://github.com/magento/magento2-phpstorm-plugin/pull/1064)
- Fixed bug with directory index is already disposed for Project in AllFilesExceptTestsScope.contains in [#1080](https://github.com/magento/magento2-phpstorm-plugin/pull/1080)
- Fixed bug with DumbService cannot be created because container is already disposed in MagentoComponentManager.getComponents in [#1081](https://github.com/magento/magento2-phpstorm-plugin/pull/1081)

## 4.3.0

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
import com.intellij.psi.PsiFile;
import com.magento.idea.magento2plugin.MagentoIcons;
import com.magento.idea.magento2plugin.magento.files.ModuleFileInterface;
import com.magento.idea.magento2plugin.magento.packages.ComponentType;
import com.magento.idea.magento2plugin.magento.packages.Package;
import com.magento.idea.magento2plugin.project.Settings;
import com.magento.idea.magento2plugin.util.magento.GetMagentoModuleUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
Expand Down Expand Up @@ -50,13 +52,14 @@ public AbstractContextAction(
}

@Override
@SuppressWarnings({"PMD.CyclomaticComplexity", "PMD.NPathComplexity"})
public void update(final @NotNull AnActionEvent event) {
event.getPresentation().setEnabled(false);
event.getPresentation().setVisible(false);

final Project project = event.getProject();

if (project == null) {
if (project == null || !Settings.isEnabled(project)) {
return;
}
final DataContext context = event.getDataContext();
Expand Down Expand Up @@ -86,6 +89,12 @@ public void update(final @NotNull AnActionEvent event) {
|| !isVisible(moduleData, targetDirectory, targetFile)) {
return;
}

if (moduleData.getType().equals(ComponentType.module)
&& !GetMagentoModuleUtil.isEditableModule(moduleData)) {
return;
}

customDataContext = SimpleDataContext
.builder()
.add(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import com.magento.idea.magento2plugin.actions.generation.util.IsClickedDirectoryInsideProject;
import com.magento.idea.magento2plugin.indexes.ModuleIndex;
import com.magento.idea.magento2plugin.project.Settings;
import com.magento.idea.magento2plugin.util.magento.GetMagentoModuleUtil;
import com.magento.idea.magento2plugin.util.magento.GetModuleNameByDirectoryUtil;
import javax.swing.Icon;
import org.jetbrains.annotations.NotNull;
Expand Down Expand Up @@ -62,7 +63,8 @@ public void update(final AnActionEvent event) {
final PsiDirectory moduleDirectory = new ModuleIndex(project)
.getModuleDirectoryByModuleName(moduleName);

if (moduleDirectory != null) {
if (moduleDirectory != null
&& GetMagentoModuleUtil.isDirectoryInEditableModule(moduleDirectory)) {
event.getPresentation().setVisible(true);
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,14 @@
public final class AllFilesExceptTestsScope extends GlobalSearchScope {

public static final String SCOPE_NAME = "All Files Except Tests";
private static AllFilesExceptTestsScope instance;
private final Project project;

/**
* Get search scope instance.
*
* @param project Project
*
* @return AllFilesExceptTestsScope
*/
@SuppressWarnings("PMD.AvoidSynchronizedAtMethodLevel")
public static synchronized AllFilesExceptTestsScope getInstance(
final @Nullable Project project
) {
if (instance == null) {
instance = new AllFilesExceptTestsScope(project);
}

return instance;
}

/**
* Magento search scope constructor.
*
* @param project Project
*/
private AllFilesExceptTestsScope(final @Nullable Project project) {
public AllFilesExceptTestsScope(final @Nullable Project project) {
super(project);
this.project = project;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ public class MagentoSearchScopesProvider implements SearchScopeProvider {
return Collections.emptyList();
}

return Collections.singletonList(AllFilesExceptTestsScope.getInstance(project));
return Collections.singletonList(new AllFilesExceptTestsScope(project));
}
}
Loading