-
Notifications
You must be signed in to change notification settings - Fork 211
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
VP-2176: Make page_size parsing type safe #414
Conversation
pagedList = mutablePagedList; | ||
} | ||
else if (collection != null) | ||
{ | ||
pagedList = new PagedList<object>(collection.OfType<object>().AsQueryable(), pageNumber, pageSize); | ||
pagedList = new PagedList<object>(collection.OfType<object>().AsQueryable(), pageNumber, effectivePageSize); | ||
//TODO: Need find way to replace ICollection instance in liquid context to paged instance |
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.
pagedList = mutablePagedList; | ||
} | ||
else if (collection != null) | ||
{ | ||
pagedList = new PagedList<object>(collection.OfType<object>().AsQueryable(), pageNumber, pageSize); | ||
pagedList = new PagedList<object>(collection.OfType<object>().AsQueryable(), pageNumber, effectivePageSize); | ||
//TODO: Need find way to replace ICollection instance in liquid context to paged instance | ||
//var hash = context.Environments.FirstOrDefault(s => s.ContainsKey(_collectionName)); |
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.
SonarQube analysis reported 3 issues Watch the comments in this conversation to review them. 1 extra issueNote: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:
|
No description provided.