Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit bce6c86

Browse files
authored
Merge branch 'master' into imported-ravi-chandra3197-devdocs-9293
2 parents 68235d0 + c7d14ff commit bce6c86

File tree

13 files changed

+385
-71
lines changed

13 files changed

+385
-71
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ GitHub Issues should only be created for problems/topics related to this project
1919
Before submitting this issue, please make sure you are complying with our Code of Conduct:
2020
https://github.com/magento/devdocs/blob/master/.github/CODE_OF_CONDUCT.md
2121
22-
Issues that do not comply with our Code of Conduct or do not contain enough information may be closed at the maintainers' discretion.
22+
Issues that neither comply with our Code of Conduct or do not contain enough information may be closed at the maintainers' discretion.
2323
2424
Feel free to remove this section before creating this issue.
2525
-->

.github/ISSUE_TEMPLATE/BUG.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
---
22
name: Bug report
33
about: Create an issue about a bug on the devdocs website
4-
---
4+
title: Bug report
5+
labels: bug
6+
assignees: dshevtsov
57

6-
# Bug report
8+
---
79

810
## Description
911

1012
<!-- (REQUIRED) What is the issue/current behavior? -->
1113

1214
### Steps to reproduce
1315

14-
<!-- (OPTIONAL) What needs to be done to replicate this issue? (provide Gist if needed) -->
16+
<!-- (OPTIONAL) What needs to be done to replicate this issue? You can provide your scenario in a Gist. -->
1517

1618
1. First Step
1719
1. Second Step
1820
1. Etc.
1921

2022
## Expected result
2123

22-
<!-- (REQUIRED) When this issue is resolved, what is the expected result/behavior? -->
24+
<!-- (REQUIRED) What is the expected result/behavior after resolving this issue? -->
2325

2426
## Possible solutions
2527

@@ -31,7 +33,7 @@ about: Create an issue about a bug on the devdocs website
3133

3234
<!--
3335
Thank you for taking the time to report this issue!
34-
GitHub Issues should only be created for problems/topics related to this project's codebase.
36+
GitHub Issues in this repo should relate to this project's codebase.
3537
3638
Before submitting this issue, please make sure you are complying with our Code of Conduct:
3739
https://github.com/magento/devdocs/blob/master/.github/CODE_OF_CONDUCT.md

.github/ISSUE_TEMPLATE/COMMUNITY_ISSUE_TEMPLATE.md

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/NEW_FEATURE.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
2-
name: New feature
2+
name: New devdocs feature
33
about: Create a request for new functionality in devdocs
4-
---
4+
title: Request for a devdocs feature
5+
labels: enhancement
6+
assignees: dshevtsov
57

6-
# New feature request
8+
---
79

810
## Description
911

@@ -27,7 +29,7 @@ about: Create a request for new functionality in devdocs
2729

2830
<!--
2931
Thank you for taking the time to report this issue!
30-
GitHub Issues should only be created for problems/topics related to this project's codebase.
32+
GitHub Issues in this repo should only relate to this project's codebase.
3133
3234
Before submitting this issue, please make sure you are complying with our Code of Conduct:
3335
https://github.com/magento/devdocs/blob/master/.github/CODE_OF_CONDUCT.md

.github/ISSUE_TEMPLATE/NEW_TOPIC.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
22
name: New topic
33
about: Create a request to add missing information to devdocs
4-
---
4+
title: 'Request for a new topic'
5+
labels: New Topic
6+
assignees: ''
57

6-
# New topic request
8+
---
79

810
## Description
911

@@ -26,7 +28,7 @@ about: Create a request to add missing information to devdocs
2628

2729
<!--
2830
Thank you for taking the time to report this issue!
29-
GitHub Issues should only be created for problems/topics related to this project's codebase.
31+
GitHub Issues in this repo should relate to this project's codebase.
3032
3133
Before submitting this issue, please make sure you are complying with our Code of Conduct:
3234
https://github.com/magento/devdocs/blob/master/.github/CODE_OF_CONDUCT.md

.github/ISSUE_TEMPLATE/TOPIC_CLARIFICATION.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
22
name: Topic clarification/correction
33
about: Create a request to clarify or correct a documentation topic
4-
---
4+
title: 'Request for a topic update'
5+
labels: ''
6+
assignees: ''
57

6-
# Topic clarification/correction request
8+
---
79

810
## Topic Link
911

@@ -23,7 +25,7 @@ about: Create a request to clarify or correct a documentation topic
2325

2426
<!--
2527
Thank you for taking the time to report this issue!
26-
GitHub Issues should only be created for problems/topics related to this project's codebase.
28+
GitHub Issues in this repo should relate to this project's codebase.
2729
2830
Before submitting this issue, please make sure you are complying with our Code of Conduct:
2931
https://github.com/magento/devdocs/blob/master/.github/CODE_OF_CONDUCT.md

rakelib/test.rake

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,26 @@ namespace :test do
8383
end
8484
puts "Found #{images.size} dangling images".red
8585
end
86+
87+
desc 'Find unused includes'
88+
task :unused_includes do
89+
puts 'Running a task to find unused _includes'.magenta
90+
includes = Dir['src/_includes/**/*']
91+
puts "The project contains a total of #{includes.size} includes"
92+
puts 'The following includes are not linked:'
93+
Dir['src/**/*.{md,html}'].each do |file|
94+
# Exclude symmlinks
95+
next if File.symlink? file
96+
97+
includes.delete_if { |include| File.read(file).include?(File.basename(include)) }
98+
end
99+
100+
abort 'No unlinked includes' if includes.empty?
101+
102+
includes.each do |include|
103+
puts "No links for #{include}".yellow
104+
end
105+
puts "Found #{includes.size} unlinked includes".red
106+
puts 'Be careful removing include files. Some include files, such as those in the layout/** directory, may not be linked in the project, but may be used implicitly by the doc theme.'.bold
107+
end
86108
end

