You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _plugins/page-params/page-baseurl-generator.rb
+4-14Lines changed: 4 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -6,29 +6,19 @@
6
6
# This custom plugin dynamically sets and injects the page.baseurl variable
7
7
# based on the page's destination.
8
8
#
9
-
# The hook introduces the page.baseurl and
10
-
# page.guide_version data parameters for each page.
9
+
# The hook introduces the page.baseurl parameter for each page.
11
10
# For pages at guides/v2.x the page.baseurl parameter is set
12
11
# as "{site.baseurl}/guides/v#{version}".
13
12
# The {version} is taken from the 'guide_version' front matter parameter on the page;
14
-
# if it is not set, then the 'guide_version' is set to version from the page path (for example, "2.2" in the "guides/v2.2/**/*.md");
15
-
# if the path doesn't contain "guides/v2.x", then the version is unset and returns the nil object (same as null)
13
+
# if it is not set, then the 'guide_version' is set to version from the _config.yml depending on a scope by path (for example, "2.4" at the "guides/v2.4/");
14
+
# otherwise, the version is unset and returns the nil object (same as null).
16
15
Jekyll::Hooks.register:pages,:post_initdo |page|
17
16
# Glossary. Create and assign variables to be used in the script.
If you have issues with static content files in your Magento application after deployment, for example missing custom theme files, increase the maximum expected execution time to 900 seconds or higher.
Copy file name to clipboardExpand all lines: src/cloud/project/project-conf-files_services.md
+151-8Lines changed: 151 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ functional_areas:
8
8
9
9
The `services.yaml` file defines the services supported and used by {{site.data.var.ece}}, such as MySQL, Redis, and ElasticSearch. You do not need to subscribe to external service providers. This file is in the `.magento` directory of your project.
10
10
11
-
The deploy script uses the configuration files in the `.magento` directory to provision the environment with the configured services. A service becomes available to your application if it is included in the `relationships` property of the `.magento.app.yaml` file. The `services.yaml` file contains the _type_ and _disk_ values. Service type defines the service _name_ and _version_. Changing a service configuration causes a deployment to provision the environment with the updated services.
11
+
The deploy script uses the configuration files in the `.magento` directory to provision the environment with the configured services. A service becomes available to your application if it is included in the [`relationships`]({{ site.baseurl }}/cloud/project/project-conf-files_magento-app.html#relationships) property of the `.magento.app.yaml` file. The `services.yaml` file contains the _type_ and _disk_ values. Service type defines the service _name_ and _version_. Changing a service configuration causes a deployment to provision the environment with the updated services.
12
12
13
13
This affects the following environments:
14
14
@@ -43,19 +43,22 @@ elasticsearch:
43
43
44
44
## Service values
45
45
46
-
You must provide the _type_ values: service _name_ and _version_. If the service uses persistent storage, then you must provide a _disk_ value. Use the following format:
46
+
You must provide the <service-id> and service type configuration `type: <name>:<version>`.
47
+
If the service uses persistent storage, then you must provide a _disk_ value.
48
+
49
+
Use the following format:
47
50
48
51
```yaml
49
-
<name>:
52
+
<service-id>:
50
53
type: <name>:<version>
51
54
disk: <value-MB>
52
55
```
53
56
54
-
### `name`
57
+
### `service-id`
55
58
56
-
The `name` value identifies the service in the project. You can only use lower case alphanumeric characters: `a`to `z` and `0` to `9`, such as `redis`.
59
+
The `service-id` value identifies the service in the project. You can only use lower case alphanumeric characters: `a`to `z` and `0` to `9`, such as `redis`.
57
60
58
-
This _name_ value is used in the `relationships` property of the `.magento.app.yaml` configuration file:
61
+
This _service-id_ value is used in the [`relationships`]({{ site.baseurl }}/cloud/project/project-conf-files_magento-app.html#relationships) property of the `.magento.app.yaml` configuration file:
59
62
60
63
```yaml
61
64
relationships:
@@ -86,6 +89,8 @@ mysql:
86
89
type: mysql:10.2
87
90
```
88
91
92
+
Use [`Service versions`](#service-versions) table to see supported services and their versions
93
+
89
94
### `disk`
90
95
91
96
The `disk` value specifies the size of the persistent disk storage (in MB) to allocate to the service. Services that use persistent storage, such as MySQL, must provide a disk value. Services that use memory instead of persistent storage, such as Redis, do not require a disk value.
@@ -146,10 +151,10 @@ To verify relationships in remote environments:
1. Confirm the `service` and `type` from the response. The response provides connection information, such as the IP address and port number and any required username and password credentials.
@@ -182,6 +187,144 @@ During the deployment process, {{site.data.var.ct}} checks installed service ver
182
187
183
188
To maintain Magento store security, update installed software versions before they reach EOL.
184
189
190
+
## Change service version
191
+
192
+
You can upgrade the installed service version for compatibility with the Magento version deployed in your Cloud environment.
193
+
194
+
You cannot downgrade the service version for an installed service directly. However, you can create a new service with the required version. See [Downgrade service version](#downgrade-version).
195
+
196
+
Use the [Service versions](#service-versions) table to check service version compatibility by Magento version. Note that some service versions supported by {{ site.data.var.ee }} are not supported on {{ site.data.var.ece }}.
197
+
198
+
{:.bs-callout-warning}
199
+
You must submit a support ticket to change the service configuration on Pro Production and Staging environments.
200
+
201
+
{:.bs-callout-info}
202
+
If you change the Elasticsearch service version, check the Elasticsearch composer package for compatibility with the new version. See [Elasticsearch software compatibility]({{ site.baseurl}}/cloud/project/project-conf-files_services-elastic.html#elasticsearch-software-compatibility).
203
+
204
+
### Upgrade installed service version
205
+
206
+
You can upgrade the installed service version by updating the service configuration in the `services.yaml` file.
207
+
208
+
1. Change the [`type`](#type) value for the service in the `.magento/services.yaml` file:
209
+
210
+
> Original service definition
211
+
212
+
```yaml
213
+
mysql:
214
+
type: mysql:10.2
215
+
disk: 2048
216
+
```
217
+
218
+
> Updated service definition
219
+
220
+
```yaml
221
+
mysql:
222
+
type: mysql:10.3
223
+
disk: 2048
224
+
```
225
+
226
+
1. Add, commit, and push your code changes.
227
+
228
+
```bash
229
+
git add -A
230
+
```
231
+
232
+
```bash
233
+
git commit -m "Upgrade MySQL from MariaDB 10.2 to 10.3."
234
+
```
235
+
236
+
```bash
237
+
git push origin <branch-name>
238
+
```
239
+
240
+
### Downgrade version
241
+
242
+
You cannot downgrade an installed service directly. You have two options:
243
+
244
+
- Rename an existing service with the new version, which removes the existing service and data, and adds a new one.
245
+
246
+
- Create a new service and save the data from the existing service.
247
+
248
+
When you change the service version, you must update the service configuration in the `services.yaml` file, and update the relationships in the `.magento.app.yaml` file.
249
+
250
+
{:.procedure}
251
+
To downgrade a service version by renaming an existing service:
252
+
253
+
1. Rename the existing service in the `.magento/services.yaml` file and change the version.
254
+
255
+
{:.bs-callout-warning}
256
+
Renaming an existing service replaces it and deletes all data. If you need to retain the data, create a new service instead of renaming the existing one.
257
+
258
+
For example, to downgrade the MariaDB version for the _mysql_ service from version 10.3 to 10.2, change the existing _service-id_ and _type_ configuration.
259
+
260
+
> Original `services.yaml` definition
261
+
262
+
```yaml
263
+
mysql:
264
+
type: mysql:10.3
265
+
disk: 2048
266
+
```
267
+
268
+
> New `services.yaml` definition
269
+
270
+
```yaml
271
+
mysql2:
272
+
type: mysql:10.2
273
+
disk: 2048
274
+
```
275
+
276
+
1. Update the relationships in the `.magento.app.yaml` file.
277
+
278
+
> Original `.magento.app.yaml` configuration
279
+
280
+
```yaml
281
+
relationships:
282
+
database: "mysql:mysql"
283
+
```
284
+
285
+
> Updated `.magento.app.yaml` configuration
286
+
287
+
```yaml
288
+
relationships:
289
+
database: "mysql2:mysql"
290
+
```
291
+
292
+
1. Add, commit, and push your code changes.
293
+
294
+
{:.procedure}
295
+
To downgrade a service by creating an additional service:
296
+
297
+
1. Add an additional service definition to the `services.yaml` file for your project with the downgraded version specification. See _mysql2_ in the following example:
298
+
299
+
> services.yaml
300
+
301
+
```yaml
302
+
mysql:
303
+
type: mysql:10.3
304
+
disk: 2048
305
+
mysql2:
306
+
type: mysql:10.2
307
+
disk: 2048
308
+
```
309
+
310
+
1. Change the relationships configuration in the `.magento.app.yaml` file to use the new service.
311
+
312
+
> Original `.magento.app.yaml` configuration
313
+
314
+
```yaml
315
+
relationships:
316
+
database: "mysql:mysql"
317
+
```
318
+
319
+
> New `.magento.app.yaml` configuration
320
+
321
+
```yaml
322
+
relationships:
323
+
database: "mysql2:mysql"
324
+
```
325
+
326
+
1. Add, commit, and push your code changes.
327
+
185
328
<!--Custom column widths for service version table-->
Copy file name to clipboardExpand all lines: src/guides/v2.4/release-notes/release-notes-2-4-0-commerce.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2220,6 +2220,8 @@ We have fixed hundreds of issues in the Magento 2.4.0 core code.
2220
2220
2221
2221
**Issue**: The **Refresh** buttons on the Last Ordered Items, Products in Comparison List, and Recently Compared Products sections of the Admin Customer Activities page do not work as expected. Currently, Magento scrolls the page every time the **Refresh** button is clicked and does not display the product name. See [Refresh on Customer's Activities does not work](https://magento.zendesk.com/hc/en-us/articles/360046091332) Knowledge Base article. <!--- MC-35296-->
2222
2222
2223
+
**Issue**: If a discount code expires before a Purchase Order (PO) is approved, the PO continues to display the discounted amount, but once the PO is approved, the order is placed at the non-discounted total. **Workaround**: The **B2B-709 Purchase Order Discount patch** hotfix for this issue is now available from the **My Account** > **Downloads** section of `magento.com`.
2224
+
2223
2225
## Known issues -- VBE
2224
2226
2225
2227
### Amazon Pay
@@ -2242,7 +2244,7 @@ We have fixed hundreds of issues in the Magento 2.4.0 core code.
2242
2244
2243
2245
### dotdigital
2244
2246
2245
-
***Issue**: Integration tests fail with this error: `PHP Fatal error: Declaration of Dotdigitalgroup\Email\Test\Integration\Model\Sync\Importer\ImporterFailedTest::setUp() must be compatible with PHPUnit\Framework\TestCase::setUp(): void in /var/www/vendor/dotmailer/dotmailer-magento2-extension/Test/Integration/Model/Sync/Importer/ImporterFailedTest.php on line 36`. <!--- BUNDLE-2684-->
2247
+
***Issue**: Integration tests fail with this error: `PHP Fatal error: Declaration of Dotdigitalgroup\Email\Test\Integration\Model\Sync\Importer\ImporterFailedTest::setUp() must be compatible with PHPUnit\Framework\TestCase::setUp(): void in /var/www/vendor/dotmailer/dotmailer-magento2-extension/Test/Integration/Model/Sync/Importer/ImporterFailedTest.php on line 36`. **Workaround**: The **BUNDLE-2684 Dotdigital Integration Tests patch** hotfix for this issue is now available from [Releases](https://magento.com/tech-resources/download).<!--- BUNDLE-2684-->
0 commit comments