• Stars
    star
    134
  • Rank 261,597 (Top 6 %)
  • Language
    PHP
  • License
    Other
  • Created over 6 years ago
  • Updated 27 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Quality Patches Tool

Welcome to the Quality Patches Tool!

Overview

Quality Patches Tool is a command-line tool that delivers quality patches for Adobe Commerce and Magento Open Source. It allows you to:

  • view the general information about the latest patches
  • apply patches
  • revert previously applied patches

Quality patches are provided by Adobe support and Magento OS community.

Here is a full list of available patches in Quality Patches Tool.

Installation

On-Prem Project

$ composer require magento/quality-patches

Cloud Project

The quality-patches package is a dependency for the ece-tools package starting from v.2002.1.2 and is installed or updated when you update the ece-tools package version.

Usage - On-Prem Project

Make sure to test all patches in a pre-production environment. For the changes to be reflected, refresh the cache in the Admin under System > Tools > Cache Management

Use $ ./vendor/bin/magento-patches script

Status command

Show information about available patches for current Magento version:

$ ./vendor/bin/magento-patches status

Apply command

Applies provided list of patches:

$ ./vendor/bin/magento-patches apply MAGETWO-95591 MAGETWO-67097

Revert command

Reverts provided list of patches:

$ ./vendor/bin/magento-patches revert MAGETWO-95591 MAGETWO-67097

Reverts all patches:

$ ./vendor/bin/magento-patches revert --all

Usage - Cloud Project

Make sure to test all patches in a pre-production environment. For Magento Cloud, new branches can be created with magento-cloud environment:branch

Use $ ./vendor/bin/ece-patches script

Applying a patch

Add to .magento.env.yaml environment variable QUALITY_PATCHES with a list of patches to apply:

stage:
    build:
        QUALITY_PATCHES:
            - MCTEST-1002
            - MCTEST-1003

Commit and push updated .magento.env.yaml file into the remote branch. Patches will be applied during deploy process.

Apply patches manually in a local environment

You can apply patches manually in a local environment and test them before you deploy.

To apply patches manually:

  1. Add to .magento.env.yaml environment variable QUALITY_PATCHES with a list of patches to apply
  2. From the project root, apply the patches: $ ./vendor/bin/ece-patches apply Patches will be applied in the following order:
    • Cloud-required patches
    • Quality patches from .magento.env.yaml
    • Custom patches from the /m2-hotfixes directory.
  3. Check with ./vendor/bin/ece-patches status if the patch was applied
  4. Clear the Magento cache $ ./bin/magento cache:clean

Test the patches, make any necessary changes to custom patches.

Revert patches in a local environment

You can revert patches in a local environment to clean instance:

$ ./vendor/bin/ece-patches revert

Patches will be reverted in the following order:

  • Custom patches from the /m2-hotfixes directory.
  • Magento-quality patches
  • Cloud-required patches

Status command information

Status:

  • Applied - the patch is already applied
  • Not applied - the patch is not applied
  • N/A - if the status of patch cannot be defined due to some conflicts

Type:

  • Optional - all patches from Quality Patches Tool are optional for Cloud & On-Prem customers
  • Required - all patches from Cloud Patches are required for Cloud and optional for On-Prem customers
  • Deprecated - patch is marked as deprecated (there is a recommendation to revert if it was applied)
  • Custom - customer specific patches from m2-hotfixes folder (Cloud only)

Details:

  • Affected components - show the list of affected components (magento-modules)
  • Required patches - shows the list of required patches (dependencies)
  • Recommended replacement - patch, that is recommended for replacement of deprecated patch

More Repositories

1

magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
PHP
11,158
star
2

pwa-studio

🛠Development tools to build, optimize and deploy Progressive Web Applications for Magento 2.
JavaScript
1,030
star
3

devdocs

Magento Developer Documentation
Ruby
666
star
4

magento2-phpstorm-plugin

PHPStorm Plugin for Magento 2
Java
422
star
5

data-migration-tool

Magento Data Migration Tool
PHP
334
star
6

magento-coding-standard

Magento Coding Standard
PHP
330
star
7

inventory

Magento Inventory Project (a.k.a MSI)
PHP
327
star
8

architecture

A place where Magento architectural discussions happen
269
star
9

magento-cloud-docker

All Submissions you make to Magento Inc. (“Magento") through GitHub are subject to the following terms and conditions: (1) You grant Magento a perpetual, worldwide, non-exclusive, no charge, royalty free, irrevocable license under your applicable copyrights and patents to reproduce, prepare derivative works of, display, publically perform, sublicense and distribute any feedback, ideas, code, or other information (“Submission") you submit through GitHub. (2) Your Submission is an original work of authorship and you are the owner or are legally entitled to grant the license stated above. (3) You agree to the Contributor License Agreement found here: https://github.com/magento/magento2/blob/master/CONTRIBUTOR_LICENSE_AGREEMENT.html
PHP
244
star
10

marketplace-eqp

Magento 1.x Coding Standard
PHP
226
star
11

magento2-sample-data

Magento 2 Sample Data
PHP
204
star
12

magento-cloud

Magento Cloud
PHP
198
star
13

baler

AMD module bundler and preloader for Magento 2 stores.
JavaScript
174
star
14

m2-devtools

Helpful in-browser debugging/inspection tools for the Magento 2 Front-End
TypeScript
168
star
15

magento2-functional-testing-framework

Magento2 Functional Testing Framework
PHP
154
star
16

graphql-ce

[ARCHIVED] Please use magento/magento2 project
PHP
132
star
17

ece-tools

All Submissions you make to Magento Inc. (“Magento") through GitHub are subject to the following terms and conditions: (1) You grant Magento a perpetual, worldwide, non-exclusive, no charge, royalty free, irrevocable license under your applicable copyrights and patents to reproduce, prepare derivative works of, display, publically perform, sublicense and distribute any feedback, ideas, code, or other information (“Submission") you submit through GitHub. (2) Your Submission is an original work of authorship and you are the owner or are legally entitled to grant the license stated above. (3) You agree to the Contributor License Agreement found here: https://github.com/magento/magento2/blob/master/CONTRIBUTOR_LICENSE_AGREEMENT.html
PHP
108
star
18

magento2-samples

[ONLY Magento 2.0.x Compatible] Code samples for Magento developers
PHP
69
star
19

magento2-page-builder

Magento2 PageBuilder
JavaScript
66
star
20

security-package

Magento Security Extensions
PHP
65
star
21

adobe-stock-integration

Magento Adobe Stock integration Community Project.
PHP
60
star
22

composer-root-update-plugin

PHP
54
star
23

community-features

Magento Features Development is an Initiative to Allows Community Memebers Join to Development of Magento Features
46
star
24

merchdocs

Magento User Guide
Ruby
33
star
25

composer

PHP
32
star
26

backlog

Magento product backlog
31
star
27

magento-semver

Magento Semantic Versioning Checker. Join #svc in our Community Slack: https://opensource.magento.com/slack. Static tests that identify required module version changes based on code diff, and look for backward incompatible changes.
PHP
31
star
28

magento-cloud-patches

All Submissions you make to Magento Inc. (“Magento") through GitHub are subject to the following terms and conditions: (1) You grant Magento a perpetual, worldwide, non-exclusive, no charge, royalty free, irrevocable license under your applicable copyrights and patents to reproduce, prepare derivative works of, display, publically perform, sublicense and distribute any feedback, ideas, code, or other information (“Submission") you submit through GitHub. (2) Your Submission is an original work of authorship and you are the owner or are legally entitled to grant the license stated above. (3) You agree to the Contributor License Agreement found here: https://github.com/magento/magento2/blob/master/CONTRIBUTOR_LICENSE_AGREEMENT.html
PHP
31
star
29

bulk-api-ce

Magento 2 CE repository dedicated for implementation of the Bulk API
30
star
30

m2-baler

PHP
29
star
31

meta-for-magento2

PHP
28
star
32

magento2-jp

Magento Community Project for providing best experience for Japanese market
PHP
24
star
33

magento-cloud-components

All Submissions you make to Magento Inc. (“Magento") through GitHub are subject to the following terms and conditions: (1) You grant Magento a perpetual, worldwide, non-exclusive, no charge, royalty free, irrevocable license under your applicable copyrights and patents to reproduce, prepare derivative works of, display, publically perform, sublicense and distribute any feedback, ideas, code, or other information (“Submission") you submit through GitHub. (2) Your Submission is an original work of authorship and you are the owner or are legally entitled to grant the license stated above. (3) You agree to the Contributor License Agreement found here: https://github.com/magento/magento2/blob/master/CONTRIBUTOR_LICENSE_AGREEMENT.html
PHP
23
star
34

magento2-upward-connector

Magento module for routing front-end requests to UPWARD-PHP
PHP
21
star
35

commerce-data-export

PHP
20
star
36

glossary

Magento Glossary Application
JavaScript
20
star
37

magento2-kubernetes-devbox

Shell
18
star
38

upward-php

Implementation of UPWARD spec written in PHP
PHP
14
star
39

magento2-pwa

PHP
14
star
40

devdocs-m1

HTML
13
star
41

magento-eslint

Shared ESLint configuration for Magento PWA-related projects
JavaScript
13
star
42

knowledge-base

Shell
12
star
43

ts-types

TypeScript Definitions for Magento 2
7
star
44

catalog-storefront

PHP
7
star
45

aep-launch

PHP
6
star
46

pagebuilder-docs

Page Builder development documentation
5
star
47

magento-japan-tax

PHP
5
star
48

graphql

TypeScript
5
star
49

module-grpc

PHP
5
star
50

storefront-message-broker

PHP
4
star
51

storefront-search-ce

PHP
4
star
52

app-builder-samples

JavaScript
4
star
53

pwa-tests

4
star
54

adobe-commerce-catalog-service

4
star
55

directive-parser

Parses Magento PWA Studio directives
JavaScript
3
star
56

composer-dependency-version-audit-plugin

validating packages through a composer plugin
PHP
3
star
57

marketplace-subscriptions

PHP
3
star
58

page-builder-types

Magento Page Builder Types
3
star
59

adobe-ims

PHP
3
star
60

devdocs-mbi

Magento Business Intelligence developer documentation
3
star
61

storefront-product-reviews-ce

PHP
2
star
62

storefront-pricing-ce

PHP
2
star
63

magento2devbox-web

PHP
2
star
64

php-proto-generator

A tool to generate Magento modules from proto definitions
PHP
2
star
65

mtf

PHP
2
star
66

inventory-composer-installer

PHP
1
star
67

devops-cla-test-public

1
star
68

magento-zend-pdf

PHP
1
star
69

magento-zend-memory

PHP
1
star
70

magento-zend-log

PHP
1
star
71

magento-zend-db

PHP
1
star
72

magento-zend-exception

PHP
1
star
73

magento-zend-cache

PHP
1
star
74

storefront-authentication-ce

1
star
75

magento2-pwa-commerce

1
star
76

magento-zend-loader

PHP
1
star
77

language-ja_JP

Japanese Language Pack for Magento 2 Resources
PHP
1
star