src/_data/toc/testing.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,17 @@ pages:
3434
- label: '@magentoDataFixture'
3535
url: /test/integration/annotations/magento-data-fixture.html
3636

37+
- label: '@magentoDataFixtureDataProvider'
38+
url: /test/integration/annotations/magento-data-fixture-data-provider.html
39+
exclude_versions: ["2.3"]
40+
3741
- label: '@magentoDbIsolation'
3842
url: /test/integration/annotations/magento-db-isolation.html
3943

44+
- label: Parameterized Data Fixture
45+
url: /test/integration/parameterized_data_fixture.html
46+
exclude_versions: ["2.3"]
47+
4048
- label: JavaScript Unit Testing
4149
children:
4250

src/_data/whats-new.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,20 @@ description: This page contains recent changes that we think you'd like to know
44
We exclude from this list proofreading, spelling checks, and all minor updates.
55
link: "/whats-new.html"
66
thread: "/whatsnew-feed.xml"
7-
updated: Mon Dec 20 15:38:51 2021
7+
updated: Mon Jan 3 15:38:47 2022
88
entries:
9+
- description: Published [release notes](https://devdocs.magento.com/quality-patches/release-notes.html)
10+
for the 1.1.8 Quality Patches Tool (QPT) package release.
11+
versions: 2.x
12+
type: Major Update
13+
date: December 20, 2021
14+
link: https://github.com/magento-commerce/devdocs/pull/2705
15+
merge_commit: 4f69651f1891591171c92aefb0ea3ff527ec1b32
16+
contributor: agorbivskyi
17+
membership: true
18+
labels:
19+
- 2.x
20+
- Major Update
921
- description: Added instructions to manage [_Outgoing emails_ configuration](https://devdocs.magento.com/cloud/project/project-webint-basic.html)
1022
for Adobe Commerce on cloud Staging and Production environments using the Magento
1123
Cloud CLI command `magento-cloud environment:info`.

src/guides/v2.4/test/integration/annotations.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ Admin Configuration Fixture|`@magentoAdminConfigFixture`|`@magentoAdminConfigFix
1616
Application Isolation|`@magentoAppIsolation`|`@magentoAppIsolation enabled|disabled`|Enables or disables application isolation when you run tests. When enabled, an application state after a test run will be the same as before the test run. For example, you should enable it, when you want to create sessions in a test, but you don't want them to affect other tests.
1717
Configuration Fixture|`@magentoConfigFixture`|`@magentoConfigFixture [<store_code>_store] <config_path> <config_value>`|Sets up configuration settings for a particular test. The list of settings is stored in the `core_config_data` database table. After the test execution, the settings revert to their original state.
1818
Database Isolation|`@magentoDbIsolation`|`@magentoDbIsolation enabled|disabled`|Enables or disables database isolation. Disabled by default, unless you are using `@magentoDataFixture`, in which case it is enabled by default. All data, required for a test, live during transaction only. Any test results won't be written in a database.
19-
Data Fixture|`@magentoDataFixture`|`@magentoDataFixture <script_filename>|<method_name>`|Points to a class or a method which creates testing entities (fixtures) for test execution. These are applied during the transaction.
19+
Data Fixture|`@magentoDataFixture`|`@magentoDataFixture <script_filename>|<method_name>|<fully_qualified_class_name> [as:alias | with:{}]`|Points to a class or a method which creates testing entities (fixtures) for test execution. These are applied during the transaction.
2020
Data Fixture Before Transaction|`@magentoDataFixtureBeforeTransaction`|`@magentoDataFixtureBeforeTransaction <script_filename>|<method_name>`|Points to a class or a method which creates testing entities (fixtures) for test execution before the transaction has begun. You will need to implement a rollback file for changes made here. (e.g. Fixture file my_fixture.php would also require a my_fixture_rollback.php that reverts the original fixture's changed.)
21+
Data Fixture Data Provider|`@magentoDataFixtureDataProvider`|`@magentoDataFixtureDataProvider <callable>|{}`|Points to a Data Provider callable method or contains an inline JSON string for Parameterized Data Fixtures.
2122
Application Area|`@magentoAppArea`|`@magentoAppArea adminhtml|frontend|global`|Configures test environment in the context of specified application area.
2223
Enable/Disable Cache|`@magentoCache`|`@magentoCache <type>|all enabled|disabled`|Enables or disables certain cache segment or all of them to prevent isolation problems.
2324
Indexer Dimension Mode|`@magentoIndexerDimensionMode`|`@magentoIndexerDimensionMode <indexer> <mode>`|Sets the indexer dimension mode for the test run. More information can be found in the [DevBlog](https://community.magento.com/t5/Magento-DevBlog/Indexers-parallelization-and-optimization/ba-p/104922).
@@ -30,6 +31,7 @@ The Magento-specific annotations for integration tests are applied in the follow
3031
1. `@magentoAppIsolation`
3132
1. `@magentoDbIsolation`
3233
1. `@magentoDataFixtureBeforeTransaction`
34+
1. `@magentoDataFixtureDataProvider`
3335
1. `@magentoDataFixture`
3436
1. `@magentoIndexerDimensionMode`
3537
1. `@magentoComponentsDir`

0 commit comments

Comments
 (0)