fix(get_asset_details): include multiValueAttributes in GQL query - #136
Open
Asubtlecoderrr wants to merge 1 commit into
Open
fix(get_asset_details): include multiValueAttributes in GQL query#136Asubtlecoderrr wants to merge 1 commit into
Asubtlecoderrr wants to merge 1 commit into
Conversation
Asubtlecoderrr
force-pushed
the
fix/get-asset-details-multi-value-attributes
branch
from
September 8, 2026 05:42
0aac37c to
5582d61
Compare
Asubtlecoderrr
force-pushed
the
fix/get-asset-details-multi-value-attributes
branch
from
September 8, 2026 05:47
5582d61 to
0a44063
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 What does this PR do?
Problem
get_asset_detailssilently drops attributes backed byMultiValueListAttributeType(multi-select dropdowns). These attributes allow selecting one or more values from a predefined list. In Collibra's GQL schema, they are stored undermultiValueAttributes— a separate field that was never included in the query. Single-select attributes (SingleValueListAttributeType) work correctly as they are stored understringAttributes. As a result, any multi-select attribute is completely absent from the response with no error or warning, regardless of whether one or multiple values are selected.A secondary issue:
resolveAssignableAttributesbuilt itsisSetmap from only thefour GQL attribute lists, so selection attributes were always marked
isSet: false.Fix
multiValueAttributes(limit: $attributesLimit) { type { name } }to the GQL query.MultiValueAttributestruct and field toAsset.MultiValueAttribute(
stringValueandvalueare both undefined). Values are enriched via abest-effort REST call to
/rest/2.0/attributes?assetId=…after the GQL fetch.MultiValueAttributesinresolveAssignableAttributes'sisSetmap.Testing
Verified locally against a real Collibra instance:
get_asset_detailsfor asset019fd154-9501-72be-b2fc-cb99858b5ae1now returnsmultiValueAttributes: [{ type: { name: "Source Release" }, value: "CE" }]and
assignableAttributesshowsisSet: truefor it.✅ Checklist