-
Notifications
You must be signed in to change notification settings - Fork 42
Feat/add custom role resource and data source #1077
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
base: main
Are you sure you want to change the base?
Feat/add custom role resource and data source #1077
Conversation
c2d2f27 to
6d5a812
Compare
6d5a812 to
41d31e7
Compare
|
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
|
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. |
Description
relates to STACKITIAM-1100
Checklist
make fmtexamples/directory)make generate-docs(will be checked by CI)make test(will be checked by CI)make lint(will be checked by CI)