Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: products resolver fetching unpublished products #85

Open
1 task done
manarjan opened this issue Nov 8, 2023 · 0 comments
Open
1 task done

[Bug]: products resolver fetching unpublished products #85

manarjan opened this issue Nov 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@manarjan
Copy link

manarjan commented Nov 8, 2023

Expected Behavior

Products resolver should not be fetching unpublished products by default. If that is the expected behavior, there should be a filter in ProductFilterInput to filter out the unpublished products

Actual Behavior

Getting unpublished products in the products resolver

Possible Solution

add a filter

Steps to reproduce

Running the below query
`
query Products($currentPage: Int, $pageSize: Int) {
products(currentPage: $currentPage, pageSize: $pageSize) {
totalCount
minPrice
maxPrice
products {
id
typeId
visibility
name
displayName
description
attributeValues {
attribute {
name
}
name
}
productVariants {
displayName
}
thumbnail
slug
price
currency {
id
name
symbol
}
categories {
id
name
}
}
}
}

`

What version of odoo integration are you using?

16

What version of Node.js are you using?

18.17.0

What browser (and version) are you using?

Chrome 118

What operating system (and version) are you using?

macOS

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@manarjan manarjan added the bug Something isn't working label Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant