-
Notifications
You must be signed in to change notification settings - Fork 212
fix: Propagates API errors during delete, read, and wait operations of auto-generated resources #4676
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
Merged
Merged
fix: Propagates API errors during delete, read, and wait operations of auto-generated resources #4676
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a516c04
Fix autogen swallowing API errors during delete, read, and wait opera…
AgustinBettati f95a822
Add changelog entry
AgustinBettati c5f944b
Address review: hook tests, list read test, stale comments
AgustinBettati 28bcba4
Reword changelog entries and simplify config.yml wait comments
AgustinBettati 84b6d97
Surface API errors for data source reads, drop redundant list empty-b…
AgustinBettati a72ee9e
Keep data source not-found behavior unchanged
AgustinBettati 7056c90
Reduce test boilerplate with tables and diag assertion helpers
AgustinBettati 9a614d5
Clarify not-found doc comments and search deployment DELETED state note
AgustinBettati 367f5cf
Merge master into CLOUDP-437881
AgustinBettati File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| ```release-note:bug | ||
| resource/mongodbatlas_metric_integration: Fixes delete operations to surface non-404 API errors instead of removing the resource from the state, and read and wait operations to surface API errors instead of misinterpreting them as resource not found | ||
| ``` | ||
|
|
||
| ```release-note:bug | ||
| resource/mongodbatlas_log_integration: Fixes delete operations to surface non-404 API errors instead of removing the resource from the state, and read and wait operations to surface API errors instead of misinterpreting them as resource not found | ||
| ``` | ||
|
|
||
| ```release-note:bug | ||
| resource/mongodbatlas_stream_connection_failover: Fixes delete operations to surface non-404 API errors instead of removing the resource from the state, and read and wait operations to surface API errors instead of misinterpreting them as resource not found | ||
| ``` | ||
|
|
||
| ```release-note:bug | ||
| resource/mongodbatlas_service_account: Fixes delete operations to surface non-404 API errors instead of removing the resource from the state, and read and wait operations to surface API errors instead of misinterpreting them as resource not found | ||
| ``` | ||
|
|
||
| ```release-note:bug | ||
| resource/mongodbatlas_service_account_secret: Fixes delete operations to surface non-404 API errors instead of removing the resource from the state, and read and wait operations to surface API errors instead of misinterpreting them as resource not found | ||
| ``` | ||
|
|
||
| ```release-note:bug | ||
| resource/mongodbatlas_service_account_project_assignment: Fixes delete operations to surface non-404 API errors instead of removing the resource from the state, and read and wait operations to surface API errors instead of misinterpreting them as resource not found | ||
| ``` | ||
|
|
||
| ```release-note:bug | ||
| resource/mongodbatlas_project_service_account: Fixes delete operations to surface non-404 API errors instead of removing the resource from the state, and read and wait operations to surface API errors instead of misinterpreting them as resource not found | ||
| ``` | ||
|
|
||
| ```release-note:bug | ||
| resource/mongodbatlas_project_service_account_secret: Fixes delete operations to surface non-404 API errors instead of removing the resource from the state, and read and wait operations to surface API errors instead of misinterpreting them as resource not found | ||
| ``` | ||
|
|
||
| ```release-note:bug | ||
| resource/mongodbatlas_privatelink_endpoint_service_data_federation_online_archive: Fixes delete operations to surface non-404 API errors instead of removing the resource from the state, and read and wait operations to surface API errors instead of misinterpreting them as resource not found | ||
| ``` | ||
|
|
||
| ```release-note:bug | ||
| resource/mongodbatlas_ai_model_api_key: Fixes delete operations to surface non-404 API errors instead of removing the resource from the state, and read and wait operations to surface API errors instead of misinterpreting them as resource not found | ||
| ``` | ||
|
|
||
| ```release-note:bug | ||
| resource/mongodbatlas_ai_model_rate_limit: Fixes delete operations to surface non-404 API errors instead of removing the resource from the state, and read and wait operations to surface API errors instead of misinterpreting them as resource not found | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
The check for processing 404 was not reachable as it was being catched in if statement above (
callResult.Err != nil). Only case this if captured was a 200 empty body{}with returned with aresource not found, now it will be hanlded as a regular successful response with no results.