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

Update Terraform state for NOT_FOUND (1/n) #149

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Conversation

obs-gh-maxhahn
Copy link
Collaborator

Updated the following resources to properly handle NOT_FOUND responses from the upstream:

  • dataset_outbound_share
  • datastream
  • filedrop
  • monitor
  • monitor_action
  • rbac_group
  • rbac_group_member
  • rbac_statement
  • snowflake_outbound_share

@obs-gh-maxhahn obs-gh-maxhahn marked this pull request as ready for review August 28, 2024 01:07
Copy link
Contributor

@vikramraman vikramraman left a comment

Choose a reason for hiding this comment

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

lgtm. Just a minor comment

@@ -194,6 +194,10 @@ func resourceDatasetOutboundShareRead(ctx context.Context, d *schema.ResourceDat

datasetShare, err := client.GetDatasetOutboundShare(ctx, d.Id())
if err != nil {
if gql.HasErrorCode(err, "NOT_FOUND") {
Copy link
Contributor

Choose a reason for hiding this comment

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

Change this to gq.ErrNotFound as well?

@obs-gh-maxhahn obs-gh-maxhahn force-pushed the mhahn/not_found_1 branch 2 times, most recently from 9f7cbed to aee86db Compare August 28, 2024 21:32
Updated the following resources to properly handle NOT_FOUND responses
from the upstream:
- `dataset_outbound_share`
- `datastream`
- `filedrop`
- `monitor`
- `monitor_action`
- `rbac_group`
- `rbac_group_member`
- `rbac_statement`
- `snowflake_outbound_share`
@vikramraman vikramraman merged commit 0e51bf0 into master Aug 29, 2024
5 checks passed
@vikramraman vikramraman deleted the mhahn/not_found_1 branch August 29, 2024 20:37
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.

2 participants