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

Commit e92e579

Browse files
authored
Merge pull request #2745 from magento-commerce/1-13_integration
1 13 integration
2 parents bb55fd3 + c51cc51 commit e92e579

File tree

11 files changed

+73
-56
lines changed

11 files changed

+73
-56
lines changed

src/_includes/config/redis-verify.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ If you use Redis for page caching, you'll see output similar to the following:
5252

5353
### Inspecting compressed data
5454

55-
To inspect compressed Session data and Page Cache, the [Redis Desktop Manager](https://flathub.org/apps/details/dev.rdm.RDM) supports the automatic decompression of Magento 2 Session and Page cache and displays PHP session data in a human-readable form.
55+
To inspect compressed Session data and Page Cache, the [RESP.app](https://flathub.org/apps/details/app.resp.RESP) supports the automatic decompression of Magento 2 Session and Page cache and displays PHP session data in a human-readable form.
5656

5757
### Redis ping command
5858

src/cloud/cdn/cloud-vcl-custom-snippets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ Use the Fastly API [create snippet](https://docs.fastly.com/api/config#snippet_4
241241
curl -H "Fastly-Key: $FASTLY_API_TOKEN" https://api.fastly.com/service/$FASTLY_SERVICE_ID/version/$FASTLY_EDIT_VERSION/snippet -H 'Content-Type: application/json' -X POST --data @<filename.json>
242242
```
243243

244-
The `<filename.vcl>` is the name of the file you prepared in the previous step. Repeat this command for each VCL snippet.
244+
The `<filename.json>` is the name of the file you prepared in the previous step. Repeat this command for each VCL snippet.
245245

246246
If you receive a `500 Internal Server Error` response from the Fastly service, check the JSON file syntax to make sure you are uploading a valid file.
247247

src/cloud/project/log-locations.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,7 @@ You can view the logs from the file system, the project web UI, and the `magento
1919
- **Magento Cloud CLI**—You can view logs using the `magento-cloud log` command.
2020

2121
{:.bs-callout-tip}
22-
For Pro environments, automatic log rotation, compression, and removal are enabled for log files with a fixed file name. Each log file type has a rotating pattern and lifetime. Starter environments do not have log rotation.
23-
24-
Full details of the environment's log rotation and lifespan of compressed logs can be found in the following locations :
25-
26-
```terminal
27-
/etc/logrotate.conf
28-
/etc/logrotate.d/<various>
29-
```
22+
For Pro environments, automatic log rotation, compression, and removal are enabled for log files with a fixed file name. Each log file type has a rotating pattern and lifetime. Starter environments do not have log rotation. Full details of the environment's log rotation and lifespan of compressed logs can be found in: `/etc/logrotate.conf` and `/etc/logrotate.d/<various>`
3023

3124
## Manage log data
3225

src/cloud/project/new-relic.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The aggregated data includes information from the following logs:
4343
- Logs for cloud services from the `var/log/platform/<project-ID>` directory
4444
- Fastly CDN and WAF logs
4545

46-
As soon as your project is connected to New Relic, you can use the New Relic Logs service to complete tasks like the following:
46+
When your project is connected to New Relic, you can use the New Relic Logs service to complete tasks like the following:
4747

4848
- Use [New Relic queries][New Relic query syntax for logs] to search aggregated log data
4949
- Visualize log data through the New Relic Logs application
@@ -59,9 +59,9 @@ When Adobe provisions your {{site.data.var.ece}} project, the License Owner rece
5959
A New Relic account can have only one person assigned to the Owner role. If you must change the account owner, assign the Admin role to the current Owner, then assign the Owner role to another user. See [Update the account owner] in the New Relic documentation for instructions.
6060

6161
{:.bs-callout-tip}
62-
Before assigning the Owner role to a user, verify that the user exists on the New Relic account for {{site.data.var.ece}}. If you need to add the user to that account and an existing account Owner or Admin cannot help, any user with access to the [Adobe Partnership Owner Account] for New Relic can add users on behalf of the customer.
62+
Before assigning the Owner role to a user, verify that the user exists on the New Relic account for {{site.data.var.ece}}. If you must add the user to that account and an existing account Owner or Admin cannot help, any user with access to the [Adobe Partnership Owner Account] for New Relic can add users on behalf of the customer.
6363

64-
We recommend adding at least one Admin user to your New Relic account to manage all access, integrations, and tool usage. {{site.data.var.ece}} Project Owners and Admin users can add and remove users from the New Relic account.
64+
We recommend adding at least one **Admin** user to your New Relic account to manage all access, integrations, and tool usage. {{site.data.var.ece}} Project Owners and Admin users can add and remove users from the New Relic account. We also recommend that you do not create more than five full-access **Users**. Only grant full access to users that strictly require access to the complete feature set. There is no specific guidance on free **Restricted** users.
6565

6666
{:.procedure}
6767
To add a user:

src/guides/v2.3/extension-dev-guide/cache/partial-caching/create-cache-type.md

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -92,31 +92,31 @@ To store serialized data in a custom cache, follow these steps:
9292

9393
1. Pass the argument to the constructor `Magento\Framework\App\CacheInterface` `$cache` of a required class (Repository, Model, Block, etc).
9494

95-
```php
96-
/**
97-
* @param CacheInterface $cache
98-
* @param SerializerInterface $serializer
99-
*/
100-
public function __construct(CacheInterface $cache, SerializerInterface $serializer)
101-
{
102-
$this->cache = $cache;
103-
$this->serializer = $serializer;
104-
}
105-
```
95+
```php
96+
/**
97+
* @param CacheInterface $cache
98+
* @param SerializerInterface $serializer
99+
*/
100+
public function __construct(CacheInterface $cache, SerializerInterface $serializer)
101+
{
102+
$this->cache = $cache;
103+
$this->serializer = $serializer;
104+
}
105+
```
106106

107107
1. Store data in the cache.
108108

109-
```php
110-
$cacheKey = \VendorName\ModuleName\Model\Cache\Type\CacheType::TYPE_IDENTIFIER;
111-
$cacheTag = \VendorName\ModuleName\Model\Cache\Type\CacheType::CACHE_TAG;
112-
113-
$storeData = $this->cache->save(
114-
$this->serializer->serialize($cacheData),
115-
$cacheKey,
116-
[$cacheTag],
117-
86400
118-
);
119-
```
109+
```php
110+
$cacheKey = \VendorName\ModuleName\Model\Cache\Type\CacheType::TYPE_IDENTIFIER;
111+
$cacheTag = \VendorName\ModuleName\Model\Cache\Type\CacheType::CACHE_TAG;
112+
113+
$storeData = $this->cache->save(
114+
$this->serializer->serialize($cacheData),
115+
$cacheKey,
116+
[$cacheTag],
117+
86400
118+
);
119+
```
120120

121121
## Retrieve data from custom cache type {#m2devgde-retrieve-data-cache-type}
122122

@@ -132,25 +132,25 @@ $data = $this->serializer->unserialize($this->cache->load($cacheKey));
132132

133133
To invalidate a custom cache type, follow these steps:
134134

135-
1. Pass the argument to the constructor `Magento\Framework\App\Cache\TypeListInterface` `$typeList` of a required class (Repository, Model, Block, etc)
135+
1. Pass the argument to the constructor `Magento\Framework\App\Cache\TypeListInterface` `$typeList` of a required class (Repository, Model, Block, etc).
136136

137-
```php
138-
/**
139-
* @param TypeListInterface $typeList
140-
*/
141-
public function __construct(TypeListInterface $typeList)
142-
{
143-
$this->typeList = $typeList;
144-
}
145-
```
137+
```php
138+
/**
139+
* @param TypeListInterface $typeList
140+
*/
141+
public function __construct(TypeListInterface $typeList)
142+
{
143+
$this->typeList = $typeList;
144+
}
145+
```
146146

147-
1. Invalidate the cache
147+
1. Invalidate the cache.
148148

149-
```php
150-
$cacheKey = \VendorName\ModuleName\Model\Cache\Type\CacheType::TYPE_IDENTIFIER;
149+
```php
150+
$cacheKey = \VendorName\ModuleName\Model\Cache\Type\CacheType::TYPE_IDENTIFIER;
151151

152-
$this->typeList->invalidate($cacheKey);
153-
```
152+
$this->typeList->invalidate($cacheKey);
153+
```
154154

155155
## Flush custom cache type {#m2devgde-flush-cache-type}
156156

src/guides/v2.3/install-gde/prereq/nginx.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,11 @@ For this example, we'll install using Composer and the command line.
151151
--language=en_US \
152152
--currency=USD \
153153
--timezone=America/Chicago \
154-
--use-rewrites=1
154+
--use-rewrites=1 \
155+
--search-engine=elasticsearch7 \
156+
--elasticsearch-host=es-host.example.com \
157+
--elasticsearch-port=9200
158+
155159
```
156160

157161
1. Switch to developer mode:

src/guides/v2.3/payments-integrations/base-integration/integration-intro.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ The Magento payment provider gateway allows creating secure and PCI-compliant in
1919
The topics in this chapter explain how to add an integration with a custom payment service provider (in other words, add a new payment method) and implement the authorize payment action for this [payment method](https://glossary.magento.com/payment-method). For illustration, we use code
2020
samples from the [Braintree]({{ site.mage2bloburl }}/{{ page.guide_version }}/app/code/Magento/Braintree) payment integration.
2121

22-
To simplify the development of a new payment integration, Magento developed the [Payment sample module](https://github.com/magento/magento2-samples/tree/master/sample-module-payment-gateway).
23-
It contains all required infrastructure and you can use it as starting point.
22+
{:.bs-callout-info}
23+
You can also view the [Payment sample module](https://github.com/magento/magento2-samples/tree/master/sample-module-payment-gateway) in the `magento/magento2-samples`
24+
repository to understand the underlying principles. However, be aware that this code is NOT supported.
2425

2526
To add a new payment method, take the following high-level steps:
2627

src/guides/v2.3/payments-integrations/base-integration/module-configuration.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ functional_areas:
1010

1111
For the sake of compatibility, upgradability and easy maintenance, do not edit the default Magento code; add your customizations in a separate [module](https://glossary.magento.com/module).
1212

13-
You can use the [sample Magento_SamplePaymentGateway module](https://github.com/magento/magento2-samples/tree/master/sample-module-payment-gateway) files as basis for your custom module structure and files.
13+
{:.bs-callout-info}
14+
You can use the [sample Magento_SamplePaymentGateway module](https://github.com/magento/magento2-samples/tree/master/sample-module-payment-gateway) files as the basis for your custom module structure and files. However, be aware that this code is NOT supported.
1415

1516
## Specify your module dependencies
1617

src/guides/v2.3/rest/tutorials/bulk-configurable-product/define-config-product-options.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ contributor_link: http://comwrap.com/
2121

2222
The `POST async/bulk/V1/configurable-products/bySku/options` call assigns the specified `attribute_id` to be the configurable attribute.
2323

24+
{:.bs-callout-warning}
25+
The `attribute_id` and its value may be different on your installation. Check the values carefully before using them in your calls. To get the correct `attribute_id`, see [Get the list of attributes defined in an attribute searchCriteria]({{ page.baseurl }}/rest/tutorials/configurable-product/plan-product.html#get-attributes) for more information.
26+
2427
The value assigned to the `value_index` must be unique within the system.
2528

2629
**Endpoint:**
@@ -160,4 +163,4 @@ Bulk endpoint routes cannot contain input parameters, such as a `sku` value. Yo
160163
]
161164
},
162165
...
163-
```
166+
```

src/guides/v2.4/config-guide/cli/config-cli-subcommands-static-view.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,18 @@ Successful: 1993 files; errors: 0
308308
---
309309
```
310310
311+
The following command deploys only Javascript, with 4 jobs, with a standard deployment strategy:
312+
313+
```bash
314+
bin/magento setup:static-content:deploy -s standard --no-misc --no-html --no-fonts --no-images --no-less --no-css -j 4
315+
```
316+
317+
The following command deploys only CSS and LESS with 3 jobs, and a quick deployment strategy:
318+
319+
```bash
320+
bin/magento setup:static-content:deploy -s quick --no-misc --no-html --no-fonts --no-images --no-javascript -j 3
321+
```
322+
311323
#### Generating static view files for one theme and one area
312324
313325
The following command generates static view files for all languages, the [frontend](https://glossary.magento.com/frontend) area only, the Magento Luma theme only, without generating fonts:

0 commit comments

Comments
 (0)