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

Commit 9856d04

Browse files
authored
Merge pull request #2664 from loginesta/AC-1661
AC-1661: Use 'Compatibility issue' instead of language specific issue
2 parents 930232d + 1353238 commit 9856d04

File tree

2 files changed

+27
-23
lines changed

2 files changed

+27
-23
lines changed

src/upgrade-compatibility-tool/developer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ The {{site.data.var.uct}} calculates this score according to the complexity scor
112112

113113
### Complexity score formula
114114

115-
`Complexity Score = ({{site.data.var.ee}} core errors) * 4 + (Critical errors) * 4 + [(PHP errors)+(GraphQL errors)] * 2 + [(PHP warnings)+(GraphQL warnings)] * 1`
115+
`Complexity Score = ({{site.data.var.ee}} core errors) * 4 + (Critical errors) * 4 + [(PHP and JS errors)+(GraphQL errors)] * 2 + [(PHP and JS warnings)+(GraphQL warnings)] * 1`
116116

117117
{:.bs-callout-warning}
118118
These are absolute values.

src/upgrade-compatibility-tool/run.md

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -242,22 +242,24 @@ bin/uct upgrade:check --schema1=https://domain1.com/graphql --schema2=https://do
242242
File: /app/code/Custom/CatalogExtension/Controller/Index/Index.php
243243
------------------------------------------------------------------
244244
245-
* [ERROR] Line 84: Used nonexistent or non Magento API interface 'Magento\Catalog\Model\ProductRepositoryInterface'
246-
* [WARNING] Line 6: Importing Magento @deprecated class 'Magento\Catalog\Model\ProductRepository'
245+
* [WARNING][1131] Line 23: Extending from class 'Magento\Framework\App\Action\Action' that is @deprecated on version '2.4.2'
246+
* [ERROR][1429] Line 103: Call method 'Magento\Framework\Api\SearchCriteriaBuilder::addFilters' that is non API on version '2.4.2'
247+
* [CRITICAL][1110] Line 60: Instantiating class/interface 'Magento\Catalog\Model\ProductRepository' that does not exist on version '2.4.2'
247248
```
248249

249250
The report also includes a detailed summary:
250251

251252
* *Installed Version*: the version currently installed.
252253
* *{{site.data.var.ee}} Version*: the version you want to upgrade to.
253254
* *Running time*: amount of time the analysis took to build the report (mm:ss).
254-
* *{{site.data.var.ee}} checked modules*: amount of checked modules.
255255
* *{{site.data.var.ee}} core checked modules*: amount of core checked modules.
256256
* *{{site.data.var.ee}} core modified files*: amount of core modified file.
257257
* *{{site.data.var.ee}} % core modified files*: percentage of core modified files.
258-
* *PHP errors found*: amount of PHP errors.
259-
* *PHP warnings found*: amount of PHP warnings.
260-
* *GraphQL errors found*: amount of GraphQL errors.
258+
* *{{site.data.var.ee}} checked modules*: amount of checked modules.
259+
* *Compatibility errors found*: amount of compatibility errors.
260+
* *Compatibility warnings found*: amount of compatibility warnings.
261+
* *Compatibility critical errors found*: amount of compatibility critical errors.
262+
* *GraphQL critical errors found*: amount of GraphQL critical errors.
261263
* *GraphQL warnings found*: amount of GraphQL warnings.
262264
* *Total errors found*: total amount of errors found.
263265
* *Total warnings found*: total amount of warnings found.
@@ -270,22 +272,24 @@ See the [Error message reference]({{site.baseurl}}/upgrade-compatibility-tool/er
270272
## Example of a general summary report
271273

272274
```terminal
273-
------------------------ --------
274-
Installed version 2.4.2
275-
{{site.data.var.ee}} version 2.4.3
276-
Running time 0m:48s
277-
Checked modules 14
278-
Core checked modules 0
279-
Core modified files 0
280-
% core modified files 0.00
281-
PHP errors found 109
282-
PHP warnings found 0
283-
GraphQL errors found 0
284-
GraphQL warnings found 0
285-
Total errors found 109
286-
Total warnings found 0
287-
Complexity score 218
288-
------------------------ --------
275+
------------------------------------- -------
276+
Installed version 2.4.2
277+
{{site.data.var.ee}} version 2.4.3
278+
Running time 0m:48s
279+
Core files checked 0
280+
Core files modified 0
281+
% of files modified 0.00
282+
Checked modules 14
283+
Compatibility errors found 109
284+
Compatibility warnings found 0
285+
Compatibility critical errors found 0
286+
GraphQL critical errors found 0
287+
GraphQL warnings found 0
288+
Total errors found 109
289+
Total warnings found 0
290+
Total critical errors found 0
291+
Complexity score 218
292+
------------------------------------- -------
289293
```
290294

291295
Regarding the GraphQL schema compatibility comparison, the output would be very similar:

0 commit comments

Comments
 (0)