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

SALTO-5915 Google ws - fix - roleAssignment deployment #5881

Conversation

Uri-Bar
Copy link
Contributor

@Uri-Bar Uri-Bar commented May 9, 2024

SALTO-5915 Google ws - fix - roleAssignment deployment

Additional context for reviewer


Release Notes:
none


User Notifications:
none

@coveralls
Copy link

coveralls commented May 12, 2024

Coverage Status

coverage: 93.931%. remained the same
when pulling f113151 on Uri-Bar:SALTO-5915-google-ws-fix-role-assignment-deployment
into 7cd7b22 on salto-io:main.

@Uri-Bar Uri-Bar marked this pull request as ready for review May 12, 2024 11:19
@Uri-Bar Uri-Bar force-pushed the SALTO-5915-google-ws-fix-role-assignment-deployment branch from 913cdc6 to f113151 Compare May 12, 2024 11:31
Copy link
Contributor

@shir-reifenberg shir-reifenberg left a comment

Choose a reason for hiding this comment

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

looks great! 👯
for next prs, I think it's better to split adapter changes from infra changes, and link each one to it's own ticket. It makes it easier to understand later why we done each change
Also, please update PR title to include info about the infra change 🙏

const response = await singleClientCall(args)
return polling.checkStatus(response) ? response : undefined
} catch (e) {
if (polling.retryOnStatus?.includes(e.response?.status)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

let's verify as well that ?
e instanceof clientUtils.HTTPError

@@ -38,6 +38,7 @@ export type PollingArgs = {
interval: number
retries: number
checkStatus: (response: Response<ResponseValue | ResponseValue[]>) => boolean
retryOnStatus?: number[]
Copy link
Contributor

Choose a reason for hiding this comment

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

nit - maybe worth adding a comment about why this is needed and how it's different from checkStatus ?

@Uri-Bar Uri-Bar enabled auto-merge (squash) May 15, 2024 08:33
@Uri-Bar Uri-Bar merged commit 402bf0a into salto-io:main May 15, 2024
19 checks passed
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.

None yet

3 participants