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

Adding Revision to esc client #312

Merged
merged 1 commit into from
May 28, 2024
Merged

Adding Revision to esc client #312

merged 1 commit into from
May 28, 2024

Conversation

IaroslavTitov
Copy link
Contributor

@IaroslavTitov IaroslavTitov commented May 24, 2024

Summary

Testing

  • Manually tested via PSP + dev stack, client returns revision successfully

@IaroslavTitov IaroslavTitov force-pushed the iaro/client branch 2 times, most recently from 99dca05 to 1953f49 Compare May 24, 2024 18:37
@IaroslavTitov IaroslavTitov marked this pull request as ready for review May 24, 2024 20:42
@IaroslavTitov IaroslavTitov enabled auto-merge (squash) May 24, 2024 20:59
tag := resp.Header.Get(etagHeader)
revision, err := strconv.Atoi(resp.Header.Get(revisionHeader))
if err != nil {
return nil, "", 0, err
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return nil, "", 0, err
return nil, "", 0, fmt.Errorf("parsing revision number: %w", err)


revision, err := strconv.Atoi(resp.Header.Get(revisionHeader))
if err != nil {
return nil, 0, err
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return nil, 0, err
return nil, 0, fmt.Errorf("parsing revision number: %w", err)

@IaroslavTitov IaroslavTitov merged commit 6e95ff4 into main May 28, 2024
6 checks passed
@IaroslavTitov IaroslavTitov deleted the iaro/client branch May 28, 2024 16:46
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.

Add revision into GetEnvironment and UpdateEnvironment client functions
2 participants