• Stars
    star
    148
  • Rank 249,983 (Top 5 %)
  • Language
    PHP
  • License
    Other
  • Created about 7 years ago
  • Updated about 1 month 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,535
star
2

pwa-studio

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

devdocs

[Deprecated] Magento Developer Documentation
Ruby
673
star
4

magento2-phpstorm-plugin

PHPStorm Plugin for Magento 2
Java
436
star
5

magento-coding-standard

Magento Coding Standard
PHP
347
star
6

data-migration-tool

Magento Data Migration Tool
PHP
336
star
7

inventory

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

architecture

A place where Magento architectural discussions happen
274
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
256
star
10

marketplace-eqp

Magento 1.x Coding Standard
PHP
224
star
11

magento2-sample-data

Magento 2 Sample Data
PHP
212
star
12

magento-cloud

Magento Cloud
PHP
205
star
13

baler

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

m2-devtools

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

magento2-functional-testing-framework

Magento2 Functional Testing Framework
PHP
155
star
16

graphql-ce

[ARCHIVED] Please use magento/magento2 project
PHP
131
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
117
star
18

magento2-page-builder

Magento2 PageBuilder
JavaScript
80
star
19

security-package

Magento Security Extensions
PHP
73
star
20

magento2-samples

[ONLY Magento 2.0.x Compatible] Code samples for Magento developers
PHP
73
star
21

adobe-stock-integration

Magento Adobe Stock integration Community Project.
PHP
60
star
22

composer-root-update-plugin

PHP
57
star
23

community-features

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

meta-for-magento2

PHP
38
star
25

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
34
star
26

merchdocs

[Deprecated] Magento User Guide
Ruby
33
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
33
star
28

backlog

Magento product backlog
31
star
29

composer

PHP
31
star
30

bulk-api-ce

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

m2-baler

PHP
30
star
32

commerce-data-export

PHP
25
star
33

magento2-upward-connector

Magento module for routing front-end requests to UPWARD-PHP
PHP
24
star
34

magento2-jp

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

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
36

glossary

Magento Glossary Application
JavaScript
20
star
37

magento2-kubernetes-devbox

Shell
18
star
38

magento2-pwa

PHP
15
star
39

devdocs-m1

HTML
14
star
40

upward-php

Implementation of UPWARD spec written in PHP
PHP
14
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
8
star
44

catalog-storefront

PHP
7
star
45

module-grpc

PHP
6
star
46

aep-launch

PHP
6
star
47

pagebuilder-docs

Page Builder development documentation
5
star
48

magento-japan-tax

PHP
5
star
49

graphql

TypeScript
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

composer-dependency-version-audit-plugin

validating packages through a composer plugin
PHP
4
star
55

adobe-commerce-catalog-service

4
star
56

page-builder-types

Magento Page Builder Types
4
star
57

devdocs-mbi

Magento Business Intelligence developer documentation
4
star
58

directive-parser

Parses Magento PWA Studio directives
JavaScript
3
star
59

marketplace-subscriptions

PHP
3
star
60

adobe-ims

PHP
3
star
61

storefront-product-reviews-ce

PHP
2
star
62

storefront-pricing-ce

PHP
2
star
63

magento2devbox-web

PHP
2
star
64

magento-zend-memory

PHP
2
star
65

magento-zend-log

PHP
2
star
66

magento-zend-exception

PHP
2
star
67

magento-zend-db

PHP
2
star
68

magento-zend-cache

PHP
2
star
69

magento-zend-pdf

PHP
2
star
70

php-proto-generator

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

mtf

PHP
2
star
72

magento-zend-loader

PHP
2
star
73

language-ja_JP

Japanese Language Pack for Magento 2 Resources
PHP
2
star
74

inventory-composer-installer

PHP
1
star
75

devops-cla-test-public

1
star
76

storefront-authentication-ce

1
star
77

magento2-pwa-commerce

1
star