Skip to content

Conversation

@iLLiCiTiT
Copy link
Member

@iLLiCiTiT iLLiCiTiT commented Jun 26, 2025

Changelog Description

Functions get_project and get_projects now do support to get 'productTypes' with other fields.

Additional review information

If productTypes are requested in fields then API uses GraphQl to get list of projects instead of projects endpoint.

Because data from graphql and REST are not 1:1 matching it was necessary to implement some conversion of the data to keep unified structure (e.g. 'bundle').

Testing notes:

  1. Function get_project_product_types still works and returns product types used on project.
  2. Using get_project and get_projects with {"productTypes"} in fields does return the projects with productTypes.

@iLLiCiTiT iLLiCiTiT self-assigned this Jun 26, 2025
@iLLiCiTiT iLLiCiTiT added the type: enhancement New feature or request label Jun 26, 2025
@iLLiCiTiT iLLiCiTiT requested review from kalisp and martastain June 26, 2025 17:41
@kalisp
Copy link
Member

kalisp commented Jun 27, 2025

It returns productTypes, but where they are coming from? They are not in Anatomy.
image

@iLLiCiTiT
Copy link
Member Author

It returns productTypes, but where they are coming from? They are not in Anatomy.

That is set of product types used on the project.

@iLLiCiTiT iLLiCiTiT merged commit 25fd9f7 into develop Jun 27, 2025
2 checks passed
@iLLiCiTiT iLLiCiTiT deleted the enhancement/small-fixes branch July 24, 2025 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants