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

Commit 10af66e

Browse files
committed
Merge branch 'master' into 2.4.2-develop
2 parents 0544520 + 9b53c46 commit 10af66e

File tree

14 files changed

+320
-61
lines changed

14 files changed

+320
-61
lines changed

src/cloud/docker/docker-containers-service.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ The Test container, based on the [magento/magento-cloud-docker-php][php-cloud] D
218218
**Docker base image**: [magento/magento-cloud-docker-nginx:1.19-1.2.0][tls]<br>
219219
**Ports**: `443` (default), `8080:80` (Varnish bypass)<br/>
220220

221+
By default, the TLS container is included with the Docker Compose configuration. However, you can generate a configuration without TLS by adding the `--no-tls` option to the `ece-docker build:compose` command.
222+
221223
The TLS termination proxy container facilitates the Varnish SSL termination over HTTPS.
222224

223225
- The default port for TLS communication is `443`.
@@ -267,6 +269,11 @@ docker-compose exec varnish varnishadm ban req.url '~' '.'
267269

268270
The Web container uses NGINX to handle web requests after TLS and Varnish. This container passes all requests to the FPM container to serve the PHP code. See [Request flow]({{site.baseurl}}/cloud/docker/docker-containers.html#request-flow).
269271

272+
This container provides two NGINX configuration options for building the Docker configuration:
273+
274+
- `--nginx-worker-processes` to set the number of worker processes for NGINX. The default is `1`.
275+
- `--nginx-worker-connections` to set the maximum number of connections that each worker process can handle simultaneously. The default is `1024`.
276+
270277
The NGINX configuration for this container is the standard Magento [nginx config], which includes the configuration to auto-generate NGINX certificates for the container. You can customize the NGINX configuration by mounting a new configuration file using a volume.
271278

272279
{:.procedure}

src/cloud/docker/docker-containers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ The following table shows the options to customize service container configurati
5353
| [redis][redis-container] | Redis | `--redis` | 3.2, 4.0, 5.0 | Standard redis container
5454
| [selenium][selenium-container]| Selenium | `--with-selenium`<br>`--selenium-version`<br>`--selenium-image`| Any | Enables Magento application testing using the Magento Functional Testing Framework (MFTF)
5555
| [test][test-container]| PHP CLI | `--with-test`| Any | Optional container with a writable file system for running tests
56-
| [tls][tls-container] | SSL Endpoint | `--tls-port` | nginx 1.19-1.2.0, latest | Terminates SSL, can be configured to pass to varnish or nginx. Use the `--tls-port` option to change the default port (443).
56+
| [tls][tls-container] | SSL Endpoint | `--tls-port`<br/>`--no-tls` | nginx 1.19-1.2.0, latest | Terminates SSL, can be configured to pass to varnish or nginx. Use the `--tls-port` option to change the default port (443).<br/>Use the `--no-tls` option to disable tls.
5757
| [varnish][varnish-container] | Varnish | `--no-varnish` | 4, 6.2 | Varnish is provisioned by default. Use the `--no-varnish` option to skip Varnish service installation.
58-
| [web][web-container] | NGINX | `--nginx` | 1.19-1.2.0, latest | Use the `--nginx` option to install a specific nginx version.
58+
| [web][web-container] | NGINX | `--nginx`<br/>`--nginx-worker-processes`<br/>`--nginx-worker-connections` | 1.19-1.2.1, latest | Use the `--nginx` option to install a specific nginx version.<br/>Use the `--nginx-worker-processes` option to define the number of NGINX worker processes. The default is 1.<br/>Use the `--nginx-worker-connections` option to define the maximum number of connections that each worker process can handle simultaneously. The default is 1024 NGINX worker connections per process.
5959

6060
Use the following command to view all available options for the `ece-docker build:compose` command:
6161

src/cloud/docker/docker-quick-reference.md

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -54,60 +54,6 @@ View the available options for the `ece-docker build:compose` command:
5454
php ./vendor/bin/ece-docker build:compose -h
5555
```
5656

57-
```terminal
58-
Description:
59-
Build docker configuration
60-
61-
Usage:
62-
build:compose [options]
63-
64-
Options:
65-
--php=PHP PHP version
66-
--nginx=NGINX Nginx version
67-
--db=DB DB version
68-
--db-image=DB-IMAGE DB image
69-
--expose-db-port=EXPOSE-DB-PORT Expose DB port
70-
--expose-db-quote-port=EXPOSE-DB-QUOTE-PORT Expose port for DB sales
71-
--expose-db-sales-port=EXPOSE-DB-SALES-PORT Expose port for DB quote
72-
--with-entrypoint Add DB entrypoint volume
73-
--with-mariadb-conf Add MariaDb config volume
74-
--redis=REDIS Redis version
75-
--es=ES Elasticsearch version
76-
--rmq=RMQ RabbitMQ version
77-
--node=NODE Node.js version
78-
--selenium-version=SELENIUM-VERSION Selenium version
79-
--selenium-image=SELENIUM-IMAGE Selenium image
80-
--no-es Disable Elasticsearch
81-
--no-mailhog Disable MailHog
82-
--mailhog-http-port Custom HTTP port for MailHog
83-
--mailhog-smtp-port Custom SMTP port for MailHog
84-
--set-docker-host Sets host.docker.internal for fpm_xdebug container to
85-
resolve debug issue for LINUX system
86-
-m, --mode=MODE Mode of environment (developer, production)
87-
--sync-engine=SYNC-ENGINE File sync engine. Works only with developer mode. Available: (docker-sync, mutagen, native)
88-
--with-cron Add cron container
89-
--no-varnish Remove Varnish container
90-
--with-selenium Add Selenium latest version
91-
--with-test Add container for running tests
92-
--no-tmp-mounts Remove /tmp mounted volume
93-
--with-xdebug Enables XDebug
94-
--env-vars[=ENV-VARS] Cloud environment variables
95-
--installation-type[=INSTALLATION-TYPE] Sets magento installation type [default: "composer"]
96-
--host[=HOST] Host name
97-
--port[=PORT] Port
98-
--tls-port TLS port
99-
--es-env-var=ES-ENV-VAR Environment variable for elasticsearch service (multiple values allowed)
100-
--db-increment-increment=DB-INCREMENT-INCREMENT "auto_increment_increment" database variable
101-
--db-increment-offset=DB-INCREMENT-OFFSET "auto_increment_offset" database variable
102-
-h, --help Display this help message
103-
-q, --quiet Do not output any message
104-
-V, --version Display this application version
105-
--ansi Force ANSI output
106-
--no-ansi Disable ANSI output
107-
-n, --no-interaction Do not ask any interactive question
108-
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
109-
```
110-
11157
{:.bs-callout-info}
11258
See [Service versions] for additional information about the service configuration options for the `ece-docker build:compose` command.
11359

src/cloud/release-notes/mcd-release-notes.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,32 @@ The release notes include:
1616
- {:.new}New features
1717
- {:.fix}Fixes and improvements
1818

19+
## v1.2.1
20+
*Release date: December 21, 2020*<br/>
21+
22+
- {:.new}<!--MCLOUD-7259-->**NGINX command options**–Added build command options to change the number of NGINX `worker_processes` and NGINX `worker_connections` for TLS and Web services. The `worker_process` parameter retains the ability to set the value to `auto`. Examples:
23+
24+
```terminal
25+
./vendor/bin/ece-docker build:compose --nginx-worker-processes=2
26+
./vendor/bin/ece-docker build:compose --nginx-worker-connections=2048
27+
```
28+
29+
- {:.new}<!--MCLOUD-7259-->**TLS command option**–Added build command option to create a configuration without the TLS service. Example:
30+
31+
```terminal
32+
./vendor/bin/ece-docker build:compose --no-tls
33+
```
34+
35+
- {:.new}<!--MCLOUD-7259-->**NGINX memory consumption**–Reduced the memory consumed by the NGINX process for TLS and Web services.
36+
37+
- {:.new}<!--No ticket -->**Blackfire**–Disabled Blackfire PHP extension by default in the Cloud Docker image.
38+
39+
- {:.fix}<!--MCLOUD-7232-->**PHP-FPM container**–Fixed PHP-FPM container health check by changing the `WEB_PORT` from `80` to `8080`.
40+
41+
- {:.fix}<!--MCLOUD-7442-->**Invalid volume naming**–Fixed an error with invalid volume naming in developer mode.
42+
43+
- {:.fix}<!--Issue 295-->**NGINX upstream port**—Updated the Docker NGINX 1.19 image to use port 8080 to avoid an infinite loop. *[Fix submitted by Adarsh Manickam](https://github.com/magento/magento-cloud-docker/pull/296).*
44+
1945
## v1.2.0
2046
*Release date: November 9, 2020*<br/>
2147

src/guides/v2.3/b2b/bk-b2b.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ ConfigurableSharedCatalog |Enables configurable products to be added to a shared
4646
GiftCardNegotiableQuote | Enables gift cards to be displayed in a negotiable quote in an B2B environment | No
4747
GiftCardRequisitionList | Enables gift cards to be displayed in a requisition list | No
4848
GiftCardSharedCatalog | Enables gift cards to be added to a shared catalog in an B2B environment. | No
49+
GroupedRequisitionList | Enables grouped products to be displayed in a requisition list | No
4950
GroupedSharedCatalog | Enables grouped products to be added to a shared catalog in an B2B environment. | No
5051
NegotiableQuote | Allows a buyer and a seller (admin user) to negotiate product and/or shipping prices before the buyer places an order. | Yes
5152
NegotiableQuoteSharedCatalog | Enables the `NegotiableQuote` module to interact with a `SharedCatalog` in an B2B environment. | No

src/guides/v2.3/config-guide/revert-split-database.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ functional_areas:
88
- Setup
99
---
1010

11-
The [split database]({{ page.baseurl }}/config-guide/multi-master/multi-master.html) feature was deprecated in version 2.4.2 of {{ site.data.var.ee }}. Follow these instructions to revert from a split database to a single database implementation.
12-
13-
## Revert a split database implementation
11+
For {{ site.data.var.ee }} customers who have implemented [Split Database]({{ page.baseurl }}/config-guide/multi-master/multi-master.html), the following topic describes how to revert or migrate back to a single database. We recommend that {{ site.data.var.ee }} merchants currently using Split Database who are upgrading to 2.4.2 and above review these steps, as well as our [announcement](https://community.magento.com/t5/Magento-DevBlog/Deprecation-of-Split-Database-in-Magento-Commerce/ba-p/465187) on the planned deprecation of Split Database.
1412

1513
Reverting from a split database to a single database implementation involves creating backups of the `magento_quote` and `magento_sales` databases before loading them into the single `magento_main` database.
1614

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,13 @@ With the proxy used in place of `SlowLoading`, the `SlowLoading` class will not
7373
Because DI configuration is used to inject a proxy, proxies can be dropped in to replace their corresponding classes - or proxy replacements _removed_ - without touching application code.
7474

7575
As a practical example of a proxy, you can see the [StoreManager]({{ site.mage2bloburl }}/{{ page.guide_version }}/app/code/Magento/Store/Model/StoreManager.php){:target="_blank"} class and then see the generated `StoreManager` proxy class.
76+
77+
The following excerpt from the Magento code passes the `storeManager` argument as a proxy to the `Magento\Store\Model\Resolver\Store` class. The `StoreManagerInterface` model is defined as a proxy class by the added `Proxy` at the end of the original class in the `di.xml` file.
78+
79+
```xml
80+
<type name="Magento\Store\Model\Resolver\Store">
81+
<arguments>
82+
<argument name="storeManager" xsi:type="object">Magento\Store\Model\StoreManagerInterface\Proxy</argument>
83+
</arguments>
84+
</type>
85+
```

src/guides/v2.3/graphql/mutations/remove-giftcard.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,10 @@ Attribute | Data Type | Description
7777
{% include graphql/cart-object.md %}
7878

7979
[Cart query output]({{page.baseurl}}/graphql/queries/cart.html#cart-output) provides more information about the `Cart` object.
80+
81+
## Errors
82+
83+
Error | Description
84+
--- | ---
85+
`Could not find a cart with ID \"xxxxx\"` | The ID provided in the `cart_id` field is invalid or the cart does not exist for the customer.
86+
`The gift card couldn't be deleted from the quote.` | The value provided in the `gift_card_code` field is invalid or the gift card with that specific ID does not exist in the cart.

src/guides/v2.4/b2b/bk-b2b.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/guides/v2.4/b2b/bk-b2b.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
group: b2b-developer-guide
3+
subgroup: 01_Introduction
4+
title: B2B Developer Guide
5+
landing-page: B2B
6+
menu_title: B2B Developer Guide
7+
menu_order: 1
8+
menu_node: parent
9+
ee_only: True
10+
functional_areas:
11+
- B2B
12+
- Integration
13+
---
14+
15+
Unlike the standard business-to-consumer model, {{site.data.var.b2b}} (Business to Business) is designed to meet the needs of sellers (Magento merchants) whose customers are primarily companies—possibly with complex organizational structures and multiple users with various roles and levels of permission.
16+
17+
There are two basic actors in B2B model:
18+
19+
* A **seller** is an admin user that accesses the system from the Magento Admin panel.
20+
* A **buyer** is any customer associated with a company account who accesses the system from the storefront.
21+
22+
The Company component is the key entity within B2B on which all other features are in some way dependent. It allows joining multiple buyers that belong to the same company into a single company account (or corporate account). The company admin is able to build the company structure (divisions, subdivisions and users) in the appropriate hierarchy and provide different user roles and permissions to the company members. Such a hierarchy allows the company admin to control user activity within an account: ordering, quoting, purchasing, access to company credit info or profile, etc. In addition, a seller can configure how the buying company operates at the website: including the payment methods, pricing levels, the ability to negotiate over prices, and the ability to create requisition lists.
23+
24+
Companies have an option to Pay on Account, or in other words make purchases in credit. The seller allocates credit for a company account and manages credit settings for a company as well as credit reimbursement.
25+
26+
Shared catalogs are the pricing levels that allow setting custom prices per product for different companies on one or multiple websites. By using shared catalogs, a seller can sell this product by applying different pricing levels for different customer groups.
27+
28+
The seller and a buyer representing a company can negotiate the price of an order prior to order placement. This functionality is supported by the Negotiable Quote module. It means that before making an order, the buyer can initiate negotiations with the seller on prices and discounts. Negotiations suggest that the created quote may be submitted, reviewed and modified several times before it is converted into an order.
29+
30+
## B2B Modules
31+
32+
{{site.data.var.b2b}} is a set of modules that are installed on top of {{site.data.var.ee}}. The following table lists the modules provided with B2B.
33+
34+
Name | Description | WebAPI enabled?
35+
--- | --- | ---
36+
B2b | The base module for B2B. It also provides branding elements. | No
37+
BundleNegotiableQuote | Enables bundle products to be displayed in a negotiable quote in an B2B environment | No
38+
BundleRequisitionList | Enables bundle products to be displayed in a requisition list | No
39+
BundleSharedCatalog | Enables bundle products to be added to a shared catalog in an B2B environment. | No
40+
Company | Allows a seller to create a company account and assign multiple members of the company to the account. | Yes
41+
CompanyCredit | Adds the Payment on Account payment method for B2B companies. | Yes
42+
CompanyPayment | Allows a seller to configure which payment methods are available for B2B companies. | No
43+
ConfigurableNegotiableQuote | Enables configurable products to be displayed in a negotiable quote in an B2B environment | No
44+
ConfigurableRequisitionList | Enables configurable products to be displayed in a requisition list | No
45+
ConfigurableSharedCatalog |Enables configurable products to be added to a shared catalog in an B2B environment. | No
46+
GiftCardNegotiableQuote | Enables gift cards to be displayed in a negotiable quote in an B2B environment | No
47+
GiftCardRequisitionList | Enables gift cards to be displayed in a requisition list | No
48+
GiftCardSharedCatalog | Enables gift cards to be added to a shared catalog in an B2B environment. | No
49+
GroupedRequisitionList | Enables grouped products to be displayed in a requisition list | No
50+
GroupedSharedCatalog | Enables grouped products to be added to a shared catalog in an B2B environment. | No
51+
NegotiableQuote | Allows a buyer and a seller (admin user) to negotiate product and/or shipping prices before the buyer places an order. | Yes
52+
NegotiableQuoteSharedCatalog | Enables the `NegotiableQuote` module to interact with a `SharedCatalog` in an B2B environment. | No
53+
PurchaseOrder | Allows buyers and seller to create a purchase order. | Yes
54+
PurchaseOrderRule | Allows creating and enforcing approval rules for purchase orders. | No
55+
QuickOrder | Allows buyers to create a new order from a list of multiple SKUs. | No
56+
RequisitionList | Allows a buyer to create multiple lists of frequently-purchased items and use those lists for order placement. | No
57+
SharedCatalog | Defines the visibility of products and prices in the catalog and in B2B quotes for different company accounts. | Yes
58+
59+
## Related information
60+
61+
* [Install the B2B extension]({{ site.baseurl }}/extensions/b2b/)
62+
* [Getting started with {{site.data.var.b2b}}](http://docs.magento.com/m2/b2b/user_guide/getting-started.html)

0 commit comments

Comments
 (0)