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

Table should return zero records, if the service API is disabled. Closes #286 #287

Merged
merged 9 commits into from
Aug 27, 2021

Conversation

Subhajit97
Copy link
Contributor

Integration test logs

Logs
N/A

Example query results

Results
N/A

@Subhajit97 Subhajit97 requested a review from LalitLab July 15, 2021 10:44
@Subhajit97 Subhajit97 self-assigned this Jul 15, 2021
gcp/utils.go Outdated
// Function which returns an IsForbiddenError for GCP API calls
func IsForbiddenError(err error) bool {
if gerr, ok := err.(*googleapi.Error); ok {
return helpers.StringSliceContains([]string{"403"}, types.ToString(gerr.Code))
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return helpers.StringSliceContains([]string{"403"}, types.ToString(gerr.Code))
return gerr.Code == 403

@Subhajit97 Subhajit97 requested a review from LalitLab July 20, 2021 06:59
@LalitLab LalitLab changed the title Table should return zero records, if the service API is not enabled. Closes #286 Table should return zero records, if the service API is disabled. Closes #286 Aug 27, 2021
Copy link
Contributor

@LalitLab LalitLab left a comment

Choose a reason for hiding this comment

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

Changes looks good

@bigdatasourav bigdatasourav merged commit 638df80 into main Aug 27, 2021
@bigdatasourav bigdatasourav deleted the issue-286 branch August 27, 2021 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants