Skip to content

Conversation

@Markus-Schwer
Copy link

Description

relates to STACKITIAM-1100

Checklist

  • Issue was linked above
  • Code format was applied: make fmt
  • Examples were added / adjusted (see examples/ directory)
  • Docs are up-to-date: make generate-docs (will be checked by CI)
  • Unit tests got implemented or updated
  • Acceptance tests got implemented or updated (see e.g. here)
  • Unit tests are passing: make test (will be checked by CI)
  • No linter issues: make lint (will be checked by CI)

@Markus-Schwer Markus-Schwer requested a review from a team as a code owner November 28, 2025 17:07
@Markus-Schwer Markus-Schwer force-pushed the feat/add-custom-role-resource-and-data-source branch from c2d2f27 to 6d5a812 Compare November 28, 2025 17:17
@Markus-Schwer Markus-Schwer force-pushed the feat/add-custom-role-resource-and-data-source branch from 6d5a812 to 41d31e7 Compare November 28, 2025 17:17
@Markus-Schwer
Copy link
Author

I will add the examples on monday

go 1.24.0

require (
dev.azure.com/schwarzit/schwarzit.stackit-public/stackit-sdk-go-internal.git/services/authorization v0.0.0-20251126130857-9f2211a4c524
Copy link
Contributor

Choose a reason for hiding this comment

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

internal SDK modules shouldn't be used

Copy link
Author

Choose a reason for hiding this comment

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

Ah, I forgot to remove it after testing...

}

// TypeConverter Helper to convert objects with equal JSON tags.
func TypeConverter[R any](data any) (*R, error) {
Copy link
Member

Choose a reason for hiding this comment

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

Could we have some tests for this?

Copy link
Contributor

Choose a reason for hiding this comment

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

We might want to review this before: #1058

I've refactored the authorization code and also added tests for the type converter.

@Markus-Schwer
Copy link
Author

Markus-Schwer commented Dec 1, 2025

To clarify: this PR cannot be merged right now, because the API it uses is not public yet. We will make it public soon. When it is public, I will use the newly generated SDK and test this change again. Then it can be merged. For now I would still appreciate it if you review the changes, so that we can quickly merge this PR once the API is released.

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.

4 participants