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

List of Acceptable Project Platform Values #404

Closed
wnoonan opened this issue Mar 15, 2024 · 2 comments · Fixed by #420
Closed

List of Acceptable Project Platform Values #404

wnoonan opened this issue Mar 15, 2024 · 2 comments · Fixed by #420

Comments

@wnoonan
Copy link

wnoonan commented Mar 15, 2024

Hello,

I am unable to determine the values that I can use for platform when creating a sentry project. I wanted to point out this function in the provider code:

func validatePlatform(i interface{}, path cty.Path) diag.Diagnostics {

Their api documentation doesn't demonstrate or have a defined list of acceptable values here.

https://docs.sentry.io/api/projects/update-a-project/

Just an example but I have an application that is go net/http which looks like this in sentry:
Screenshot 2024-03-15 at 2 44 05 PM

This is what it looks like when it comes back from the api:
Screenshot 2024-03-15 at 2 44 36 PM

but the code indicated above tries to locate it like this:
https://docs.sentry.io/_platforms/go/http.json -- which gives us a 404 not found.

Are you aware of a listing of all of these json documents in a single location to start loading all of my projects into terraform with this provider so i can accurately reference the platform?

Thanks!

@aurasphere
Copy link

I had the same problem and I found a list here: https://github.com/getsentry/sentry/blob/master/static/app/data/platformCategories.tsx

@wnoonan
Copy link
Author

wnoonan commented Mar 25, 2024

I had the same problem and I found a list here: https://github.com/getsentry/sentry/blob/master/static/app/data/platformCategories.tsx

many of these won't work due to how this works:

terraform-provider-sentry/sentry/resource_sentry_project.go

The list i'm referring to is the list of valid json files that this validation checks against.

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 a pull request may close this issue.

3 participants