Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
55ef1a2
Update custom js content
mrtuvn Jul 27, 2020
b9e8f29
magento/devdocs#: Cloud. Skip patches.
atwixfirster Jul 30, 2020
3e3c372
Consolidated release info
jeff-matthews Aug 3, 2020
b32bbfc
Added feature attribution to community member
jeff-matthews Aug 3, 2020
461b15e
Removed bold
jeff-matthews Aug 3, 2020
99d6ab3
Stick to p1 example
jeff-matthews Aug 3, 2020
ac02b60
Merge pull request #7659 from magento/security-txt-attribution
dobooth Aug 3, 2020
587501b
magento/devdocs#: Cloud. Skip patches.
atwixfirster Aug 3, 2020
001d929
Merge branch 'master' into cloud-skip-patches
meker12 Aug 3, 2020
74e44ae
Removed duplicate note;
df2k2 Aug 4, 2020
2392ee1
Updated guidelines
jeff-matthews Aug 4, 2020
fc5e1dd
Fixed link
jeff-matthews Aug 4, 2020
e37c92a
Updated supported php versions in composer.json examples
chandru-199 Aug 4, 2020
00ba0a1
Added known issue.
dobooth Aug 4, 2020
b16401d
Added second note
dobooth Aug 4, 2020
3c2586a
Word smithing
jeff-matthews Aug 4, 2020
2dbce74
Merge branch 'master' into dobooth-patch-2
dobooth Aug 4, 2020
5ade196
Merge branch 'small-changes' of github.com:magento/devdocs into small…
dobooth Aug 4, 2020
0495de6
Grammar
dobooth Aug 4, 2020
4ab48fc
Merge branch 'master' into small-changes
dobooth Aug 4, 2020
aff020f
Merge branch 'master' into move-security-info
dobooth Aug 4, 2020
1e7d006
Merge pull request #7658 from magento/move-security-info
dobooth Aug 4, 2020
a26e893
Merge branch 'master' into df2k2-patch-2
dobooth Aug 4, 2020
f961a26
Merge pull request #7665 from magento/df2k2-patch-2
dobooth Aug 4, 2020
02ded6b
Merge branch 'master' into config-guide-link
dobooth Aug 4, 2020
3db4675
Merge pull request #7667 from magento/config-guide-link
dobooth Aug 4, 2020
d1f50c3
Merge branch 'master' into update-guidelines
dobooth Aug 4, 2020
c808241
Merge pull request #7666 from magento/update-guidelines
dobooth Aug 4, 2020
ee55ed5
Merge branch 'master' into dobooth-patch-2
dobooth Aug 4, 2020
6023cc6
Merge pull request #7671 from magento/dobooth-patch-2
dobooth Aug 4, 2020
2c1dffc
Merge branch 'master' into composer-php-ver
dobooth Aug 4, 2020
bb3d91e
Merge pull request #7668 from chandru-199/composer-php-ver
dobooth Aug 4, 2020
bd8d3ef
Merge branch 'master' into cloud-skip-patches
dobooth Aug 4, 2020
d578d59
Merge pull request #7643 from atwixfirster/cloud-skip-patches
dobooth Aug 4, 2020
afd06f7
Merge branch 'master' into update-custom-js
dobooth Aug 5, 2020
64d977d
Merge master
dobooth Aug 5, 2020
5db40ac
Merge pull request #7593 from mrtuvn/update-custom-js
dobooth Aug 5, 2020
314bd8f
Added link to KB troubleshooting article
meker12 Aug 5, 2020
0e5932a
Merge master
dobooth Aug 6, 2020
39572e7
Merge pull request #7681 from magento/mae-add-kb-link
dobooth Aug 6, 2020
25239b6
fix(xdebug, docker): fixes a typo in xdebug yaml (#7683)
damienwebdev Aug 6, 2020
446a180
Removed bad links to deleted header
dobooth Aug 6, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ The following guidelines may answer most of your questions and help you get star
- Review your work for basic typos, formatting errors, or ambiguous sentences before opening a pull request.
- Revise pull requests according to review feedback. We will close pull requests that require an inordinate amount of time to review and process (especially for minor changes) if you fail to make revisions according to review feedback.
- Do not directly contact DevDocs team members or maintainers on Slack to review your pull request unless it has been open for more than five days. We have a process and queue for pull requests that everyone must follow.
- Get recognized on the DevDocs web site for writing new topics! Add your name and a link to your company website or GitHub profile to the file metadata so that we can display it on the page. See [Edit metadata](#edit-metadata).
- We no longer recognize individual community members who contribute features to the Magento 2 codebase in the corresponding feature topic(s) on the DevDocs website. Magento recognizes these contributions in more appropriate channels (for example, the [Magento DevBlog](https://community.magento.com/t5/Magento-DevBlog/bg-p/devblog)).

## Tips for writing content

Expand Down Expand Up @@ -108,8 +110,10 @@ The Markdown (.md) file's metadata is a set of YAML key-value pairs. The metadat
```yaml

---
group: install2
title: Continue with your installation
group:
title:
contributor_name:
contributor_link:
---
```

Expand All @@ -119,6 +123,8 @@ title: Continue with your installation
| ------------- | ---------- |
| `group` | Defines the topic's guide or section. Use the table of contents `.yml` file name. This loads your left-side navigation. We will help during the PR process to add new files to the `.yml` file. |
| `title` | Sets the title of the page in the HTML metadata and the main title on the page. |
| `contributor_name` | Sets the name of the contributor who wrote the topic and displays it on the page. |
| `contributor_link` | Creates a link to the contributor's GitHub profile or company website. |

## Report an issue

Expand Down
2 changes: 1 addition & 1 deletion src/cloud/docker/docker-development-debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ If you use Microsoft Windows, take the following steps before continuing:
volumes:
- 'mymagento-magento-sync:/app:nocopy'
environment:
- 'PHP_EXTENSIONS=bcmath bz2 calendar exif gd gettext intl mysqli pcntl pdo_mysql soap socketssysvmsg sysvsem sysvshm opcache zip redis xsl sodium'
- 'PHP_EXTENSIONS=bcmath bz2 calendar exif gd gettext intl mysqli pcntl pdo_mysql soap sockets sysvmsg sysvsem sysvshm opcache zip redis xsl sodium'
networks:
magento:
aliases:
Expand Down
3 changes: 3 additions & 0 deletions src/cloud/project/new-relic.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ We recommend reviewing tracked data:

All collected data details the time spent on an action transmitting data, queries, or _Redis_ data. If queries cause issues, New Relic provides information to track and respond to those issues.

For details on using this data to troubleshoot Magento performance issues, see [Troubleshoot performance using New Relic][] in the _Magento Help Center_.

{:.bs-callout-info}
You can learn more about using the New Relic APM and Infrastructure agents to collect and analyze application data from the [New Relic APM] and [New Relic Infrastructure][New Relic infrastructure] documentation.

Expand Down Expand Up @@ -364,6 +366,7 @@ See [Alerts concepts and workflow] in the New Relic documentation for more detai
[New Relic query syntax for logs]: https://docs.newrelic.com/docs/logs/new-relic-logs/ui-data/query-syntax-logs
[New Relic reporting]: https://docs.magento.com/m2/ce/user_guide/configuration/general/new-relic-reporting.html
[prerequisite steps]: https://docs.newrelic.com/docs/alerts/new-relic-alerts/managing-notification-channels/notification-channels-control-where-send-alerts#channel-types
[Troubleshoot performance using New Relic]: https://support.magento.com/hc/en-us/articles/360042149832#low_user_satisfaction
[reset the New Relic password]: https://rpm.newrelic.com/forgot_password
[Update the account owner]: https://docs.newrelic.com/docs/accounts/accounts/roles-permissions/change-account-owner
[Update policies or conditions]: https://docs.newrelic.com/docs/alerts/new-relic-alerts/configuring-alert-policies/update-or-disable-policies-conditions
Expand Down
5 changes: 4 additions & 1 deletion src/cloud/project/project-patch.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ When you deploy changes to the remote environment, `{{site.data.var.ct}}` uses `
1. Apply required patches from Magento included in the `{{site.data.var.mcp-package}}` package.
1. Apply optional and custom patches in the `/m2-hotfixes` directory in alphabetical order by patch name.

Also, you can apply patches manually in your local environment.
{:.bs-callout-info}
When you update `{{site.data.var.ct}}` or the `{{site.data.var.mcp-prod}}` package, the latest required patches are applied automatically the next time you deploy your project. You cannot skip [required patches](https://github.com/magento/magento-cloud-patches/tree/develop/patches) during the deployment process.

You can also apply patches manually.

{:.bs-callout-info}
All patch file names must end with the `.patch` extension.
Expand Down
2 changes: 1 addition & 1 deletion src/guides/v2.3/config-guide/config/config-create.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,4 @@ Related topics

* [Module configuration files]({{ page.baseurl }}/config-guide/config/config-php.html)
* [Configuration file merge]({{ page.baseurl }}/config-guide/config/config-files.html#config-files-load-merge-merge)
* [Magento's deployment configuration]({{ page.baseurl }}/config-guide/config/config-php.html)
* [Magento's deployment configuration]({{ page.baseurl }}/config-guide/config/config-files.html)
2 changes: 1 addition & 1 deletion src/guides/v2.3/frontend-dev-guide/themes/theme-create.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Example of a theme `composer.json` file:
"sort-packages": true
},
"require": {
"php": "~7.1.3||~7.2.0",
"php": "~7.2.0||~7.3.0",
"magento/framework": "*",
"magento/theme-frontend-blank": "*"
},
Expand Down
2 changes: 1 addition & 1 deletion src/guides/v2.3/get-started/create-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ To develop a module, you must:
"name": "Vendor1_Module1",
"description": "create integration from config",
"require": {
"php": "~7.1.3|~7.2.0|~7.3.0",
"php": "~7.2.0|~7.3.0",
"magento/framework": "2.0.0",
"magento/module-integration": "2.0.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ landing-page: JavaScript Developer Guide

By default, the Magento application uses the [RequireJS file and module loader] to optimize the time of loading pages with included JavaScript files, and to manage dependencies of JavaScript resources.

You can follow the same approach when customizing Magento JavaScript, or [disable all the default scripts and their load by RequireJS].

For information about how JS resources are located and configured, see the [JavaScript resources] topic in the Configuration Guide.

## What's in this guide {#js_contents}
Expand Down Expand Up @@ -40,7 +38,6 @@ JavaScript automatic testing is described in a separate [JavaScript unit testing
[jQuery Widget]: https://jqueryui.com/widget/

[RequireJS file and module loader]: http://requirejs.org/
[disable all the default scripts and their load by RequireJS]: {{page.baseurl}}/javascript-dev-guide/javascript/custom_js.html#disable_default_js
[JavaScript resources]: {{page.baseurl}}/javascript-dev-guide/javascript/js-resources.html

[JavaScript initialization]: {{page.baseurl}}/javascript-dev-guide/javascript/js_init.html
Expand Down
18 changes: 1 addition & 17 deletions src/guides/v2.3/javascript-dev-guide/javascript/custom_js.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,23 +135,7 @@ define([
});
```

For information about initializing your custom JS component in a `.phtml` template, see the [JavaScript initialization] topic.

## Disable default Magento JS {#disable_default_js}

To disable the auto-loading of default Magento JS components and widget initialization:

1. Create a `requirejs-config.js` file with the following content:

```javascript
var config = { deps: [ ] };
```

1. Put the `requirejs-config.js` file in one of the following
locations:

- Your custom theme files: `<theme_dir>`
- Your custom module files: `<module_dir>/view/frontend`
For information about initializing your custom JS component in a `.phtml` template, see the [JavaScript initialization]({{ page.baseurl }}/javascript-dev-guide/javascript/js_init.html) topic.

If you need to enable the loading of default Magento JS components and widget initialization on a certain stage, add the following code in your JS script:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ title: JavaScript

By default, the Magento application uses the [RequireJS file and module loader] to optimize the time of loading pages with included JavaScript files, and to manage dependencies of JavaScript resources.

You can follow the same approach when customizing Magento JavaScript, or [disable all the default scripts and their load by RequireJS].

For information about how JS resources are located and configured, see [Configure JavaScript].

## What's in this chapter {#js_contents}
Expand All @@ -30,7 +28,6 @@ Topics of this chapter describe the following:
| *jQuery widget* | Custom widget created using jQuery UI Widget Factory and decorated as AMD module. Many Magento JS components are jQuery widget. |

[RequireJS file and module loader]: http://requirejs.org/
[disable all the default scripts and their load by RequireJS]: {{page.baseurl}}/javascript-dev-guide/javascript/custom_js.html#disable_default_js
[Configure JavaScript]: {{page.baseurl}}/javascript-dev-guide/javascript/js-resources.html
[AMD module]: http://requirejs.org/docs/whyamd.html#amd
[app/code/Magento/Ui/view]: {{ site.mage2bloburl }}/{{page.guide_version}}/app/code/Magento/Ui/view
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Refer to [Module version dependencies]({{ page.baseurl }}/extension-dev-guide/ve
"name": "your-name/module-Acme",
"description": "Test component for Magento 2",
"require": {
"php": "~7.1.3||~7.2.0",
"php": "~7.3.0||~7.4.0",
"magento/module-store": "102.1",
"magento/module-catalog": "102.1",
"magento/module-catalog-inventory": "102.1",
Expand Down
5 changes: 5 additions & 0 deletions src/guides/v2.4/release-notes/b2b-release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ These release notes can include:
- {:.fix} Previously, using the API to save a quote item when backorder is set to "Allowed and Notify Customer" would fail. This API call now works as expected.
- {:.fix} The Fixed Product Tax is now displayed on the Quotes detail page.
- {:.fix} Previously, clicking on an attachment in the Comments tab of the My Quotes page would fail to download the file. This behavior now works as expected.

### Known Issues

- If items in a purchase order are out-of-stock, or of insufficient quantity when the purchase order is converted into an actual order, an error will occur. If backorders are enabled, the order will be processed normally.
- If a discount code expires before a purchase order is approved, the PO continues to show the discounted amount. Once the PO is approved, the order is placed at the non-discounted total.
Original file line number Diff line number Diff line change
Expand Up @@ -668,10 +668,6 @@ We have fixed hundreds of issues in the Magento 2.4.0 core code.

* Magento no longer throws an error when you include an empty customer attribute field in the **Forms to Use In** field while creating a Company account on the storefront. Previously, Magento threw this error: `PHP Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Eav\Model\Attribute\Data\Text::validateLength() must be of the type string, null given`.

<!--- MC-32301-->

* Magento no longer throws an error when you include an empty customer attribute field in the **Forms to Use In** field while creating a Company account on the storefront. Previously, Magento threw this error: `PHP Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Eav\Model\Attribute\Data\Text::validateLength() must be of the type string, null given`.

### Customer

<!--- MC-29102-->
Expand Down
3 changes: 3 additions & 0 deletions src/guides/v2.4/security/security-txt.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Magento merchants can enter their contact information for [security issue report
- Contains a router to match application action class for requests to the `well-known/security.txt` and `.well-known/security.txt.sig` files.
- Serves the content of the `.well-known/security.txt` and `.well-known/security.txt.sig` files.

{:.bs-calllout-info}
**Magento Community Contribution** - Magento thanks [Kalpesh Mehta](https://github.com/kalpmehta) of [Corra](https://partners.magento.com/portal/details/partner/id/70/) for contributing this feature as part of the Magento Community Engineering program.

A valid `security.txt` file might look like the following:

```bash
Expand Down
6 changes: 0 additions & 6 deletions src/release/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ The following table provides the dates for scheduled releases in 2020 and 2021 (

_<sup>*</sup>There will not be a 2.4.5 release in 2021 Q4._

## About security-only releases

Security-only releases provide fixes for vulnerabilities that have been identified in previous quarterly patch releases. You can install time-sensitive security fixes without applying the hundreds of functional fixes and enhancements that a full quarterly patch release contains. These releases are appended with `-pN`, where N is the incremental patch version beginning with 1 (example: 2.3.5-p1, 2.3.5-p2). **These releases can also include hotfixes required to address critical issues that affect the Magento application.**

For general information about security releases, see [Introducing the New Security-only Patch Release](https://community.magento.com/t5/Magento-DevBlog/Introducing-the-New-Security-only-Patch-Release/ba-p/141287). For instructions on downloading and applying security patches, see [Install Magento using Composer]({{site.baseurl}}/guides/v2.3/install-gde/composer.html).

## Early access

Pre-release is General Availability code that is available to {{site.data.var.ee}} merchants and all partners two weeks before General Availability. It allows for quicker deployment of code before General Availability.
Expand Down
2 changes: 1 addition & 1 deletion src/release/policy/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The following guidelines apply to patch releases:

## SECURITY release

Security releases provide fixes for vulnerabilities that have been identified in previous quarterly patch releases. You can install time-sensitive security fixes without applying the hundreds of functional fixes and enhancements that a full quarterly patch release contains.
Security releases provide fixes for vulnerabilities that have been identified in previous quarterly patch releases. You can install time-sensitive security fixes without applying the hundreds of functional fixes and enhancements that a full quarterly patch release contains. These releases are appended with `-pN`, where N is the incremental patch version beginning with 1 (for example, 2.3.5-p1). These releases can also include hotfixes required to address critical issues that affect the Magento application.

For general information about security releases, see [Introducing the New Security-only Patch Release](https://community.magento.com/t5/Magento-DevBlog/Introducing-the-New-Security-only-Patch-Release/ba-p/141287). For instructions on downloading and applying security patches, see [Install Magento using Composer]({{ site.baseurl }}/guides/v2.3/install-gde/composer.html).

Expand Down