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

Commit eea0775

Browse files
Merge branch 'master' into DOC-516-swat-agent
2 parents 3da288b + 35cdabb commit eea0775

File tree

20 files changed

+768
-88
lines changed

20 files changed

+768
-88
lines changed

.github/workflows/linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
# Run Linter against code base #
5656
################################
5757
- name: Lint Code Base
58-
uses: github/super-linter@v4
58+
uses: github/super-linter@v4.8.7
5959
env:
6060
VALIDATE_ALL_CODEBASE: false
6161
DEFAULT_BRANCH: master

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
GIT
22
remote: https://github.com/magento-devdocs/devdocs-theme.git
3-
revision: 841025f8b27b7b66cb4a2661f0112d3151f49fa1
3+
revision: f0516a2e640bbaf04472fc0cbb206432441a674f
44
specs:
5-
devdocs (16)
5+
devdocs (17)
66
jekyll (>= 4.0)
77

88
GEM
Lines changed: 52 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
label: Extension Best Practices
23
pages:
34
- label: Introduction
@@ -7,91 +8,94 @@ pages:
78
url: /ext-best-practices/admin/admin-best-practices.html
89
children:
910

10-
- label: Admin Panel Placement and Design
11-
url: /ext-best-practices/admin/placement-and-design.html
11+
- label: Admin Panel Placement and Design
12+
url: /ext-best-practices/admin/placement-and-design.html
1213

13-
- label: Admin FAQ
14-
url: /ext-best-practices/admin/ext-best-practices_admin_FAQ.html
14+
- label: Admin FAQ
15+
url: /ext-best-practices/admin/ext-best-practices_admin_FAQ.html
1516

1617
- label: Extension Coding
1718
url: /ext-best-practices/extension-coding/coding-best-practices.html
1819
children:
1920

20-
- label: Programming best practices
21-
url: /ext-best-practices/extension-coding/common-programming-bp.html
21+
- label: Programming best practices
22+
url: /ext-best-practices/extension-coding/common-programming-bp.html
2223

23-
- label: Working with the Architecture
24-
url: /ext-best-practices/extension-coding/working-with-arch-bp.html
24+
- label: Working with the Architecture
25+
url: /ext-best-practices/extension-coding/working-with-arch-bp.html
2526

26-
- label: Security, performance, and data handling
27-
url: /ext-best-practices/extension-coding/security-performance-data-bp.html
27+
- label: Security, performance, and data handling
28+
url: /ext-best-practices/extension-coding/security-performance-data-bp.html
2829

29-
- label: Observers best practices
30-
url: /ext-best-practices/extension-coding/observers-bp.html
30+
- label: Observers best practices
31+
url: /ext-best-practices/extension-coding/observers-bp.html
3132

32-
- label: Coding FAQ
33-
url: /ext-best-practices/extension-coding/coding-faq.html
33+
- label: Coding FAQ
34+
url: /ext-best-practices/extension-coding/coding-faq.html
3435

3536
- label: PHPStorm plugin
3637
url: /ext-best-practices/phpstorm/introduction.html
3738
children:
3839

39-
- label: Code generation
40-
url: /ext-best-practices/phpstorm/code-generation.html
40+
- label: Code generation
41+
url: /ext-best-practices/phpstorm/code-generation.html
4142

42-
- label: Code inspection
43-
url: /ext-best-practices/phpstorm/code-inspection.html
43+
- label: Code inspection
44+
url: /ext-best-practices/phpstorm/code-inspection.html
4445

45-
- label: Adding code inspections
46-
url: /ext-best-practices/phpstorm/adding-code-inspections.html
46+
- label: Adding code inspections
47+
url: /ext-best-practices/phpstorm/adding-code-inspections.html
4748

48-
- label: New features
49-
url: /ext-best-practices/phpstorm/new-features.html
49+
- label: New features
50+
url: /ext-best-practices/phpstorm/new-features.html
5051

