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

VP-2176: Make page_size parsing type safe #414

Merged
merged 2 commits into from
May 8, 2020
Merged

Conversation

yecli
Copy link
Contributor

@yecli yecli commented May 7, 2020

No description provided.

@yecli yecli requested a review from tatarincev May 7, 2020 16:58
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
Copy link
Contributor

Choose a reason for hiding this comment

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

INFO Complete the task associated to this 'TODO' comment. rule

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));
Copy link
Contributor

Choose a reason for hiding this comment

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

MAJOR Remove this commented out code. rule

@vc-ci
Copy link
Contributor

vc-ci commented May 8, 2020

SonarQube analysis reported 3 issues

  • MAJOR 2 major
  • INFO 1 info

Watch the comments in this conversation to review them.

1 extra issue

Note: 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:

  1. MAJOR CommonFilters.cs#L150: Extract this nested ternary operation into an independent statement. rule

@yecli yecli merged commit 4ef160a into dev May 8, 2020
@yecli yecli deleted the bug/VP-2176-fix-page-size-bug branch May 8, 2020 08:42
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.

3 participants