magento / magento/magento2

Auto generated code needs to be marked as API

Open
#32,011 3 comments 0 reactions 1 assignee View on GitHub

@DenisSaltanahmedov is already working on this.

Since Apr 1, 2021.

feature request Priority: P1 Progress: dev in progress Project: API Changes Severity: S1
Dominant language
PHP
Stars
12.2k
Forks
9.4k
PR merge metrics
No merged PRs in 30d

Description

Description

Auto-generated code needs to be marked as API

Details
  1. Auto generated code needs to be marked as @api:
    1. \Magento\Framework\Api\Code\Generator\ExtensionAttributesInterfaceFactoryGenerator
    2. \Magento\Framework\Api\Code\Generator\ExtensionAttributesInterfaceGenerator
    3. \Magento\Framework\Api\Code\Generator\ExtensionAttributesGenerator
    4. \Magento\Framework\MessageQueue\Code\Generator\RemoteServiceGenerator
  2. Factories generated for @api entities must also be marked as @api. Factories for non-@api must not be marked as @api
    1. \Magento\Framework\ObjectManager\Code\Generator\Factory
Testing

Run bin/magento setup:di:compile
Check the generated classes

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.