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

Commit 48e769e

Browse files
authored
Merge branch 'master' into issue-8490-crontab-sample-change
2 parents e488e25 + f5caa98 commit 48e769e

Some content is hidden

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

41 files changed

+866
-100
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/var.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ mcp-package: magento/magento-cloud-patches
3131
mcp-release: 1.0.8
3232
mcd-package: magento/magento-cloud-docker
3333
mcd-prod: Magento Cloud Docker
34-
mcd-release: 1.2.0
34+
mcd-release: 1.2.1
3535
mcc-prod: Magento Cloud Components
3636
mcc-package: magento/magento-cloud-components
3737
mcc-release: 1.0.7

src/_data/whats-new.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,38 @@ 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 4 22:34:52 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
24+
- description: Added a [legal disclaimer](https://devdocs.magento.com/compliance/privacy/pi-data-reference-m2.html#customer-data)
25+
to references of the `date_of_birth` attribute of the `customer` database entity.
26+
versions: 2.3.x, 2.4.x
27+
type: Major Update
28+
date: January 8, 2021
29+
link: https://github.com/magento/devdocs/pull/8488
30+
contributor: jeff-matthews
31+
profile: https://github.com/jeff-matthews
32+
- description: Published release notes for [Cloud Docker 1.2.1](https://devdocs.magento.com/cloud/release-notes/mcd-release-notes.html#v121).
33+
versions: 2.4.x
34+
type: Major Update
35+
date: December 22, 2020
36+
link: https://github.com/magento/devdocs/pull/8429
37+
contributor: bdenham
38+
profile: https://github.com/bdenham
939
- description: Added a new topic with instructions for [reverting from a split database
1040
to a single database](https://devdocs.magento.com/guides/v2.4/config-guide/revert-split-database.html)
1141
implementation.

src/_includes/layout/page-header.html

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

45+
{% if page.url contains "safe-upgrade-tool/" %}
46+
<div class="message-banner">
47+
This tool is still in ALPHA with limited scope. If you are a Magento Commerce user you can download it at <a href="https://repo.magento.com/">Magento repo</a>.
48+
</div>
49+
{% endif %}
50+
4551
</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/docker/docker-containers-service.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ The default Magento Cloud Docker configuration includes the MailHog service as a
163163
By default, MailHog listens on port 1025 for SMTP and port 8025 for the frontend dashboard and API (HTTP). You can change the default ports using the `--mailhog-http-port` and `--mailhog-smtp-port` options. When you build the Docker compose configuration, you can change the default ports:
164164

165165
```bash
166-
./vendor/bin/ece-docker build:compose --mailhog-smtp-port=1026 --mailhog-http-port=8026
166+
./vendor/bin/ece-docker build:compose --mailhog-smtp-port=1025 --mailhog-http-port=8025
167167
```
168168

169-
After updating the configuration and restarting the Docker environment, you can connect to the MailHog service from `http://magento2.docker:8026`, and use port 1026 for SMTP communication.
169+
After updating the configuration and restarting the Docker environment, you can connect to the MailHog service from `http://magento2.docker:8025`, and use port 1025 for SMTP communication.
170170

171171
If needed, you can disable the MailHog service when you generate the Docker compose configuration:
172172

src/cloud/docker/docker-development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ You can use the Docker environment to emulate the {{site.data.var.ece}} Integrat
4444

4545
{{site.data.var.mcd-prod}} is a Magento Community Engineering project supported by the Magento developer community. You have several options to get support and learn more about {{site.data.var.mcd-prod}} and Magento local development.
4646

47-
- **[Magento Community Engineering Slack organization]**–For support, questions, or discussion, chat with us in the **#cloud-docker** and **#cloud** channels. To join, send a request to _engcom@magento.com_ or [sign yourself up] using Slack.
47+
- **[Magento Community Engineering Slack organization]**–For support, questions, or discussion, chat with us in the **#cloud-docker** and **#cloud** channels. To join, send a request to _engcom@adobe.com_ or [sign yourself up] using Slack.
4848

4949
- **[{{site.data.var.mcd-package}} GitHub repository]**–Visit the GitHub repository to read discussions about current issues, check current development, and submit issues or pull requests to improve the project.
5050

src/cloud/project/new-relic.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ Based on industry best practices, the policy includes a collection of alerts tha
259259
| disk space | NRI | Pro
260260
| CPU usage | NRI | Pro
261261
| memory usage | NRI | Pro
262+
| Redis | NRI | Pro
263+
| MariaDB | NRI | Pro
262264

263265
When site infrastructure or application conditions trigger an alert threshold, New Relic sends alert notifications so that you can proactively address the issue. See [Managed Alerts for Magento Commerce] in the _Magento Help Center_ for details about alert thresholds and troubleshooting steps to resolve the issues that triggered the alert.
264266

src/cloud/project/project-webint-snap.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,9 @@ You can also backup only selected databases by appending the database names to t
123123

124124
```bash
125125
php vendor/bin/ece-tools -- main sales
126+
```
126127

127-
For help, use the command: ```php vendor/bin/ece-tools db-dump --help ```
128+
For help, use the command: `php vendor/bin/ece-tools db-dump --help`
128129

129130
{:.procedure}
130131
To create a database dump:

0 commit comments

Comments
 (0)