51-
- label: Issue reporting
52-
url: /ext-best-practices/phpstorm/issue-reporting.html
52+
- label: Issue reporting
53+
url: /ext-best-practices/phpstorm/issue-reporting.html
5354

54-
- label: Run the Upgrade Compatibility Tool
55-
url: /ext-best-practices/phpstorm/uct-run-configuration.html
55+
- label: Run the Upgrade Compatibility Tool
56+
url: /ext-best-practices/phpstorm/uct-run-configuration.html
5657

57-
- label: The built-in Upgrade Compatibility Tool (MVP)
58-
url: /ext-best-practices/phpstorm/built-in-upgrade-compatibility-tool.html
58+
- label: The built-in Upgrade Compatibility Tool (MVP)
59+
url: /ext-best-practices/phpstorm/built-in-upgrade-compatibility-tool.html
5960

6061
- label: Storefront
6162
url: /ext-best-practices/storefront/storefront-best-practices.html
6263

6364
- label: Security
6465
children:
6566

66-
- label: Writing secure code
67-
url: /ext-best-practices/security/writing-secure-code.html
67+
- label: Writing secure code
68+
url: /ext-best-practices/security/writing-secure-code.html
6869

6970
- label: Tutorials
7071
children:
7172

72-
- label: Copying fieldsets
73-
url: /ext-best-practices/tutorials/copy-fieldsets.html
73+
- label: Copying fieldsets
74+
url: /ext-best-practices/tutorials/copy-fieldsets.html
7475

75-
- label: Serialized to JSON data upgrade
76-
url: /ext-best-practices/tutorials/serialized-to-json-data-upgrade.html
76+
- label: Serialized to JSON data upgrade
77+
url: /ext-best-practices/tutorials/serialized-to-json-data-upgrade.html
7778

78-
- label: Modify Image Library folder permissions
79-
url: /ext-best-practices/tutorials/modify-image-library-permissions/
79+
- label: Modify Image Library folder permissions
80+
url: /ext-best-practices/tutorials/modify-image-library-permissions/
8081

81-
- label: Creating an admin page
82-
url: /ext-best-practices/extension-coding/example-module-adminpage.html
82+
- label: Creating an admin page
83+
url: /ext-best-practices/extension-coding/example-module-adminpage.html
8384

84-
- label: Creating a dynamic row system config
85-
url: /ext-best-practices/tutorials/dynamic-row-system-config.html
85+
- label: Creating a dynamic row system config
86+
url: /ext-best-practices/tutorials/dynamic-row-system-config.html
8687

87-
- label: Creating a custom import entity
88-
url: /ext-best-practices/tutorials/custom-import-entity.html
88+
- label: Creating a custom import entity
89+
url: /ext-best-practices/tutorials/custom-import-entity.html
8990

90-
- label: Creating a custom widget
91-
url: /ext-best-practices/tutorials/custom-widget.html
91+
- label: Creating a custom widget
92+
url: /ext-best-practices/tutorials/custom-widget.html
9293

93-
- label: Creating an Access Control List (ACL) rule
94-
url: /ext-best-practices/tutorials/create-access-control-list-rule.html
94+
- label: Creating an Access Control List (ACL) rule
95+
url: /ext-best-practices/tutorials/create-access-control-list-rule.html
9596

96-
- label: Creating an integration with an external API
97-
url: /ext-best-practices/tutorials/create-integration-with-api.html
97+
- label: Creating an integration with an external API
98+
url: /ext-best-practices/tutorials/create-integration-with-api.html
99+
100+
- label: Create a custom REST API
101+
url: /ext-best-practices/tutorials/create-custom-rest-api.html

src/_data/toc/installation-guide.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ pages:
2828
exclude_versions: ["2.3"]
2929
children:
3030

31+
- label: Using AWS Elasticsearch
32+
url: /install-gde/prereq/es-aws.html
33+
exclude_versions: ["2.3"]
34+
3135
- label: Configure nginx and Elasticsearch
3236
url: /install-gde/prereq/es-config-nginx.html
3337
exclude_versions: ["2.3"]

