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

Added the error coverage for category query #8489

Merged
merged 3 commits into from
Jan 8, 2021

Conversation

dineshvb
Copy link
Contributor

@dineshvb dineshvb commented Jan 8, 2021

Purpose of this pull request

This pull request (PR) adds the error coverage for category query.

Affected DevDocs pages

  • /guides/v2.3/graphql/queries/category.html
  • /guides/v2.4/graphql/queries/category.html


Error | Description
--- | ---
`Category doesn't exist` | The specified category-id value does not exist.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`Category doesn't exist` | The specified category-id value does not exist.
`Category doesn't exist` | The specified category ID value does not exist.

Error | Description
--- | ---
`Category doesn't exist` | The specified category-id value does not exist.
`Field \"category\" argument \"id\" requires type Int, found "XXX" ` | The given category-id is not of type `int`, which is the required type.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The suggestion is what other docs have said in this case - so consistency + should solve linting

Suggested change
`Field \"category\" argument \"id\" requires type Int, found "XXX" ` | The given category-id is not of type `int`, which is the required type.
`Field "category" argument "id" requires type Int, found "XXX" ` | The specified `id` argument value has the wrong type.


Error | Description
--- | ---
`Category doesn't exist` | The specified category-id value does not exist.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`Category doesn't exist` | The specified category-id value does not exist.
`Category doesn't exist` | The specified category ID value does not exist.

Error | Description
--- | ---
`Category doesn't exist` | The specified category-id value does not exist.
`Field \"category\" argument \"id\" requires type Int, found "XXX" ` | The given category-id is not of type `int`, which is the required type.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`Field \"category\" argument \"id\" requires type Int, found "XXX" ` | The given category-id is not of type `int`, which is the required type.
`Field "category" argument "id" requires type Int, found "XXX" ` | The specified `id` argument value has the wrong type.

@dineshvb dineshvb requested a review from BarnyShergold January 8, 2021 12:32
Copy link
Contributor

@BarnyShergold BarnyShergold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@keharper keharper added 2.3.x Magento 2.3 related changes 2.4.x Magento 2.4.x related changes Technical Updates to the code or processes that alter the technical content of the doc labels Jan 8, 2021
@keharper
Copy link
Contributor

keharper commented Jan 8, 2021

running tests

@keharper keharper merged commit a7845f0 into magento:master Jan 8, 2021
@ghost
Copy link

ghost commented Jan 8, 2021

Hi @dineshvb, 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 Partner: EY partners-contribution PR created by Magento partner 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.

4 participants