Add support for owner relationships & a few other requests#629
Merged
andrewstillv15 merged 15 commits intomainfrom Dec 16, 2025
Merged
Add support for owner relationships & a few other requests#629andrewstillv15 merged 15 commits intomainfrom
andrewstillv15 merged 15 commits intomainfrom
Conversation
andrewstillv15
commented
Dec 13, 2025
andrewstillv15
commented
Dec 13, 2025
| allowedCategories := make([]attr.Value, len(rel.Metadata.AllowedCategories)) | ||
| for i, t := range rel.Metadata.AllowedCategories { | ||
| allowedCategories[i] = types.StringValue(t) | ||
| // Relationships can either be managed independently or within the context of a component but not both. Only fetch relationships if they have |
andrewstillv15
commented
Dec 13, 2025
| }, | ||
| "allowed_categories": schema.ListAttribute{ | ||
| MarkdownDescription: "The categories of resources that can be selected for this relationship definition. Can include any component category alias on your account.", | ||
| Computed: true, |
andrewstillv15
commented
Dec 13, 2025
| @@ -0,0 +1,3 @@ | |||
| kind: Added | |||
| body: Support for component category filter | |||
derek-etherton-opslevel
approved these changes
Dec 15, 2025
Contributor
derek-etherton-opslevel
left a comment
There was a problem hiding this comment.
LGTM. Nice job with the refactoring to move management rules into its own area, and the thorough functional tests
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.
Resolves ##14198
Problem
We need to support owner relationships
Solution
Given this Terraform config file
I had claude write some test cases for me
The
terraform applyoutputcomponent_type_ids = { "api_multiple_rules" = "Z2lkOi8vb3BzbGV2ZWwvQ29tcG9uZW50VHlwZXM6OlNlcnZpY2UvNTE5NA" "backend_with_owner" = "Z2lkOi8vb3BzbGV2ZWwvQ29tcG9uZW50VHlwZXM6OlNlcnZpY2UvNTE5Mw" "frontend_with_tags" = "Z2lkOi8vb3BzbGV2ZWwvQ29tcG9uZW50VHlwZXM6OlNlcnZpY2UvNTE4OQ" "library_name" = "Z2lkOi8vb3BzbGV2ZWwvQ29tcG9uZW50VHlwZXM6OlNlcnZpY2UvNTE5Mg" "microservice_tag_to_tag" = "Z2lkOi8vb3BzbGV2ZWwvQ29tcG9uZW50VHlwZXM6OlNlcnZpY2UvNTE5NQ" "mobile_with_prefix" = "Z2lkOi8vb3BzbGV2ZWwvQ29tcG9uZW50VHlwZXM6OlNlcnZpY2UvNTE5MA" "no_owner" = "Z2lkOi8vb3BzbGV2ZWwvQ29tcG9uZW50VHlwZXM6OlNlcnZpY2UvNTE4OA" "no_owner_block" = "Z2lkOi8vb3BzbGV2ZWwvQ29tcG9uZW50VHlwZXM6OlNlcnZpY2UvNTE4Nw" "owner_empty_rules" = "Z2lkOi8vb3BzbGV2ZWwvQ29tcG9uZW50VHlwZXM6OlNlcnZpY2UvNTE5MQ" "owner_no_rules" = "Z2lkOi8vb3BzbGV2ZWwvQ29tcG9uZW50VHlwZXM6OlNlcnZpY2UvNTE4Ng" } test_summary = { "edge_cases" = { "empty_rules" = "owner_empty_rules" "no_block" = "no_owner_block" "null_rules" = "owner_no_rules" } "total_tests" = 10 "with_management_rules" = 6 "without_management_rules" = 4 }We also have support for a new filter on component_category
Checklist