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

[ROOT-1030] Remove immutable fields from docs and payload, and add deprecation warning to Resource. #66

Closed

Conversation

azanar
Copy link

@azanar azanar commented Oct 24, 2024

The API ignores is_deletable and is_editable settings from incoming payloads.

See: https://github.com/rootlyhq/rootly/blob/development/app/controllers/api/v1/roles_controller.rb#L54-L88

Note the absence of these two fields. 😁

This deprecates them instead of removing them outright, to avoid breaking existing TF configurations.

It looks like the TestAccResourceCustomFieldOption suite is failing, due to something unhappy over on the Rootly API side. Not sure which API key this uses, so I'd kind of be flying blind.

Nevermind. Flaky test is flaky. Not exclusive to our Rails app. 😁

@azanar azanar force-pushed the ed/ROOT-1030/remove_immutable_fields_from_role_resource branch from d527b4a to 4a68c23 Compare October 24, 2024 06:10
@azanar azanar force-pushed the ed/ROOT-1030/remove_immutable_fields_from_role_resource branch from 4a68c23 to 7604bc5 Compare October 24, 2024 06:17
@azanar azanar marked this pull request as ready for review October 24, 2024 06:30
@azanar azanar requested a review from alexmingoia October 24, 2024 06:30
Copy link

@nronas nronas left a comment

Choose a reason for hiding this comment

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

I do not see any updates on the API schema that reflect this change

@azanar azanar closed this Oct 24, 2024
@alexmingoia
Copy link
Collaborator

Most of the code for the provider is generated using the OpenAPI schema. Changes to the .go source for most things will be overwritten in the build step.

I'll add a comment to the top of auto-generated files.

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.

3 participants