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

User Resource: use the correct object attributes when building the namespace access list #177

Merged
merged 8 commits into from
Nov 20, 2024

Conversation

briankassouf
Copy link
Contributor

@briankassouf briankassouf commented Nov 15, 2024

What was changed

Fixes the handling of diagnostic objects in the User resource and fixes a bug in the User resource which prevents refresh from working correctly on the namespace_accesses attribute.

fixes #187

@briankassouf briankassouf requested a review from a team as a code owner November 15, 2024 00:22
@briankassouf briankassouf changed the title User: use the correct object attributes when building the namespace a… User Resource: use the correct object attributes when building the namespace access list Nov 15, 2024
Copy link
Collaborator

@jlacefie jlacefie left a comment

Choose a reason for hiding this comment

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

TY. LGTM

@jlacefie jlacefie requested a review from a team as a code owner November 19, 2024 20:01
}
namespaceAccessObjects = append(namespaceAccessObjects, obj)
}

accesses, d := types.ListValueFrom(ctx, types.ObjectType{AttrTypes: namespaceCertificateFilterAttrs}, namespaceAccessObjects)
accesses, d := types.ListValueFrom(ctx, types.ObjectType{AttrTypes: userNamespaceAccessAttrs}, namespaceAccessObjects)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was using the wrong attribute type to build the new list

@briankassouf
Copy link
Contributor Author

closes #187

@briankassouf briankassouf merged commit 159832f into main Nov 20, 2024
5 checks passed
@briankassouf briankassouf deleted the bk/fix-user-object-attr branch November 20, 2024 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] User namespace_accesses state refreshing is broken
2 participants