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

CLS 82 add endpoint for getting pf bs for namespace #135

Closed

Conversation

vvuwei
Copy link
Member

@vvuwei vvuwei commented Oct 17, 2023

  • added logic on selecting msgs by type on namespace
  • update usage of Messages method
  • updated logic of namespace.GetMessages handler, added unit tests

@vvuwei vvuwei requested a review from aopoltorzhicky October 17, 2023 19:24
@vvuwei vvuwei self-assigned this Oct 17, 2023
@vvuwei vvuwei added the enhancement New feature or request label Oct 17, 2023
@vvuwei vvuwei added this to the v1.0.0 milestone Oct 17, 2023
@@ -290,7 +293,13 @@ func (handler *NamespaceHandler) GetMessages(c echo.Context) error {
return err
}

messages, err := handler.namespace.Messages(c.Request().Context(), ns.Id, int(req.Limit), int(req.Offset))
var msgType *storageTypes.MsgType
msgT, err := storageTypes.ParseMsgType(req.Type)
Copy link
Member

Choose a reason for hiding this comment

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

А что будет, если в параметр написать невалидное значение типа? Он выставит тип, как будто его нет. Валидации у нас разве нет?

@vvuwei vvuwei closed this Oct 17, 2023
@vvuwei
Copy link
Member Author

vvuwei commented Oct 17, 2023

canceled - feature does not needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants