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

pass "entity_type_code" instead of "entity_type_id" #8184

Merged
merged 2 commits into from
Nov 6, 2020

Conversation

dfelton
Copy link
Contributor

@dfelton dfelton commented Nov 5, 2020

Purpose of this pull request

Frontend code should not have to rely on knowing the eav_entity_type.entity_type_id value of the model it is querying attribute information on. Local tests show that this field also supports eav_entity_type.entity_type_code values as well.

Affected DevDocs pages

Frontend code should not have to rely on knowing the `eav_entity_type.entity_type_id` value of the model it is querying attribute information on. Local tests show that this field also supports `eav_entity_type.entity_type_code` values as well.
@rogyar rogyar self-assigned this Nov 5, 2020
@rogyar rogyar added 2.3.x Magento 2.3 related changes 2.4.x Magento 2.4.x related changes labels Nov 5, 2020
@rogyar
Copy link
Contributor

rogyar commented Nov 5, 2020

Can confirm that the entity type code should be passed instead of ID. An example of the test from the codebase is below

https://github.com/magento/magento2/blob/2.3/dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/ExceptionFormatterDefaultModeTest.php#L22

@dobooth dobooth added the Technical Updates to the code or processes that alter the technical content of the doc label Nov 6, 2020
@dobooth dobooth changed the base branch from master to small-changes November 6, 2020 13:31
@dobooth dobooth merged commit 15562dc into magento:small-changes Nov 6, 2020
@ghost
Copy link

ghost commented Nov 6, 2020

Hi @dfelton, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2.3.x Magento 2.3 related changes 2.4.x Magento 2.4.x related changes Progress: done Technical Updates to the code or processes that alter the technical content of the doc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants