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

Commit 1db2d5f

Browse files
committed
Merge branch 'master' into 2.4.2-develop
2 parents 0614f90 + e2d20aa commit 1db2d5f

File tree

83 files changed

+347
-120360
lines changed

Some content is hidden

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

83 files changed

+347
-120360
lines changed

src/_data/whats-new.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2450,7 +2450,7 @@ entries:
24502450
date: October 8, 2019
24512451
link: https://github.com/magento/devdocs/pull/5586
24522452
- description: Updated the REST schema for [2.3.3](https://devdocs.magento.com/redoc/2.3/)
2453-
and [2.2.10](https://devdocs.magento.com/swagger/index_22.html).
2453+
and [2.2.10](https://devdocs.magento.com/swagger/index.html).
24542454
versions: 2.2.10, 2.3.3
24552455
type: Major update
24562456
date: October 8, 2019
@@ -3170,7 +3170,7 @@ entries:
31703170
date: June 22, 2019
31713171
link: https://github.com/magento/devdocs/pull/4824
31723172
- description: Updated the REST schema for [2.3.2](https://devdocs.magento.com/redoc/2.3/)
3173-
and [2.2.9](https://devdocs.magento.com/swagger/index_22.html).
3173+
and [2.2.9](https://devdocs.magento.com/swagger/index.html).
31743174
versions: 2.2.9, 2.3.2
31753175
type: Major update
31763176
date: June 22, 2019
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
## Command-line upgrade to Magento {{ page.guide_version }} with sample data
2+
3+
These instructions apply to {{site.data.var.ce}} and {{site.data.var.ee}} users *only* if all of the following are true:
4+
5+
* You have installed optional sample data
6+
* You are upgrading to Magento {{ page.guide_version }} (including a Release Candidate) from any earlier version using the command line
7+
8+
To upgrade to Magento {{ page.guide_version }} sample data using the command line:
9+
10+
1. Log in to your Magento server as, or switch to, the [Magento file system owner].
11+
1. Change to the Magento installation directory.
12+
1. Back up your current `composer.json` file:
13+
14+
```bash
15+
cp composer.json composer.json.bak
16+
```
17+
18+
1. Upgrade the Magento software version using commands of the following format:
19+
20+
```bash
21+
composer require <product> <version> --no-update
22+
```
23+
24+
```bash
25+
composer require <sample data module-1>:<version> ... <sample data module-n>:<version> --no-update
26+
```
27+
28+
* Example for {{site.data.var.ce}}:
29+
30+
```bash
31+
composer require magento/product-community-edition {{ page.guide_version }}.0 --no-update
32+
```
33+
34+
```bash
35+
composer require magento/module-bundle-sample-data:100.4.* magento/module-widget-sample-data:100.4.* magento/module-theme-sample-data:100.4.* magento/module-catalog-sample-data:100.4.* magento/module-customer-sample-data:100.4.* magento/module-cms-sample-data:100.4.* magento/module-catalog-rule-sample-data:100.4.* magento/module-sales-rule-sample-data:100.4.* magento/module-review-sample-data:100.4.* magento/module-tax-sample-data:100.4.* magento/module-sales-sample-data:100.4.* magento/module-grouped-product-sample-data:100.4.* magento/module-downloadable-sample-data:100.4.* magento/module-msrp-sample-data:100.4.* magento/module-configurable-sample-data:100.4.* magento/module-product-links-sample-data:100.4.* magento/module-wishlist-sample-data:100.4.* magento/module-swatches-sample-data:100.4.* magento/sample-data-media:100.4.* magento/module-offline-shipping-sample-data:100.4.* --no-update
36+
```
37+
38+
* Example for {{site.data.var.ee}}:
39+
40+
```bash
41+
composer require magento/product-enterprise-edition {{ page.guide_version }}.0 --no-update
42+
```
43+
44+
```bash
45+
composer require magento/module-bundle-sample-data:100.4.* magento/module-widget-sample-data:100.4.* magento/module-theme-sample-data:100.4.* magento/module-catalog-sample-data:100.4.* magento/module-customer-sample-data:100.4.* magento/module-cms-sample-data:100.4.* magento/module-catalog-rule-sample-data:100.4.* magento/module-sales-rule-sample-data:100.4.* magento/module-review-sample-data:100.4.* magento/module-tax-sample-data:100.4.* magento/module-sales-sample-data:100.4.* magento/module-grouped-product-sample-data:100.4.* magento/module-downloadable-sample-data:100.4.* magento/module-msrp-sample-data:100.4.* magento/module-configurable-sample-data:100.4.* magento/module-product-links-sample-data:100.4.* magento/module-wishlist-sample-data:100.4.* magento/module-swatches-sample-data:100.4.* magento/sample-data-media:100.4.* magento/module-offline-shipping-sample-data:100.4.* magento/module-gift-card-sample-data:100.4.* magento/module-customer-balance-sample-data:100.4.* magento/module-target-rule-sample-data:100.4.* magento/module-gift-registry-sample-data:100.4.* magento/module-multiple-wishlist-sample-data:100.4.* --no-update
46+
```
47+
48+
{% include note.html
49+
type="info"
50+
content="To upgrade to a Release Candidate, append `-rc<x>` to the version of each module. For example, `-rc3`."
51+
%}
52+
53+
1. Update dependencies:
54+
55+
```bash
56+
composer update
57+
```
58+
59+
1. If prompted, enter your [authentication keys].
60+
1. Wait for dependencies to update.
61+
62+
### Finish your upgrade
63+
64+
After you have reset file system permissions:
65+
66+
1. If you have not done so already, log in to your Magento server as, or switch to, the Magento file system owner.
67+
1. Change to your Magento installation directory.
68+
1. Manually clear the `var/cache`, `var/page_cache`, and `var/generation` directories.
69+
70+
A sample command follows:
71+
72+
```bash
73+
rm -rf var/cache/* var/page_cache/* var/generation/*
74+
```
75+
76+
1. Upgrade Magento:
77+
78+
```bash
79+
bin/magento setup:upgrade
80+
```
81+
82+
{% include install/sampledata/file-sys-perms-digest.md %}
83+
84+
<!-- Link definitions -->
85+
[Magento file system owner]: {{ page.baseurl }}/install-gde/prereq/file-sys-perms-over.html
86+
[authentication keys]: {{ page.baseurl }}/install-gde/prereq/connect-auth.html

src/cloud/reference/discover-deploy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ A set of YAML configuration files located in the project root directory define y
3131

3232
For all Starter environments and Pro Integration environments, pushing your Git branch updates all settings and configurations dependent on these files.
3333

34-
- [`.magento.app.yaml`]({{ site.baseurl }}/cloud/project/magento-app.html)—defines how to build and deploy Magento, including services, hooks, cron jobs, and more.
34+
- [`.magento.app.yaml`]({{ site.baseurl }}/cloud/project/magento-app.html)—defines how to build and deploy Magento, including user access, service mapping (relationships), hooks, cron jobs, and more.
3535
- [`.magento.env.yaml`]({{ site.baseurl }}/cloud/project/magento-env-yaml.html)—centralizes the management of build and deploy actions across all of your environments, including Pro Staging and Production, using environment variables.
3636
- [`.magento/routes.yaml`]({{ site.baseurl }}/cloud/project/routes.html)—defines how Magento processes an incoming URL.
37-
- [`.magento/services.yaml`]({{ site.baseurl }}/cloud/project/services.html)—defines the services Magento uses by name and version. For example, this file may include versions of MySQL, PHP extensions, and Elasticsearch. These are referred to as *services*.
37+
- [`.magento/services.yaml`]({{ site.baseurl }}/cloud/project/services.html)—defines the services Magento uses by name and version. For example, this file can include versions of MySQL, PHP extensions, and Elasticsearch. These are referred to as *services*.
3838
- [`app/etc/config.php`]({{ site.baseurl }}/cloud/live/sens-data-over.html)—defines the [system-specific settings]({{ site.baseurl }}/cloud/live/sens-data-over.html#configuration-data) Magento uses to configure your store. Magento generates this file if it does not detect it during the build phase. See [Configuration Management]({{ site.baseurl }}/cloud/live/sens-data-over.html) for information on how to use this file to manage and synchronize the Magento application configuration across your Cloud environments.
3939

4040
## Required files for your Git branch {#requiredfiles}

src/guides/v2.3/extension-dev-guide/extension_attributes/adding-attributes.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ Now we need to bind our plugin to `ProductInterface`:
181181

182182
## Extension Attributes Configuration:
183183

184-
For scalar attributes we can use next configuration:
184+
The file that holds these extension attributes must reside under the `/etc` folder of your module.
185+
186+
For scalar attributes, we can use the following configuration:
185187

186188
```xml
187189
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
@@ -192,6 +194,8 @@ For scalar attributes we can use next configuration:
192194
</config>
193195
```
194196

197+
Here, the scalar attributes indicate the simple form of attribute representation, such as an integer or a string. Specify the class or interface of the extension attributes inside the "for" attribute of the `<extension_attributes>` tag. In this case, it is the ProductInterface. The attribute is specified with a unique code and its type.
198+
195199
For non-scalar attributes:
196200

197201
```xml
@@ -202,6 +206,8 @@ For non-scalar attributes:
202206
</config>
203207
```
204208

209+
Here, the non-scalar attributes indicate data objects such as the instance of a class. In the above example, the CustomDataInterface object is added as an extension attribute.
210+
205211
For array extension attributes:
206212

207213
```xml
@@ -212,6 +218,8 @@ For array extension attributes:
212218
</config>
213219
```
214220

221+
The array extension attributes are just an extension of the scalar attributes where a range of values can be represented as an attribute. The `[]` symbol indicates the attribute type is an array.
222+
215223
The array indicator `[]` can also be appended to non-scalar types.
216224

217225
In first - scalar - case we will get the next result:

src/guides/v2.3/extension-dev-guide/indexing.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ The Magento indexing mechanism uses the status value in reindex triggering proce
9999
Reindexing can be performed in two modes:
100100

101101
* Update on Save - index tables are updated immediately after the dictionary data is changed.
102+
103+
{:.bs-callout-info}
104+
**Update on Save** indexers must use custom code (plugins, events or any other working approach) in order to trigger reindexing when entities are saved/deleted etc.
105+
102106
* Update by Schedule - index tables are updated by cron job according to the configured schedule.
103107

104108
{:.bs-callout-info}

src/guides/v2.3/extension-dev-guide/searching-with-repositories.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,3 +507,6 @@ The `di.xml` configuration file excerpt below shows how you can create a virtual
507507
</arguments>
508508
</type>
509509
```
510+
511+
{:.bs-callout-info}
512+
When building an EAV Model that needs to implement the `Repository::getList` method, use the EAV Filter Processor; otherwise the custom filters will not be added to the collection.

src/guides/v2.3/frontend-dev-guide/css-guide/css_quick_guide_approach.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,31 @@ To extend the parent theme's styles in your theme:
2626

2727
1. Add your Less code in this file.
2828

29+
However, the above only works if the theme's parent is a Blank. Consider a Theme A which is the child of Blank. Theme A has two children, B and C. A global style rule is added to the `_extend.less` file of theme A. This extends its parent Blank. Theme B and C also have their own `_extend.less` files. Theme B and C will override the parent (Theme A), rather than extending it further. Theme B & Theme C are extending their grandparent (Blank) and overriding their parent (Theme A) in this setup.
30+
31+
In case of subsequent descendants of the child theme, you can avoid this behavior by following these steps:
32+
33+
1. Create a `_extend-child.less` in both your parent and child themes.
34+
1. Keep `_extend-child.less` empty in your parent theme and add it too your parent theme's `_extend.less` file.
35+
1. Add a `@import '_extend-child.less'` rule to the end of your parent's theme's `_extend.less` file.
36+
1. In your child theme, add `@import` or style rules in `_extend-child.less` to extend parent theme's CSS.
37+
38+
```tree
39+
app/design/frontend/Vendor/
40+
├── parent
41+
│ └── web
42+
│ └── css
43+
│ └── source
44+
│ ├── _extend-child.less (keep this file empty)
45+
│ └── _extend.less
46+
└── child
47+
└── web
48+
└── css
49+
└── source
50+
└── _extend-child.less
51+
...
52+
```
53+
2954
Extending a theme using `_extend.less` is the simplest option when you are happy with everything the parent theme has, but want to add more styles.
3055

3156
{:.bs-callout-info}

src/guides/v2.3/frontend-dev-guide/css-topics/using-fonts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ To ensure the stability of your customizations and prevent upgrades from overwri
6464

6565
Fallback web fonts that are used by default in Magento are located in `lib/web/css/source/lib/variables/_typography.less`.
6666

67-
For more information about font-face, refer to this article [Font-face][https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face]{:target="_blank"}.
67+
For more information about font-face, refer to this article [Font-face](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face){:target="_blank"}.
6868

6969
## `<font>` head type
7070

src/guides/v2.3/graphql/index.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ landing-page: GraphQL Developer's Guide
1010

1111
As of Magento 2.3.4, GraphQL provides the following features:
1212

13-
* Support for all product types, payment methods, and shipping methods
14-
* Achieved <.5 sec average response times with 500 concurrent requests
15-
* Redesigned a feature rich layered navigation
13+
- Support for all product types, payment methods, and shipping methods
14+
- Achieved <.5 sec average response times with 500 concurrent requests
15+
- Redesigned a feature rich layered navigation
1616

1717
## Where we're going
1818

1919
The `graphql-ce` Community Engineering repository has been archived. Development for Magento 2.3.5 will be limited to bug fixes.
2020

2121
For the 2.4.0 and 2.4.1 releases, Magento teams are working toward completing GraphQL coverage for Business to Consumer (B2C) uses cases, with emphasis on the following:
2222

23-
* Reorders
24-
* Inventory Management store pickups
25-
* Order history for logged in customers
26-
* Replace product-specific mutations that add products to a cart with a single mutation that can handle all product types
27-
* Gift wrapping and messages
28-
* Saved payment methods
23+
- Reorders
24+
- Inventory Management store pickups
25+
- Order history for logged in customers
26+
- Replace product-specific mutations that add products to a cart with a single mutation that can handle all product types
27+
- Gift wrapping and messages
28+
- Saved payment methods
2929

3030
We also expect to begin adding coverage for B2B scenarios.
3131

src/guides/v2.3/graphql/queries/cms-page.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@ Return the contents of a CMS page:
1515

1616
## Example usage
1717

18-
The following query returns information about the "404 Not Found" CMS page:
18+
You must include the CMS page identifier value to retrieve the content of a specific CMS page. The following query returns information about the "404 Not Found" CMS page:
1919

2020
**Request:**
2121

2222
```graphql
2323
{
2424
cmsPage(identifier: "no-route") {
25+
identifier
2526
url_key
2627
title
2728
content
@@ -40,6 +41,7 @@ The following query returns information about the "404 Not Found" CMS page:
4041
{
4142
"data": {
4243
"cmsPage": {
44+
"identifier": "no-route"
4345
"url_key": "no-route",
4446
"title": "404 Not Found",
4547
"content": "<dl>\r\n<dt>The page you requested was not found, and we have a fine guess why.</dt>\r\n<dd>\r\n<ul class=\"disc\">\r\n<li>If you typed the URL directly, please make sure the spelling is correct.</li>\r\n<li>If you clicked on a link to get here, the link is outdated.</li>\r\n</ul></dd>\r\n</dl>\r\n<dl>\r\n<dt>What can you do?</dt>\r\n<dd>Have no fear, help is near! There are many ways you can get back on track with Magento Store.</dd>\r\n<dd>\r\n<ul class=\"disc\">\r\n<li><a href=\"#\" onclick=\"history.go(-1); return false;\">Go back</a> to the previous page.</li>\r\n<li>Use the search bar at the top of the page to search for your products.</li>\r\n<li>Follow these links to get you back on track!<br /><a href=\"http://magento2.vagrant193/\">Store Home</a> <span class=\"separator\">|</span> <a href=\"http://magento2.vagrant193/customer/account/\">My Account</a></li></ul></dd></dl>\r\n",

src/guides/v2.3/graphql/tutorials/checkout/checkout-add-product-to-cart.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ If you add a product to the shopping cart as a registered customer, be sure to s
3131

3232
## Add a simple product into the shopping cart
3333

34-
`{ CART_ID }` is the unique shopping cart ID from [Step 2. Create empty cart]({{ page.baseurl }}/graphql/tutorials/checkout/checkout-add-product-to-cart.html).
34+
The following mutation adds a simple product into the shopping cart.
3535

36-
The following mutation adds a **simple product** into shopping cart.
36+
Replace `{ CART_ID }` with the unique shopping cart ID from [Step 2. Create empty cart]({{ page.baseurl }}/graphql/tutorials/checkout/checkout-add-product-to-cart.html).
37+
38+
In this example, we will add the Aim Analog Watch (SKU 24-MG04) from the default Luma catalog to the cart. The SKU identifies the product to be added.
3739

3840
**Request:**
3941

@@ -46,7 +48,7 @@ mutation {
4648
{
4749
data: {
4850
quantity: 1
49-
sku: "simple-product"
51+
sku: "24-MG04"
5052
}
5153
}
5254
]
@@ -75,9 +77,9 @@ mutation {
7577
"cart": {
7678
"items": [
7779
{
78-
"id": "508",
80+
"id": "5",
7981
"product": {
80-
"sku": "simple-product",
82+
"sku": "24-MG04",
8183
"stock_status": "IN_STOCK"
8284
},
8385
"quantity": 1
@@ -91,7 +93,8 @@ mutation {
9193

9294
## Add a virtual product into the shopping cart
9395

94-
The following mutation adds a **virtual product** into shopping cart.
96+
The following mutation adds a virtual product into the shopping cart.
97+
In this example, we add the Beginner's Yoga video downloadable product (SKU 240-LV04).
9598

9699
**Request:**
97100

@@ -104,7 +107,7 @@ mutation {
104107
{
105108
data: {
106109
quantity: 1
107-
sku: "virtual-product"
110+
sku: "240-LV04"
108111
}
109112
}
110113
]
@@ -133,9 +136,17 @@ mutation {
133136
"cart": {
134137
"items": [
135138
{
136-
"id": "509",
139+
"id": "5",
137140
"product": {
138-
"sku": "virtual-product",
141+
"sku": "24-MG04",
142+
"stock_status": "IN_STOCK"
143+
},
144+
"quantity": 1
145+
},
146+
{
147+
"id": "6",
148+
"product": {
149+
"sku": "240-LV04",
139150
"stock_status": "IN_STOCK"
140151
},
141152
"quantity": 1
@@ -147,6 +158,8 @@ mutation {
147158
}
148159
```
149160

161+
The response lists all items currently in the cart, including the just-added video download.
162+
150163
## Verify this step {#verify-step}
151164

152165
1. Sign in as a customer to the website using the email `[email protected]` and password `b1b2b3l@w+`.

0 commit comments

Comments
 (0)