-
Notifications
You must be signed in to change notification settings - Fork 246
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
GIT-718: Implement offset pagination for getRecordings (closes #718) #720
base: master
Are you sure you want to change the base?
Conversation
@@ -268,7 +268,9 @@ def join | |||
end | |||
|
|||
def get_recordings | |||
if Rails.configuration.x.get_recordings_api_filtered && (params[:recordID].blank? && params[:meetingID].blank?) | |||
limit = params[:limit] || Rails.configuration.x.default_pagination_limit |
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.
Need to have a max on the limit param - in discussion we chose 100 arbitrarily as the maximum limit. Also ensure that the limit is >0.
@@ -293,6 +295,9 @@ def get_recordings | |||
query = query.with_recording_id_prefixes(params[:recordID].split(',')) if params[:recordID].present? | |||
query = query.where(meeting_id: params[:meetingID].split(',')) if params[:meetingID].present? | |||
|
|||
offset = params[:offset] || 0 |
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.
Validate that the provided offset param is ≥0
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@fcecagno @paultrudel Before we merge support for the This current scalelite PR is adding two new messageKey values, |
Can we see this soon? |
closes #718