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

null-versioning and corresponding handler #134

Conversation

masterSplinter01
Copy link
Contributor

@masterSplinter01 masterSplinter01 commented Jul 5, 2021

Closes #119

@KirillovDenis
Copy link
Contributor

Should we mention #119 ?

Description: err.Error(),
HTTPStatusCode: http.StatusBadRequest,
}, r.URL)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I suppose we should add return statement to avoid further execution.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed


info, err := h.obj.ListObjectVersions(r.Context(), p)
if err != nil {
h.log.Error("something went wrong",
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be worth moving the error writing response into a separate function.

Copy link
Contributor Author

@masterSplinter01 masterSplinter01 Jul 5, 2021

Choose a reason for hiding this comment

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

Moved this into a separate function

@masterSplinter01 masterSplinter01 force-pushed the feature/102-add-versioning-for-benchmark branch 3 times, most recently from ffb5264 to 719e9ae Compare July 5, 2021 19:54
@masterSplinter01 masterSplinter01 changed the title WIP: null-versioning and corresponding handler null-versioning and corresponding handler Jul 6, 2021
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
@masterSplinter01 masterSplinter01 force-pushed the feature/102-add-versioning-for-benchmark branch from 719e9ae to f3c74fa Compare July 6, 2021 09:14
@alexvanin alexvanin merged commit c1cd769 into nspcc-dev:master Jul 6, 2021
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 null-versioning of objects and corresponding handler
3 participants