Compatiblity with Terraform
Review this checklist before submitting.
-
GitLab issues are for bug reports and feature requests. If this is a help request, post on Gitter. If you have or want paid support, please use the chat widget on https://glitchtip.com. -
Document reproduction steps. Be as detailed as possible. -
If applicable, try to reproduce the problem on https://app.glitchtip.com -
Be considerate of the reviewer of your issue and their time. They are likely unpaid. GlitchTip is open source and comes with absolutely no warranty. -
Check existing issues first. 👍 the issue to show interest. -
Do not open issue related to automated security scanners or other static anaysis tool. We use Renovate and GitLab for this. Instead, ask on Gitter how you can help get involved in the project and make the changes you wish to see.
Description
Glitchtip API should be compatible with the terraform provider https://registry.terraform.io/providers/jianyuan/sentry/0.14.3 Some api keys, especially ids, are not compatible.
[ERROR] provider.terraform-provider-sentry_v0.14.3: Response contains error diagnostic: tf_provider_addr=registry.terraform.io/jianyuan/sentry tf_resource_type=sentry_organization @caller=github.com/hashicorp/terraform-plugin-go@v0.25.0/tfprotov6/internal/diag/diagnostics.go:58 diagnostic_detail="" diagnostic_severity=ERROR tf_proto_version=6.7 tf_req_id=c32e23ff-bb73-6152-41e3-9c2ca361f365 tf_rpc=ReadResource @module=sdk.proto diagnostic_summary="json: cannot unmarshal number into Go struct field Organization.id of type string" timestamp="2025-03-10T10:47:20.835+0100"
[ERROR] vertex "import sentry_organization.default result" error: json: cannot unmarshal number into Go struct field Organization.id of type string
[ERROR] vertex "sentry_organization.default (import id \"test-org\")" error: json: cannot unmarshal number into Go struct field Organization.id of type string
[ERROR] vertex "sentry_organization.default (expand)" error: json: cannot unmarshal number into Go struct field Organization.id of type string
Proposed Solution(s)
IDs returned by the Glitchtip API should be of type string, like official Sentry API. The same type of work has been done on teams and projects: