-
Notifications
You must be signed in to change notification settings - Fork 1
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
Bookings empty query #226
Bookings empty query #226
Conversation
@@ -87,6 +95,9 @@ def query(self): | |||
if review_state: | |||
query["review_state"] = review_state | |||
|
|||
if len(query) <= empty_query_len: | |||
raise BadRequest(_("No search parameters were passed.")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you want to translate this message, you have to wrap it into a api.portal.translate:
api.portal.translate(_("No search parameters were passed."))
and i don't see updated *po files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't need translation right now but the code is adaptable for translation if needed in future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a msgid, please..after that, i can approve it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fatto
Pull Request Test Coverage Report for Build 13498751521Details
💛 - Coveralls |
@cekk rw pls |
Return 400 if empty query was passed to
@bookings
endpoint