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

Commit 0480fa7

Browse files
committed
Merge branch '2.3.7-develop' into 2.4.3-develop
2 parents 1dbba4c + 35cabe0 commit 0480fa7

File tree

58 files changed

+880
-65
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+880
-65
lines changed

src/_data/toc/contributor-guide.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ pages:
1414
url: /contributor-guide/backward-compatible-development/
1515
versionless: true
1616

17+
- label: Pull Request Tests
18+
url: /contributor-guide/pull-request-tests.html
19+
versionless: true
20+
1721
- label: Docs Contributions
1822
children:
1923
- label: Contribution Guidelines

src/_data/toc/software-update-guide.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,28 @@ pages:
2121
- label: Update and upgrade checklist
2222
url: /comp-mgr/prereq/prereq_compman-checklist.html
2323

24+
- label: Safe Upgrade Tool
25+
url: /safe-upgrade-tool/introduction.html
26+
versionless: true
27+
edition: ee-only
28+
children:
29+
30+
- label: Prerequisites
31+
url: /safe-upgrade-tool/prerequisites.html
32+
versionless: true
33+
34+
- label: Install
35+
url: /safe-upgrade-tool/install.html
36+
versionless: true
37+
38+
- label: Run the tool
39+
url: /safe-upgrade-tool/run.html
40+
versionless: true
41+
42+
- label: Developer information
43+
url: /safe-upgrade-tool/developer.html
44+
versionless: true
45+
2446
- label: Magento Marketplace example
2547
url: /comp-mgr/marketplace/marketplace.html
2648
include_versions: ["2.3"]

src/_data/toc/testing.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ pages:
7070
- label: Running Static Tests
7171
url: /test/static/static_test_execution.html
7272

73+
- label: Setting up for Static Analysis
74+
url: /test/static/static-analysis.html
75+
7376
- label: Semantic Version Checker
7477
children:
7578

