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

powerplatform_data_record: added meaningful error when record already exist and HTTP 405 is returned #616

Conversation

mawasile
Copy link
Contributor

@mawasile mawasile commented Mar 5, 2025

This pull request includes several changes to the internal/services/data_record/api_data_record.go and internal/services/environment/resource_environment.go files to improve the handling of data records and environment resources. The most important changes include adding comments to clarify the logic for determining the HTTP method, handling the http.StatusPreconditionFailed status, and removing an unnecessary blank line.

Improvements to data record handling:

Code cleanup:

@mawasile mawasile linked an issue Mar 5, 2025 that may be closed by this pull request
@mawasile mawasile marked this pull request as ready for review March 5, 2025 12:12
@mawasile mawasile merged commit 14537ab into main Mar 6, 2025
10 checks passed
@mawasile mawasile deleted the mawasile/614-powerplatform_data_record-http-412-when-creating-app-user branch March 6, 2025 18:04
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.

powerplatform_data_record HTTP 412 when creating app user
2 participants