src/_data/whats-new.yml

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,91 @@ 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 Jan 17 15:38:41 2022
7+
updated: Mon Jan 31 15:38:42 2022
88
entries:
9+
- description: Added the [Create a custom REST API](https://devdocs.magento.com/guides/v2.4/ext-best-practices/tutorials/create-custom-rest-api.html)
10+
topic.
11+
versions: 2.3.x, 2.4.x
12+
type: New Topic
13+
date: January 27, 2022
14+
link: https://github.com/magento/devdocs/pull/9300
15+
merge_commit: 5fd0d57992aea22a2952b4c20701b3368d455383
16+
contributor: nitish-ranjan05
17+
membership: false
18+
labels:
19+
- 2.3.x
20+
- partners-contribution
21+
- New Topic
22+
- 'Partner: Ziffity'
23+
- 2.4.x
24+
- 'Progress: done'
25+
- description: Published [release notes](https://devdocs.magento.com/quality-patches/release-notes.html)
26+
for the 1.1.9 Quality Patches Tool (QPT) package release.
27+
versions: 2.x
28+
type: Major Update
29+
date: January 24, 2022
30+
link: https://github.com/magento-commerce/devdocs/pull/2751
31+
merge_commit: 599ee42938d2929cfedef767695443f2c87555fd
32+
contributor: agorbivskyi
33+
membership: true
34+
labels:
35+
- 2.x
36+
- Major Update
37+
- description: Updated the [release schedule](https://devdocs.magento.com/release/).
38+
versions: 2.3.x, 2.4.x
39+
type: Major Update
40+
date: January 24, 2022
41+
link: https://github.com/magento/devdocs/pull/9328
42+
merge_commit: c1653953f4e26420c0eab621f45d72eb8bee63a4
43+
contributor: misuadobe
44+
membership: false
45+
labels:
46+
- Major Update
47+
- 2.3.x
48+
- 2.4.x
49+
- 'Progress: done'
50+
- description: Restored 2.3.x [Upgrade Guide](https://devdocs.magento.com/guides/v2.3/comp-mgr/bk-compman-upgrade-guide.html)
51+
topics and redirected only the 2.4.x topics to the migrated guide on [Experience
52+
League](https://experienceleague.adobe.com/docs/commerce-operations/upgrade-guide/overview.html).
53+
versions: 2.3.x, 2.4.x
54+
type: Major Update
55+
date: January 21, 2022
56+
link: https://github.com/magento-commerce/devdocs/pull/2749
57+
merge_commit: f73452c4b7575cfca7beb37dab422d1547a8a8ef
58+
contributor: jeff-matthews
59+
membership: true
60+
labels:
61+
- Major Update
62+
- 2.3.x
63+
- 2.4.x
64+
- description: Updated the Cloud guide to [clarify log rotation tip](https://devdocs.magento.com/cloud/project/log-locations.html),
65+
[delete custom VCL snippets](http://devdocs.magento.com/cloud/cdn/fastly-vcl-bypass-to-origin.html#delete-the-custom-vcl-snippet),
66+
and provide an additional example with multiple themes and locales for the [SCD_MATRIX
67+
build variable](https://devdocs.magento.com/cloud/env/variables-build.html#scd_matrix).
68+
versions: 2.x
69+
type: Technical
70+
date: January 20, 2022
71+
link: https://github.com/magento-commerce/devdocs/pull/2736
72+
merge_commit: bb55fd340360edd73af89dfc02628bb169843593
73+
contributor: hguthrie
74+
membership: true
75+
labels:
76+
- 2.x
77+
- Technical
78+
- imported
79+
- description: Added [extended support](https://devdocs.magento.com/release/lifecycle-policy.html)
80+
date for 2.3.
81+
versions: 2.3.x
82+
type: Major Update
83+
date: January 20, 2022
84+
link: https://github.com/magento/devdocs/pull/9329
85+
merge_commit: 9c12b816643b303e5bcf07252d3402a1b5115b33
86+
contributor: misuadobe
87+
membership: false
88+
labels:
89+
- Major Update
90+
- 2.3.x
91+
- 'Progress: done'
992
- description: Added the [contactUs](https://devdocs.magento.com/guides/v2.4/graphql/mutations/contact-us.html)
1093
mutation topic.
1194
versions: 2.4.x

src/cloud/project/ece-tools-upgrade-project.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ To upgrade project to use ece-tools:
7171
# We run build hooks before your application has been packaged.
7272
build: |
7373
set -e
74-
php ./vendor/bin/ece-tools build:generate
75-
php ./vendor/bin/ece-tools build:transfer
74+
php ./vendor/bin/ece-tools run scenario/build/generate.xml
75+
php ./vendor/bin/ece-tools run scenario/build/transfer.xml
7676
# We run deploy hook after your application has been deployed and started.
7777
deploy: |
78-
php ./vendor/bin/ece-tools deploy
78+
php ./vendor/bin/ece-tools run scenario/deploy.xml
7979
# We run post deploy hook to clean and warm the cache. Available with ECE-Tools 2002.0.10.
8080
post_deploy: |
81-
php ./vendor/bin/ece-tools post-deploy
81+
php ./vendor/bin/ece-tools run scenario/post-deploy.xml
8282
```
8383

8484
1. Check for and remove the [deprecated packages](#remove-deprecated-packages). The deprecated packages can prevent a successful upgrade.

src/cloud/project/project-upgrade.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ To update the `.magento.app.yaml` file:
6464
# We run build hooks before your application has been packaged.
6565
build: |
6666
set -e
67-
php ./vendor/bin/ece-tools build:generate
68-
php ./vendor/bin/ece-tools build:transfer
67+
php ./vendor/bin/ece-tools run scenario/build/generate.xml
68+
php ./vendor/bin/ece-tools run scenario/build/transfer.xml
6969
# We run deploy hook after your application has been deployed and started.
7070
deploy: |
71-
php ./vendor/bin/ece-tools deploy
71+
php ./vendor/bin/ece-tools run scenario/deploy.xml
7272
# We run post deploy hook to clean and warm the cache. Available with ECE-Tools 2002.0.10.
7373
post_deploy: |
74-
php ./vendor/bin/ece-tools post-deploy
74+
php ./vendor/bin/ece-tools run scenario/post-deploy.xml
7575
```
7676

7777
1. Add the following environment variables to the end of the `magento.app.yaml` file.

src/cloud/project/services-mysql.md

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ The `mysql` service provides persistent data storage based on [MariaDB](https://
1313
{% include install/maria-db.md %}
1414

1515
{:.bs-callout-warning}
16-
Be careful when upgrading MariaDB from version 10.1 to 10.2.
17-
MariaDB 10.1 is the last version that supports XtraDB as the storage engine. Version 10.2 uses InnoDB for the storage engine. Once you upgrade from 10.1 to 10.2, you cannot rollback the change. {{site.data.var.ee}} supports both storage engines; however, you must check extensions and other systems used by your project to make sure they are compatible with MariaDB 10.2. Read about this [backwards incompatible change](https://mariadb.com/kb/en/upgrading-from-mariadb-101-to-mariadb-102/#incompatible-changes-between-101-and-102).
16+
Be careful when upgrading MariaDB from version 10.1 to 10.2. MariaDB 10.1 is the last version that supports _XtraDB_ as the storage engine. MariaDB 10.2 uses _InnoDB_ for the storage engine. After you upgrade from 10.1 to 10.2, you cannot roll back the change. {{site.data.var.ee}} supports both storage engines; however, you must check extensions and other systems used by your project to make sure they are compatible with MariaDB 10.2. See [Incompatible Changes Between 10.1 and 10.2](https://mariadb.com/kb/en/upgrading-from-mariadb-101-to-mariadb-102/#incompatible-changes-between-101-and-102).
1817

1918
{% include cloud/service-config-integration-starter.md %}
2019

21-
## Enable MySQL
20+
{:.procedure}
21+
To enable MySQL:
2222

2323
1. Add the required name, type, and disk value (in MB) to the `.magento/services.yaml` file.
2424

@@ -41,21 +41,40 @@ MariaDB 10.1 is the last version that supports XtraDB as the storage engine. Ver
4141
1. Add, commit, and push your code changes.
4242

4343
```bash
44-
git add -A && git commit -m "Enable mysql service" && git push origin <branch-name>
44+
git add -A && git commit -m "Enable mysql service" && git push origin <branch-name>
4545
```
4646

4747
1. [Verify the service relationships]({{ site.baseurl }}/cloud/project/services.html#service-relationships).
4848

4949
{%include cloud/tip-change-installed-service-version.md%}
5050

51-
## Set up multiple database users
51+
## Configure MySQL database
5252

53-
Optionally, you can set up multiple databases and multiple users with different permissions.
53+
You have the following options when configuring the MySQL database:
5454

55-
An _endpoint_ is a set of credentials (or users) with specific privileges. By default, there is one endpoint named `mysql` that has administrator access to all defined databases. To set up multiple database users, you must define multiple endpoints in the services.yaml file and declare the relationships in the `.magento.app.yaml` file. For Pro Staging and Production environments, submit a Support ticket to request the additional user.
55+
- **`schemas`**—A schema defines a database. The default schema is the `main` database.
56+
- **`endpoints`**—Each endpoint represents a credential with specific privileges. The default endpoint is `mysql`, which has `admin` access to the `main` database.
57+
- **`properties`**—Properties are used to define additional database configurations.
5658

57-
{:.bs-callout-warning}
58-
You cannot use multiple _databases_ with {{site.data.var.ee}}, but you **can** create multiple endpoints to restrict access to the `main` database.
59+
The following is a basic example configuration in the `.magento/services.yaml` file:
60+
61+
```yaml
62+
mysql:
63+
type: mysql:10.4
64+
disk: 5120
65+
configuration:
66+
properties:
67+
optimizer_switch: "rowid_filter=off"
68+
optimizer_use_condition_selectivity: 1
69+
```
70+
71+
The `properties` in the above example modifies the default `optimizer` settings as [recommended in the Performance Best Practices guide]({{ site.baseurl }}{{ site.gdeurl }}/performance-best-practices/configuration.html#indexers).
72+
73+
### Set up multiple database users
74+
75+
Optionally, you can set up multiple users with different permissions for accessing the `main` database.
76+
77+
By default, there is one endpoint named `mysql` that has administrator access to the database. To set up multiple database users, you must define multiple endpoints in the `services.yaml` file and declare the relationships in the `.magento.app.yaml` file. For Pro Staging and Production environments, submit a Support ticket to request the additional user.
5978

6079
Use a nested array to define the endpoints for specific user access. Each endpoint can designate access to one or more schemas (databases) and different levels of permission on each.
6180

@@ -65,11 +84,11 @@ The valid permission levels are:
6584
- `rw`: SELECT queries and INSERT, UPDATE, and DELETE queries are allowed.
6685
- `admin`: All queries are allowed, including DDL queries (CREATE TABLE, DROP TABLE, and so on).
6786

68-
If no endpoints are defined, a single endpoint named `mysql` has `admin` access to the `main` database. For example:
87+
For example:
6988

7089
```yaml
7190
mysql:
72-
type: mysql:10.3
91+
type: mysql:10.4
7392
disk: 5120
7493
configuration:
7594
schemas:
@@ -85,6 +104,9 @@ mysql:
85104
importer:
86105
privileges:
87106
main: rw
107+
properties:
108+
optimizer_switch: "rowid_filter=off"
109+
optimizer_use_condition_selectivity: 1
88110
```
89111

90112
In the preceding example, the `admin` endpoint provides admin-level access to the `main` database, the `reporter` endpoint provides read-only access, and the `importer` endpoint provides read-write access, which means:

0 commit comments

Comments
 (0)