src/_data/whats-new.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,23 @@ 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 11 15:41:03 2021
7+
updated: Mon Jan 18 15:45:43 2021
88
entries:
9+
- description: SendGrid DKIM signatures are available only on Magento Commerce Cloud
10+
Pro projects. For more information on SendGrid, see https://devdocs.magento.com/cloud/project/sendgrid.html.
11+
versions: 2.4.x
12+
type: Major Update
13+
date: January 14, 2021
14+
link: https://github.com/magento/devdocs/pull/8440
15+
contributor: bdenham
16+
profile: https://github.com/bdenham
17+
- description: New Relic Alerts now include Redis and MariaDB. See https://devdocs.magento.com/cloud/project/new-relic.html#monitor-performance-with-managed-alerts.
18+
versions: 2.4.x
19+
type: Major Update
20+
date: January 12, 2021
21+
link: https://github.com/magento/devdocs/pull/8503
22+
contributor: bdenham
23+
profile: https://github.com/bdenham
924
- description: Added a [legal disclaimer](https://devdocs.magento.com/compliance/privacy/pi-data-reference-m2.html#customer-data)
1025
to references of the `date_of_birth` attribute of the `customer` database entity.
1126
versions: 2.3.x, 2.4.x
@@ -1644,7 +1659,7 @@ entries:
16441659
type: Technical
16451660
date: April 9, 2020
16461661
link: https://github.com/magento/devdocs/pull/7016
1647-
- description: Fixed a config entry in the the [Custom import entity](https://devdocs.magento.com/guides/v2.3/ext-best-practices/tutorials/custom-import-entity.html)
1662+
- description: Fixed a config entry in the [Custom import entity](https://devdocs.magento.com/guides/v2.3/ext-best-practices/tutorials/custom-import-entity.html)
16481663
topic.
16491664
versions: 2.3.x
16501665
type: Technical

src/_includes/cloud/error-codes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Critical errors indicate a problem with the {{ site.data.var.ece }} project conf
4848
| 106 | | Unable to read the `.schema.yaml` file | |
4949
| 107 | pre-deploy: clean-redis-cache | Failed to clean the Redis cache | Failed to clean the Redis cache. Check that the Redis cache configuration is correct and that the Redis service is available. See [Setup Redis service](https://devdocs.magento.com/cloud/project/services-redis.html). |
5050
| 108 | pre-deploy: set-production-mode | Command `/bin/magento maintenance:enable` failed | Check the `cloud.log` for more information. For more detailed command output, add the `VERBOSE_COMMANDS: '-vvv'` option to the `.magento.env.yaml` file. |
51-
| 109 | validate-config | Incorrect database configuration | Check that the the `DATABASE_CONFIGURATION` environment variable is configured correctly. |
51+
| 109 | validate-config | Incorrect database configuration | Check that the `DATABASE_CONFIGURATION` environment variable is configured correctly. |
5252
| 110 | validate-config | Incorrect session configuration | Check that the `SESSION_CONFIGURATION` environment variable is configured correctly. The configuration must contain at least the `save` parameter. |
5353
| 111 | validate-config | Incorrect search configuration | Check that the `SEARCH_CONFIGURATION` environment variable is configured correctly. The configuration must contain at least the `engine` parameter. |
5454
| 112 | validate-config | Incorrect resource configuration | Check that the `RESOURCE_CONFIGURATION` environment variable is configured correctly. The configuration must contain at least `connection` parameter. |

src/_includes/install/sampledata/sample-data-clone-24.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ To clone the Magento sample data GitHub repository using the SSH protocol:
8787

8888
1. See [Set file system permissions and ownership](#samp-data-perms).
8989

90+
1. Run the following command:
91+
92+
```bash
93+
bin/magento setup:upgrade
94+
```
95+
9096
### Clone with HTTPS {#instgde-prereq-compose-clone-https}
9197

9298
To clone the Magento sample data GitHub repository using the HTTPS protocol:

src/_includes/install/sampledata/sample-data-clone.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ To clone the Magento sample data GitHub repository using the SSH protocol:
8787

8888
1. See [Set file system permissions and ownership](#samp-data-perms).
8989

90+
1. Run the following command:
91+
92+
```bash
93+
bin/magento setup:upgrade
94+
```
95+
9096
### Clone with HTTPS {#instgde-prereq-compose-clone-https}
9197

9298
To clone the Magento sample data GitHub repository using the HTTPS protocol:

src/_includes/layout/page-header.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,10 @@ <h2 class="page-subtitle no_toc">{{ page.subtitle }}</h2>
4949
</div>
5050
{% endif %}
5151

52+
{% if page.url contains "safe-upgrade-tool/" %}
53+
<div class="message-banner">
54+
This tool is an ALPHA version with limited scope, available for all Magento Commerce merchants, and only validating PHP Magento APIs and GraphQL schema. If you are a Magento Commerce user you can download it at the <a href="https://repo.magento.com/">Magento repo</a>.
55+
</div>
56+
{% endif %}
57+
5258
</section>

src/_videos/fundamentals/add-new-product-attribute.md

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
8787

8888
{% endcollapsible %}
8989

90-
## Step 2 Create an InstallData script
90+
## Step 2 Create an InstallData script {#CreateProductAttributeByUpgradeScript}
9191

9292
Next, we need to create the InstallData script.
9393
Because adding an attribute technically adds records into several tables, such as `eav_attribute` and `catalog_eav_attribute,` this is data manipulation, not a schema change.
@@ -196,7 +196,7 @@ For now, we’ll just quickly go through most important ones:
196196
* **visible_on_front:** A flag that defines whether an attribute should be shown on the “More Information” tab on the frontend
197197
* **is_html_allowed_on_front:** Defines whether an attribute value may contain HTML
198198

199-
## Step 3: Add a source model
199+
## Step 3: Add a source model {#AddSourceModel}
200200

201201
Next, we need to create the source model:
202202

@@ -337,3 +337,54 @@ backend model has executed successfully, so now we’ll set it to Wool and save
337337

338338
Having saved the product, we’ll now move to the frontend.
339339
It should be visible and in bold text.
340+
341+
## Product Attribute Option Creation
342+
343+
A product attribute of type multiselect or select will present selectable options to the user. These options may be added manually through the admin panel or by upgrade script. The script process is slightly different depending on whether the options are being added at the moment of attribute creation or whether the options are being added at a later time to an existing attribute.
344+
345+
### Add options to a new prouduct attribute {#AddOptionsAlongNewProductAttribute}
346+
347+
Basic instructions for creating a product attribute by setup or upgrade script can be found [above](#CreateProductAttributeByUpgradeScript). Before scripting the attribute creation, pick one of these two use cases for your options:
348+
349+
1. You want a set of options which cannot be modified by a user through the admin panel and which can only be changed through a future code push.
350+
1. You want a set of options which can be modified, added or deleted through the admin panel.
351+
352+
For use case `1` (an 'immutable' set of options), follow the above instructions ["Add a source model"](#AddSourceModel). You will create a model that contains and dynamically returns the attribute's selectable options to the client.
353+
354+
For use case `2` (a 'mutable' set of options), see ["EAV and extension attributes"]({{ site.baseurl }}/guides/v2.4/extension-dev-guide/attributes.html). Make sure to declare 'Magento\Eav\Model\Entity\Attribute\Source\Table' as the value for the 'source' attribute option. This ensures that Magento will store options in the appropriate database table.
355+
356+
With `\Magento\Eav\Setup\EavSetup.php::addAttribute()` and `\Magento\Eav\Setup\EavSetup.php::addAttributeOptions()` you can add a series of options with the following array:
357+
358+
```php
359+
'option' => ['values' => ['Option 1', 'Option 2', 'Option 3', etc.]];
360+
```
361+
362+
Alternatively, you may designate a specific option sorting order as follows:
363+
364+
```php
365+
'option' => ['values' => [8 => 'Option 1', 3 => 'Option 2', 11 => 'Option 3', etc.]]
366+
```
367+
368+
### Add options to an existing product attribute
369+
370+
* To add options to an 'immutable' set of options, modify the custom source model with the additional options you wish to provide.
371+
372+
* Adding options to a 'mutable' set of options leverages the same `EavSetup` object as you use when creating an attribute with options, but requires an additional step because `EavSetup` needs to know to which attribute you want to assign new options.
373+
374+
1. Assign an array of new options to a variable:
375+
376+
```php
377+
$options = ['attribute_id' => null, 'values' => 'Option 1', 'Option 2', etc]];
378+
```
379+
380+
1. Update your array with the attribute ID from the database:
381+
382+
```php
383+
$options['attribute_id'] = $eavSetup->getAttributeId($eavSetup->getEntityTypeId('catalog_product'), 'your_attribute_code');
384+
```
385+
386+
1. Add your options:
387+
388+
```php
389+
$eavSetup->addAttributeOption($options);
390+
```

src/cloud/env/environment-vars_magento.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Users that have administrative access to the {{site.data.var.ece}} project can u
1212

1313
Use the ADMIN variables in the following table to override credentials for the Magento Admin user during installation.
1414

15-
If you want to change the values after installation, connect to your environment using ssh and use the the Magento CLI [`admin:user` command]({{ site.baseurl }}/guides/v2.3/install-gde/install/cli/install-cli-subcommands-admin.html) to create or edit the Magento Admin user credentials.
15+
If you want to change the values after installation, connect to your environment using ssh and use the Magento CLI [`admin:user` command]({{ site.baseurl }}/guides/v2.3/install-gde/install/cli/install-cli-subcommands-admin.html) to create or edit the Magento Admin user credentials.
1616

1717
| Variable | Default | Description |
1818
| -------------- | --------------------------- | ----------- |

0 commit comments

Comments
 (0)